[buildd-tools-devel] Bug#807488: Bug#807488: Bug#807488: sbuild-update: please run -d with --no-install-recommends

Johannes Schauer josch at debian.org
Wed Dec 9 22:35:40 UTC 2015


Hi,

Quoting Adam Borowski (2015-12-09 16:26:09)
> [~]# sbuild-update -udcar jessie unstable
> <snip jessie>
> unstable: Performing update.
> Get:1 http://apt.angband.pl:3142/ftp.pl.debian.org/debian unstable InRelease [263 kB]
> Get:2 http://apt.angband.pl:3142/ftp.pl.debian.org/debian unstable/main Sources.diff/Index [9095 B]
> Get:3 http://apt.angband.pl:3142/ftp.pl.debian.org/debian unstable/main armhf Packages.diff/Index [9095 B]
> Get:4 http://apt.angband.pl:3142/ftp.pl.debian.org/debian unstable/main Translation-en.diff/Index [8385 B]
> Get:5 http://apt.angband.pl:3142/ftp.pl.debian.org/debian unstable/main Sources [8549 kB]
> Get:6 http://apt.angband.pl:3142/ftp.pl.debian.org/debian unstable/main armhf Packages [7776 kB]
> Get:7 http://apt.angband.pl:3142/ftp.pl.debian.org/debian unstable/main Translation-en [5225 kB]
> Fetched 21.8 MB in 9s (2372 kB/s)                                                                       
> Reading package lists... Done
> unstable: Performing dist-upgrade.
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> Calculating upgrade... Done
> The following NEW packages will be installed:
>   manpages
> The following packages will be upgraded:
>   apt bash binutils bsdmainutils cpp cpp-5 g++ g++-5 gcc gcc-5 gcc-5-base libapt-pkg5.0
>   libarchive-zip-perl libasan2 libatomic1 libc-bin libc-dev-bin libc6 libc6-dev libcc1-0
>   libdebconfclient0 libgcc-5-dev libgcc1 libgomp1 libreadline6 libstdc++-5-dev libstdc++6 libubsan0
>   linux-libc-dev multiarch-support
> 30 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> 
> I don't do backups for the filesystem with chroots, so I copied over my
> jessie chroot over unstable, sed -i s/jessie/unstable/ and did:
> [~]# sbuild-update -udcar unstable
> <...>
> Calculating upgrade... The following package was automatically installed and is no longer required:
>   libasprintf0c2
> Use 'apt-get autoremove' to remove it.
> Done
> The following NEW packages will be installed:
>   cpp-5 dh-strip-nondeterminism g++-5 gcc-5 gcc-5-base libapt-pkg5.0 libarchive-zip-perl libasan2
>   libcc1-0 libfdisk1 libfile-stripnondeterminism-perl libgcc-5-dev libicu55 libisl15 libprocps4
>   libstdc++-5-dev manpages
> The following packages will be upgraded:
>   apt base-files base-passwd bash binutils bsdmainutils bsdutils build-essential bzip2 cpp cpp-4.9
>   debconf debconf-i18n debhelper debianutils diffutils dpkg dpkg-dev e2fslibs e2fsprogs eatmydata file
>   findutils g++ g++-4.9 gcc gcc-4.8-base gcc-4.9 gcc-4.9-base gettext gettext-base gnupg gpgv grep
>   groff-base hostname init initscripts intltool-debian libasan1 libatomic1 libaudit-common libaudit1
>   libblkid1 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap2 libcap2-bin libcloog-isl4
>   libcomerr2 libcroco3 libdb5.3 libdebconfclient0 libdpkg-perl libeatmydata1 libffi6 libgc1c2
>   libgcc-4.9-dev libgcc1 libgcrypt20 libglib2.0-0 libgmp10 libgomp1 libgpg-error0 libkmod2
>   liblocale-gettext-perl liblzma5 libmagic1 libmount1 libmpc3 libmpfr4 libncurses5 libncursesw5
>   libpcre3 libpipeline1 libreadline6 libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2
>   libsmartcols1 libss2 libstdc++-4.9-dev libstdc++6 libsystemd0 libtext-wrapi18n-perl libtinfo5
>   libubsan0 libudev1 libusb-0.1-4 libustr-1.0-1 libuuid1 libxml2 linux-libc-dev login lsb-base make
>   man-db mount multiarch-support ncurses-base ncurses-bin passwd perl perl-base perl-modules po-debconf
>   procps sed sysv-rc sysvinit-core sysvinit-utils tar tzdata udev util-linux xz-utils
> 121 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
> 
> So it tries to install manpages again.

