Peter Eisentraut <[EMAIL PROTECTED]> wrote:

> The question is not so much about whether it is dead or not, but how
> one would integrate it into cdbs.  One way to address it manually is:
> 
> binary::
>       dh_buildinfo
> 
> (or some other target -- I'm not sure).
> 
> The alternative of a proper cdbs integration would be creating 
> rules/buildinfo.mk, so users would have to write:
> 
> include /usr/share/cdbs/1/rules/buildinfo.mk
> 
> Note that this is actually *more* typing than the manual solution.
> Is that better?  I'm not sure.  I'm certainly open for it, but it
> seems silly to be frank.

It is a bit more typing, yes. But some (like me) prefer including rules
that are reused by many to rules unique to my packages.

As was mentioned earlier in this bugreport it only _almost_ doesn't
matter when to invoke dh_buildinfo, so unifying is better than expecting
each package maintainer to know such details (and keep up with them
as new tricks might come up over time).

Attached is the cdbs snippet I already use and have used for some time
now. It invokes dh_buildinfo as late as possible (we only want it for
inclusion in actual packaging - not while iterating over other build
issues locally), and makes sure to only invoke once.

I'd be happy to add it myself to SVN - as soon as my SVN commit rights
have been corrected (unless of course that is for some reason unwanted).


 - Jonas

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

 - Enden er nær: http://www.shibumi.org/eoti.htm

Attachment: buildinfo.mk
Description: Binary data

Attachment: pgpDk60IoFfjV.pgp
Description: PGP signature

Reply via email to