[Build-common-hackers] Using CDBS' flavors mechanism to build packages
Jonas Smedegaard
dr at jones.dk
Tue Dec 21 22:38:28 UTC 2010
On Sun, Dec 19, 2010 at 06:38:52PM +0000, Emilio Pozuelo Monfort wrote:
>I'm now doing
>
>DEB_DESTDIR = $(CURDIR)/debian/tmp$(if $(findstring udeb,$(cdbs_make_curflavor)),/udeb)
>
>Without setting DEB_MAKE_DESTDIRSKEL. It's working great and the
>dh_install issue only affects libvte9-udeb.install, so it's not a big
>deal.
Try this instead:
DEB_DESTDIR_$(udeb) = $(DEB_DESTDIR)udeb
Per-flavor is expanded during build, and per-package during install.
They use same "namespace" (string after last slash) so per-flavor cannot
exist during install too as it is currently implemented.
>Note that DEB_MAKE_DESTDIRSKEL is set in makefile-vars.mk but is not
>used anywhere (unlike DEB_MAKE_BUILDDIRSKEL). Should it be used to
>set cdbs_make_curdestdir in makefile.mk ?
Oh, you are right.
No, I think it should be dropped: If I recall correctly, it was when
trying to implement that that I realized the clashing namespace of
per-flavor and per-package (that is, I knew it already, but had
forgotten when I got excited implementing per-flavor).
>Attached my current debian/rules, and a patch against git master to
>make it work.
>PS: I've subscribed to the list, no need to CC me either ;)
Excellent.
Perhaps you want to apply it yourself: The packaging is maintained in
the git collab-maint area so you should have write access already.
And please do help summarize what is still left to do here. An awful
lot of details, and I have lost track of which parts we've solved along
the way here...
- 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: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20101221/177909f3/attachment-0001.pgp>
More information about the Build-common-hackers
mailing list