indeed it does. Though I'm still not convinced that this is because of
Recommends because starting from build-essential, the following packages are
also Recommends:

fakeroot libalgorithm-merge-perl manpages-dev libfile-fcntllock-perl netbase
rename libarchive-extract-perl libmodule-pluggable-perl libpod-latex-perl
libterm-ui-perl libtext-soundex-perl libcgi-pm-perl libmodule-build-perl
libpackage-constants-perl

But none of those were suggested to be installed as NEW packages in your log.

On the other hand there are also not many packages that have the package
manpages in their Depends. The most popular one that Depends on manpages is
probably manpages-dev but that one doesn't show up in your log.

On the bright side I was able to reproduce your log from above by first
creating a jessie chroot with sbuild-createchroot, then changing its
sources.list to unstable and then running sbuild-update -udcar:

	jessie: Performing dist-upgrade.
	Reading package lists... Done
	Building dependency tree... Done
	Calculating upgrade... Done
	The following NEW packages will be installed:
	  cpp-5 g++-5 gcc-5 gcc-5-base libapparmor1 libapt-pkg5.0 libasan2 libcc1-0 libfdisk1 libgcc-5-dev libisl15 libmpx0 libprocps4
	  libseccomp2 libstdc++-5-dev manpages
	The following packages will be upgraded:
	  apt base-files base-passwd bash binutils bsdutils build-essential bzip2 cpp cpp-4.9 debconf debconf-i18n debianutils diffutils
	  dmsetup dpkg dpkg-dev e2fslibs e2fsprogs findutils g++ g++-4.9 gcc gcc-4.8-base gcc-4.9 gcc-4.9-base gnupg gpgv grep hostname init
	  initscripts libasan1 libatomic1 libaudit-common libaudit1 libblkid1 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap2
	  libcap2-bin libcilkrts5 libcloog-isl4 libcomerr2 libdb5.3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl libgc1c2 libgcc-4.9-dev
	  libgcc1 libgcrypt20 libgmp10 libgomp1 libgpg-error0 libitm1 libkmod2 liblocale-gettext-perl liblsan0 liblzma5 libmount1 libmpc3
	  libmpfr4 libncurses5 libncursesw5 libpcre3 libquadmath0 libreadline6 libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2
	  libsmartcols1 libss2 libstdc++-4.9-dev libstdc++6 libsystemd0 libtext-wrapi18n-perl libtinfo5 libtsan0 libubsan0 libudev1
	  libusb-0.1-4 libustr-1.0-1 libuuid1 linux-libc-dev login lsb-base make mount multiarch-support ncurses-base ncurses-bin passwd perl
	  perl-base perl-modules procps sed systemd systemd-sysv sysv-rc sysvinit-utils tar tzdata udev util-linux xz-utils
	112 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
	Need to get 176 MB of archives.
	After this operation, 460 MB of additional disk space will be used.


