Control: clone 806033 -1 Control: reassign -1 cli-common-dev Control: retitle -1 dh_clideps expects dh_makeshlibs, but dh_makeshlibs isn't called when building arch-indep packages Control: affects: -1 src:gmime
On Wed 2016-07-06 12:55:59 -0400, Santiago Vila <sanv...@unex.es> wrote: > On Wed, 6 Jul 2016, Mirco Bauer wrote: > >> This is an order issue, dh_clideps has to be called after creating the shlibs >> (dh_makeshlibs): >> dh_clideps: Error: Missing shlibs entry: libgmime-2.6.so.0 or gmime for: >> gmime-sharp.dll! > > Hmm, but does dh_makeshlibs run at all when we are creating just > the arch-independent packages? > > Remember that this bug is about "dpkg-buildpackage -A" not working. I think Santiago is on to the underlying problem here. In /usr/bin/dh, you can see that dh_makeshlibs is part of @ba, the "arch"-specific (not indep) list of dh_* sequences. Indeed, i can replicate the build failure on my system that has an older version of libgmime-2.6-0 installed if i just do: mv /var/lib/dpkg/info/libgmime-2.6-0\:amd64.shlibs{,.bak} It looks like i can work around this with the following snippet in gmime's debian/rules: ------------- # https://bugs.debian.org/806033 -- dh_clideps expects to see # dh_makeshlibs called before it, but dh_makeshlibs is never called # when building only arch-indep packages. So we force the issue by # making a phony shlibs.local file that dh_clideps will accept, if no # others exist: override_dh_clideps: if ! grep -q . debian/*/DEBIAN/shlibs; then echo libgmime-2.6 0 libgmime-2.6-0 > debian/shlibs.local; fi dh_clideps rm -f debian/shlibs.local ------------- But it would be better to have the problem fixed in the debhelper/cli-common-dev toolchain, so i've cloned this bug report and assigned it to cli-common-dev. Are there any other source packages that build an arch:any C library package and arch:all cli bindings for it that use this toolchain? I would think all such packages would run into this bug if they are submitted as source-only uploads. --dkg
signature.asc
Description: PGP signature