Package: sbuild Version: 0.88.1 Severity: serious X-Debbugs-Cc: ni...@thykier.net, debian-d...@lists.debian.org
Hi,Since dpkg/1.22.13, `Rules-Requires-Root: no` is now the new default. The `sbuild` autopkgtests make an assumption that is no longer true and therefore produce an incorrect result.
The `test-pkg` should be updated to properly build in the new setup. There are two options:
* Change `test-pkg` to use `dpkg-deb --root-owner-group --build ...` rather than `dpkg-deb --build ...`. This assumes you can rely on dpkg/1.19 (oldoldstable) * Change `test-pkg` to have `Rules-Requires-Root: binary-targets`. This works with even older versions of dpkg, but they will emit a warning that you need to deal with unless the test already is set to not treat stderr as a failure.
529s + env --chdir=/tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/test-pkg-1.0/ dpkg-buildpackage --sign-keyfile=/tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/key.asc --build=full 529s dpkg-buildpackage: info: source package test-pkg 529s dpkg-buildpackage: info: source version 1.0 529s dpkg-buildpackage: info: source distribution unstable 529s dpkg-buildpackage: info: source changed by sbuild fake uploader <fake-uploa...@debian.org> 529s dpkg-source --before-build . 529s dpkg-buildpackage: info: host architecture amd64 529s debian/rules clean 529s rm -rf debian/files debian/tmp 529s dpkg-source -b . 529s dpkg-source: info: using source format '3.0 (native)' 529s dpkg-source: info: building test-pkg in test-pkg_1.0.tar.xz 529s dpkg-source: info: building test-pkg in test-pkg_1.0.dsc 529s debian/rules binary 529s rm -rf debian/tmp 529s mkdir -p debian/tmp/DEBIAN 529s dpkg-gencontrol 529s dpkg-deb --build debian/tmp .. 529s dpkg-deb: Hint: you might need to pass --root-owner-group, see <https://wiki.debian.org/Teams/Dpkg/RootlessBuilds> for further details 529s dpkg-deb: building package 'test-pkg' in '../test-pkg_1.0_all.deb'. 529s dpkg-deb: warning: root directory debian/tmp has unusual owner or group 1000:1000 529s dpkg-deb: warning: ignoring 1 warning about the control file(s) 529s dpkg-genbuildinfo --build=full -O../test-pkg_1.0_amd64.buildinfo 530s dpkg-genchanges --build=full -O../test-pkg_1.0_amd64.changes 530s dpkg-source --after-build . 530s dpkg-genchanges: info: including full source code in upload 530s dpkg-buildpackage: info: full upload; Debian-native package (full source is included) 530s signfile test-pkg_1.0.dsc 530s signfile test-pkg_1.0_amd64.buildinfo 530s signfile test-pkg_1.0_amd64.changes 530s + env --chdir=/tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/test-pkg-1.0/ dpkg-buildpackage --sign-keyfile=/tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/key.asc --target=clean 530s dpkg-buildpackage: info: source package test-pkg 530s dpkg-buildpackage: info: source version 1.0 530s dpkg-buildpackage: info: source distribution unstable 530s dpkg-buildpackage: info: source changed by sbuild fake uploader <fake-uploa...@debian.org> 530s debian/rules clean 530s rm -rf debian/files debian/tmp 530s + verify orig deb dsc bin_changes 530s + verify_orig 530s + echo verifying test-pkg_1.0.tar.xz 530s verifying test-pkg_1.0.tar.xz 530s + cat 530s + base64 -d 530s + xz -cd 530s + xz -cd 530s + diffoscope /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/expected /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/test-pkg_1.0.tar 530s + rm /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/expected /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/test-pkg_1.0.tar 530s + verify_deb 530s + echo verifying test-pkg_1.0_all.deb 530s verifying test-pkg_1.0_all.deb 530s + + grep ^data\.tar\. 530s ar t /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/test-pkg_1.0_all.deb 530s + data_tar=data.tar.xz 530s + cat 530s + base64 -d 530s + diffoscope /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/expected /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/test-pkg_1.0_all.deb 531s --- /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/expected 531s +++ /tmp/autopkgtest-lxc.oiz0hb3_/downtmp/autopkgtest_tmp/test-pkg_1.0_all.deb 531s ├── file list 531s │ @@ -1,3 +1,3 @@ 531s │ -rw-r--r-- 0 0 0 4 2016-06-30 18:15:12.000000 debian-binary 531s │ -rw-r--r-- 0 0 0 460 2016-06-30 18:15:12.000000 control.tar.xz 531s │ --rw-r--r-- 0 0 0 168 2016-06-30 18:15:12.000000 data.tar.xz 531s │ +-rw-r--r-- 0 0 0 172 2016-06-30 18:15:12.000000 data.tar.xz 531s ├── data.tar.xz 531s │ ├── data.tar 531s │ │ ├── file list 531s │ │ │ @@ -1 +1 @@ 531s │ │ │ -drwxr-xr-x 0 root (0) root (0) 0 2016-06-30 18:15:12.000000 ./ 531s │ │ │ +drwxr-xr-x 0 debci (1000) debci (1000) 0 2016-06-30 18:15:12.000000 ./ 531s autopkgtest [15:48:53]: test unshare: -----------------------]▾ test unshare: test results
Best regards, Niels
OpenPGP_signature.asc
Description: OpenPGP digital signature