LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-04-2008, 01:57 PM   #1
h725
Member
 
Registered: Apr 2008
Posts: 114

Rep: Reputation: 15
Customizing build options of a Debian package


Hi,

I need to recompile a package in order to include support of some specific library.
What is the "Debian way" to modify the build options of a package?
Thanks!
 
Old 11-04-2008, 04:19 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I assume you're talking about changing configuration options. It took me a lot of searching, but I finally recently learned how to do this.

First of all, use apt-get to download the source package, but don't let it compile automatically. Enter the source directory, then the debian directory inside it, and edit the "rules" file you'll find there to add the flags you want. It should be fairly obvious in most cases where the flags go. Then use dpkg to build and install the package.

Sorry about the lack of detail though. I neglected to take down detailed notes and I'm having to go by memory on this. You'll have to read the apt-get and dpkg man pages for how exactly to go about this.

I believe there's also a way to pass on compiler flags through the dpkg command line or an environment variable, but I'm not sure.

Edit: Here's the page I got the information from. Go there for the detailed steps. Luckily I had it bookmarked.

Last edited by David the H.; 11-04-2008 at 04:23 PM.
 
Old 11-05-2008, 01:42 AM   #3
h725
Member
 
Registered: Apr 2008
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks! It's very useful!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
build a debian package deb from tar.bz2 cccc Debian 6 09-17-2009 03:44 PM
Having problems customizing the "Synaptics" driver options for my touchpad??? Southpaw76 Linux - Hardware 1 12-12-2005 09:19 AM
apt-build.conf....file options utanja Debian 4 02-26-2005 06:02 PM
passing options to build-in-modules nielchiano Linux - General 4 02-17-2004 11:40 PM
customizing Debian (deluser, logrotation, etc) markus1982 Linux - Distributions 0 05-25-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration