[buildd-tools-devel] Bug#832050: Bug#832050: sbuild: Allow to run commands as root before/after installing the build dependencies

Raphael Hertzog hertzog at debian.org
Fri Jul 22 10:01:41 UTC 2016


Hi,

On Fri, 22 Jul 2016, Johannes Schauer wrote:
> Quoting Raphaël Hertzog (2016-07-21 21:18:52)
> > I have updated a library and in the process I renamed ftplib-dev into
> > libftp-dev (which provides "ftplib-dev") and I want to ensure that
> > reverse dependencies build correctly with the new package. I used
> > --extra-package to inject my package but the new package does not get
> > picked due to the new name... but if I could install the new package
> > before build dependencies are installed, then I could test my package.
> 
> How about:
> 
> 	sbuild --add-depends libftp-dev=VERSION

That would work for me for my specific need. I was just trying to suggest
something that could be more generally useful. But it's up to you.

It would not allow customizing something installed by a build dependency in
/etc for example.

> > So I want a new option like --pre-build-deps-commands="apt-get install libftp-dev"
> > Ideally I'm sure there are cases where we want to fix the set of packages
> > after having installed the build dependencies... so a --pre-build-commands
> > running as root would be nice too.
> 
> Why does --chroot-setup-commands not work in your case?

Because the extra packages are not yet available at that point in time.
But if you ensure that they are, then I'm happy with using that hook.

$ sbuild --extra-package=libftp4_4.0-1-1_amd64.deb --extra-package=libftp-dev_4.0-1-1_amd64.deb --chroot-setup-commands="apt-get install libftp-dev" -d unstable coriander_2.0.2-4
[...]
+------------------------------------------------------------------------------+
| Chroot Setup Commands                                                        |
+------------------------------------------------------------------------------+


apt-get install libftp-dev
--------------------------

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libftp-dev

E: Command 'apt-get install libftp-dev' failed to run.
[...]

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



More information about the Buildd-tools-devel mailing list