LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   dpkg-buildpackage: passing ./configure options? (http://www.linuxquestions.org/questions/debian-26/dpkg-buildpackage-passing-configure-options-351791/)

neocookie 08-10-2005 06:06 AM

dpkg-buildpackage: passing ./configure options?
 
Hi all

I'm using dpkg-buildpackage to auto build a copy of lighttpd for use on my system.

It works great, though I need to pass some commands to ./configure to enable some modules not enabled by default.

Can anyone tell me how I'd do this?

Thanks

lpd 08-10-2005 01:41 PM

I think you'd need to make a modified lighttpd_version.diff.gz because IIRC dpkg-buildpackage will unpack lighttpd_version.orig.tar.gz in a temporary build directory and then apply the lighttpd_version.diff.gz before starting the build.
I haven't really dug into the debian package build process, maybe there are some dpkg tools or environment options that you could use.

saman007uk 08-10-2005 02:29 PM

I don't know about builing packages from scratch, but if you are builidng from a source package you should edit the following file in the source directory: DEBIAN/rules

th3g1vr 08-27-2008 09:20 PM

confirmed- editing ./DEBIAN/rules works like a charm!
 
Quote:

Originally Posted by saman007uk (Post 1792797)
I don't know about builing packages from scratch, but if you are builidng from a source package you should edit the following file in the source directory: DEBIAN/rules

saman007uk@ since it seems no one else has, I'd like to say thank you- your advice was really helpful. In my case, I wanted to build the latest nightly of VLC (to-be 1.0 (GoldenEye)- Intrepid), and I got an error due to Intrepid not having a new enough version of live555, which I don't use anyway. taking your advice; nano ./vlc-1.0.0-git/debian rules --> changed --enable-live555 \ to --disable-live555 \ , and everything went smoothly after that. this is something worth remembering, thanks!

neocookie@ I know I'm 3 years late on this comeback (though it can't be helped, since the need wasn't presented until now) -- I found this answer thanks to your thread, especially thanks to saman007uk, but ultimately, google. the key to finding these kind of things via google (IMLE) is to seek out results that are on forums and blogs. 99% of the poweruser/linux problems I've had (and couldn't solve on my own) were solved through google search results, with 70% of the answers found tnrough forums like LQ, and ~29 % through blogs. (the remaining 1 % was through IRC)


All times are GMT -5. The time now is 08:48 AM.