[Build-common-hackers] Bug#661962: Bug#661962: cdbs: PD class processes debian/tmp instead of debian/$package, causing multiple dpkg-shlibdeps invokations

Jonas Smedegaard dr at jones.dk
Sat Mar 3 02:39:56 UTC 2012


On 12-03-02 at 11:15pm, Felipe Sateler wrote:
> On Fri, Mar 2, 2012 at 22:18, Jonas Smedegaard <dr at jones.dk> wrote:
> > On 12-03-02 at 09:35pm, Felipe Sateler wrote:
> >> PD uses cdbs_curdestdir, but that is set to debian/tmp in multiple 
> >> binary packages. It should use debian/$package instead, to avoid 
> >> calling strip and dpkg-shlibdeps to be called multiple times.
> >>
> >> This pollutes the build logs since pd externals usually have 
> >> undefined references (they use symbols from the main pd binary), so 
> >> they appear multiple times.
> >
> > cdbs_curdestdir resolves to whatever is destdir for current package.
> >
> > Yes, by default that is debian/tmp for multiple packages.  It is 
> > overridden like this:
> >
> >  DEB_DESTDIR = $(CURDIR)/debian/$(cdbs_curpkg)
> >
> > ...but why do you file this as a bugreport?
> 
> Because calling dpkg-shlibdeps for all packages on a binary that is 
> not included in all packages (just one) is clearly wrong. Mostly I'm 
> concerned about the warning errors that pollute the other (maybe 
> useful) output of dpkg-shlibdeps coming from the dh_shlibdeps call.

Ohh, I get it now: debhelper.mk always works on per-package dirs whereas 
pd.mk does not.



> > Are you saying that the pd.mk snippet should _always_ use 
> > per-package destdir?  If so, are you certain that no existing 
> > package will break when doing such radical change?
> 
> I'm not certain (I can't know which packages use this), but it makes 
> sense. debhelper -p option makes it take files from debian/$package as 
> input[1]. Since these particular routines are working around dh_strip, 
> dh_shlibdeps and dh_fixperms because of the odd suffix of the pd 
> externals, it makes sense to operate on those directories too.

Yes, I agree that it _would_ make sense.

Problem is the CDBS snippet is now out in the wild, and changing it will 
very likely cause failures!

Luckily, we can probably assume pd.mk to only be used in puredata-* and 
pd-* packages, so it should be fairly simple to resolve which of them 
uses CDBS, get in touch with all authors, and coordinate the change.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20120303/69ddfa4c/attachment-0001.pgp>


More information about the Build-common-hackers mailing list