Your message dated Wed, 27 Jul 2016 20:47:34 +0200
with message-id <[email protected]>
and subject line Re: [buildd-tools-devel] Bug#832050: sbuild: Allow to run 
commands as root before/after installing the build dependencies
has caused the Debian Bug report #832050,
regarding sbuild: Allow to run commands as root before/after installing the 
build dependencies
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
832050: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832050
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.69.0-2
Severity: wishlist

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.

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.

Cheers,

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser         3.115
ii  apt-utils       1.3~pre2
ii  libsbuild-perl  0.69.0-2
ii  perl            5.22.2-2

Versions of packages sbuild recommends:
ii  debootstrap  1.0.81
ii  fakeroot     1.21-1

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  wget       1.18-2

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi,

On Wed, 27 Jul 2016, Johannes Schauer wrote:
> > >       sbuild --add-depends libftp-dev=VERSION
> > 
> > That would work for me for my specific need.
> 
> so your initial problem is completely solved by this existing option?

Yes... I was not aware that this option was existing.

I only looked for a way to use the commands hooks.

I just tried it and it worked fine:
$ sbuild -d stable --extra-package libftp4_4.0-1-1_amd64.deb --extra-package 
libftp-dev_4.0-1-1_amd64.deb --add-depends=libftp-dev ~/tmp/vgrabbj_0.9.8-3.dsc
[...]
Install vgrabbj build dependencies (apt-based resolver)
-------------------------------------------------------
[...]
After this operation, 33.3 MB of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-6Zp6bd/apt_archive/ ./ libftp4 4.0-1-1 [20.6 
kB]
Get:2 copy:/<<BUILDDIR>>/resolver-6Zp6bd/apt_archive/ ./ libftp-dev 4.0-1-1 
[37.6 kB]
Get:3 copy:/<<BUILDDIR>>/resolver-6Zp6bd/apt_archive/ ./ 
sbuild-build-depends-vgrabbj-dummy 0.invalid.0 [862 B]


> I would like to see an actual use case that would require this feature before
> adding it. The sbuild command line is already incredibly complicated and hard
> to understand.

Indeed, hence me missing this option!

> You can close this bug if you think that your problem is taken care of.

Done.

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/

--- End Message ---

Reply via email to