Package: sbuild
Version: 0.78.1-2
Severity: minor
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch

Dear maintainers,

The sbuild autopkgtest has the rather telling comment in it:

  # We should probably only attempt to install and run procenv if the release of
  # the build chroot is equal to the host, but lets be brave and try anyway

This results in autopkgtest failures for sbuild, any time the devel series
that is being test-built for generates newer libc dependencies than the
version of glibc present in the host environment.

Since Ubuntu routinely runs autopkgtests against stable releases as part of
CI for stable release updates, this results in autopkgtests that work fine
when a series is unreleased, and then regress at some later point because
the devel series has moved on.

We've applied the attached patch in Ubuntu to avoid this in the obvious
fashion.  Please consider applying in Debian as well.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru sbuild-0.78.1/debian/tests/build-procenv 
sbuild-0.78.1/debian/tests/build-procenv
--- sbuild-0.78.1/debian/tests/build-procenv    2019-04-03 03:03:51.000000000 
-0700
+++ sbuild-0.78.1/debian/tests/build-procenv    2019-04-03 09:12:01.000000000 
-0700
@@ -129,10 +129,7 @@
 echo "INFO: Extracting '$deb' to '$extract'"
 dpkg --extract "$deb" "$extract"
 
-# We should probably only attempt to install and run procenv if the release of
-# the build chroot is equal to the host, but lets be brave and try anyway
-if true
-#if [ "$release" = "$host_release" ]
+if [ "$release" = "$host_release" ]
 then
     echo "INFO: Installing package '$pkg' from '$deb'"
     apt -o Apt::Cmd::Disable-Script-Warning=1 -o APT::Get::Assume-Yes=1 
install "$(pwd)/$deb"

Reply via email to