Re: Build-time setting of binary package names
"Sean 'Shaleh' Perry" wrote:
> On 17-Jan-2001 Adam C Powell IV wrote:
> > I'd like to be able to have a build-time setting determine the names of
> > binary packages. For example, on my petsc package:
> >
> > debian/rules PETSC_ARCH=linux_alpha_dec binary
> >
> > builds using the Compaq ccc compiler. I'd like to make it generate
> > packages with non-standard names, e.g. petsc-ccc-dev instead of
> > petsc-dev. This and some /etc/alternatives tricks would allow users to
> > insntall multiple versions and select between them.
>
> problem is you have to have valid package names in debian/control.
> Perhaps you could do something like a control.in which gets
> dynamically created based on the parameters you set.
I agree. I'm setup to build unofficial binary packages with
different names than the official ones in one of my packages, and I
do that with a rules target that saves the `real' control file and
generates a fake one:
binary-arch-unofficial: build
rm -f debian/*debhelper
rm -rf debian/tmp debian/gri-$(version)static
-cp debian/control debian/control.real
sed -e 's/VSN/$(version)/g' debian/control.unofficial > debian/control
-cp debian/README.Debian debian/README.Debian.real
-cp debian/README.Debian.unofficial debian/README.Debian
...bunch of dh_ commands deleted
-mv debian/control.real debian/control
-mv debian/README.Debian.real debian/README.Debian
It works.
--
Peter Galbraith, research scientist <GalbraithP@dfo-mpo.gc.ca>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
6623'rd GNU/Linux user at the Counter - http://counter.li.org/
Reply to: