[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg-buildpackage and desired target and changed config files in the build directory



On Thu, 9 Nov 2000, Michael Meding wrote:

> Hello everybody,
> 

Before I begin, I want to mention that there is mailing list specifically
for newbie packagers called debian-mentors@lists.debian.org .  You should
ask this kind of question there.

> I am trying to find out where to change the environment variables to get
> the package build for a specific target (i.e. instead of i386 i686).

In the debian subdirecotry of a package there will be a file called
rules.  It is a Makefile so you can define anything you want using
standard make(1) syntax.  What exactly you have to change will depend on
the program.  If it uses autoconf(1), it may be as simple as adding
--target=i686 or something to the call to configure in debian/rules.  

> Also I would like to know how to change something in a configuration
> file in the build directory and then get the build done with the changed
> configuration file (because dpkg-buildpackage wipes out my build tree
> everytime it runs).

debian/rules has a number of targets, dpkg-buildpackage automatically
calls the clean target.  However you can also do something like e.g.

$ fakeroot debian/rules binary

to bypass clean and go directly to the binary target.  This is also handy
so you don't have to start all over again if your compile craps out part
of the way through.

-- 
Jaldhar H. Vyas <jaldhar@debian.org>



Reply to: