Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a80eb9

Browse files
committed
remove build-essential before testing
typically already installed in buildd variant chroots but not on user systems.
1 parent e04ae9c commit 0a80eb9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

adt-runscript.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def parse_depends(self, d):
119119
f.write("set -xe\n")
120120
# same id as pbuilder for firewalling
121121
f.write("id adttesting || useradd -u 1234 adttesting\n")
122+
# remove build-essential usually present in packaging chroots
123+
f.write("apt-get remove -f -y --force-yes libc6-dev gcc g++ make dpkg-dev\n")
122124
f.write("cd %s\n" % os.path.join(tmp, pkgdir))
123125
for t in tests:
124126
aptdep = " ".join(t.depends - loc_pkg_names)
@@ -162,6 +164,8 @@ def parse_depends(self, d):
162164
""".format(aptdep=aptdep, testname=t.name, asuser=asuser))
163165

164166
if t != tests[-1] and "--fast" not in sys.argv:
167+
# remove build-essential usually present in packaging chroots
168+
f.write("apt-get remove -f -y --force-yes libc6-dev gcc g++ make dpkg-dev\n")
165169
f.write("apt-get autoremove -y --force-yes --purge %s\n" % all_installed)
166170
f.write("echo SUCCESS\n")
167171

0 commit comments

Comments
 (0)