summaryrefslogtreecommitdiff
path: root/integration-tests/dpkg-build-test/elements/dependencies/base-configure.bst
blob: deff782de2356eb13d564c094948d778f217804c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
kind: script
depends:
- filename: dependencies/base-system.bst
  type: build

variables:
  install-root: /

config:

  commands:
  - |
    # Avoid some chowns which fail at dpkg configure time
    #
    mv /bin/chown /bin/chown.real
    ln -s true /bin/chown

  - |
    # This is expected to fail, but will configure everything we need
    # at least for the purpose of building, other dpkg scripts which
    # require real root privileges will always fail here.
    DEBIAN_FRONTEND=noninteractive dpkg --configure -a --abort-after=100000 || exit 0

  - |
    # Restore chown
    #
    rm -f /bin/chown
    mv /bin/chown.real /bin/chown