Hi, While Loïc's change is the technically correct change, it does not address existing Ubuntu releases which do not have an updated build-essential[1]. Even if we changed build-essential for all current active stable releases of Ubuntu, people would still not be able to build packages on EOL releases, which is desirable.
As such, after discussing this with Kees, I have uploaded a workaround in Ubuntu which removes 'sysvinit' from the list of essential packages to install when building packages in Ubuntu chroots. While this is an Ubuntu-specific change, the patch is small, obvious, and should not affect Debian or any of its other derivatives. While we can carry this delta going forward, I request that you include it in sbuild proper (though I understand if this is unacceptable). Thank you for your consideration. [1] https://launchpad.net/bugs/684931
--- sbuild-0.60.5.orig/lib/Sbuild/Build.pm +++ sbuild-0.60.5/lib/Sbuild/Build.pm @@ -1483,6 +1483,20 @@ warn "Cannot open $self->{'Chroot Dir'}/usr/share/doc/build-essential/list: $!\n"; } + # Workaround http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602571 + if (open( F, "$self->{'Chroot Dir'}/etc/lsb-release" )) { + while( <F> ) { + if ($_ eq "DISTRIB_ID=Ubuntu\n") { + @essential = grep(!/^sysvinit$/, @essential); + last; + } + } + close( F ); + } + else { + warn "Cannot open $self->{'Chroot Dir'}/etc/lsb-release: $!\n"; + } + return join( ", ", @essential ); }
signature.asc
Description: This is a digitally signed message part