I am also able to reproduce this problem in a plain chroot:

	$ sudo debootstrap --arch=amd64 --variant=buildd --verbose --include=fakeroot,build-essential,debfoster --components=main --resolve-deps jessie ~/tmp http://httpredir.debian.org/debian
	$ sudo vim ~/tmp/etc/apt/sources.list
	$ sudo chroot ~/tmp apt-get update
	$ sudo chroot tmp apt-get dist-upgrade
	Reading package lists... Done
	Building dependency tree... Done
	Calculating upgrade... Done
	The following NEW packages will be installed:
	  cpp-5 g++-5 gcc-5 gcc-5-base libapparmor1 libapt-pkg5.0 libasan2 libcc1-0 libfdisk1 libgcc-5-dev libisl15 libmpx0 libprocps4
	  libseccomp2 libstdc++-5-dev manpages
	The following packages will be upgraded:
	  apt base-files base-passwd bash binutils bsdutils build-essential bzip2 cpp cpp-4.9 debconf debconf-i18n debianutils diffutils
	  dmsetup dpkg dpkg-dev e2fslibs e2fsprogs findutils g++ g++-4.9 gcc gcc-4.8-base gcc-4.9 gcc-4.9-base gnupg gpgv grep hostname init
	  initscripts libasan1 libatomic1 libaudit-common libaudit1 libblkid1 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap2
	  libcap2-bin libcilkrts5 libcloog-isl4 libcomerr2 libdb5.3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl libgc1c2 libgcc-4.9-dev
	  libgcc1 libgcrypt20 libgmp10 libgomp1 libgpg-error0 libitm1 libkmod2 liblocale-gettext-perl liblsan0 liblzma5 libmount1 libmpc3
	  libmpfr4 libncurses5 libncursesw5 libpcre3 libquadmath0 libreadline6 libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2
	  libsmartcols1 libss2 libstdc++-4.9-dev libstdc++6 libsystemd0 libtext-wrapi18n-perl libtinfo5 libtsan0 libubsan0 libudev1
	  libusb-0.1-4 libustr-1.0-1 libuuid1 linux-libc-dev login lsb-base make mount multiarch-support ncurses-base ncurses-bin passwd perl
	  perl-base perl-modules procps sed systemd systemd-sysv sysv-rc sysvinit-utils tar tzdata udev util-linux xz-utils
	112 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
	Need to get 176 MB of archives.
	After this operation, 460 MB of additional disk space will be used.
	Do you want to continue? [Y/n] n
	Abort.
	$ sudo chroot tmp apt-get dist-upgrade --no-install-recommends
	Reading package lists... Done
	Building dependency tree... Done
	Calculating upgrade... Done
	The following NEW packages will be installed:
	  cpp-5 g++-5 gcc-5 gcc-5-base libapparmor1 libapt-pkg5.0 libasan2 libcc1-0 libfdisk1 libgcc-5-dev libisl15 libmpx0 libprocps4
	  libseccomp2 libstdc++-5-dev
	The following packages will be upgraded:
	  apt base-files base-passwd bash binutils bsdutils build-essential bzip2 cpp cpp-4.9 debconf debconf-i18n debianutils diffutils
	  dmsetup dpkg dpkg-dev e2fslibs e2fsprogs findutils g++ g++-4.9 gcc gcc-4.8-base gcc-4.9 gcc-4.9-base gnupg gpgv grep hostname init
	  initscripts libasan1 libatomic1 libaudit-common libaudit1 libblkid1 libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap2
	  libcap2-bin libcilkrts5 libcloog-isl4 libcomerr2 libdb5.3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl libgc1c2 libgcc-4.9-dev
	  libgcc1 libgcrypt20 libgmp10 libgomp1 libgpg-error0 libitm1 libkmod2 liblocale-gettext-perl liblsan0 liblzma5 libmount1 libmpc3
	  libmpfr4 libncurses5 libncursesw5 libpcre3 libquadmath0 libreadline6 libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2
	  libsmartcols1 libss2 libstdc++-4.9-dev libstdc++6 libsystemd0 libtext-wrapi18n-perl libtinfo5 libtsan0 libubsan0 libudev1
	  libusb-0.1-4 libustr-1.0-1 libuuid1 linux-libc-dev login lsb-base make mount multiarch-support ncurses-base ncurses-bin passwd perl
	  perl-base perl-modules procps sed systemd systemd-sysv sysv-rc sysvinit-utils tar tzdata udev util-linux xz-utils
	112 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
	Need to get 175 MB of archives.
	After this operation, 458 MB of additional disk space will be used.
	Do you want to continue? [Y/n] n   
	Abort.

As one can see, manpages is only installed if I run "apt-get dist-upgrade"
without --no-install-recommends. This indeed hints that for some weird reason
the apt config is ignored when running sbuild-update...

I need to investigate this further...

Thanks for finding this bug!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20151209/1df21be9/attachment-0001.sig>


More information about the Buildd-tools-devel mailing list