LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2007, 03:10 PM   #1
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Rep: Reputation: 15
View ./confgure options passed for an installed .deb?


Hi.

How can I view the options passed to the ./configure process 'after' a program is already installed (.deb) programs on Gutsy, Ubuntu 7.1

For example, if I want to see all of the --enable-??? options made during a compile of mplayer.

Thank you
Akonbobot
 
Old 12-10-2007, 07:10 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I can answer for debian:

zcat /usr/share/doc/mplayer/README.Debian.gz

Quote:
Install prefix: /usr
Data directory: /usr/share/mplayer
Config direct.: /etc/mplayer

Byte order: little-endian
Optimizing for: Runtime CPU-Detection enabled

Languages:
Messages/GUI: en
Manual pages: ru pl it hu fr es en de cs

Enabled optional drivers:
Input: ftp pvr tv-teletext tv-v4l2 tv-v4l tv live555 cddb cdda dvdread(internal) vcd dvb smb network
Codecs: libavcodec qtx real xanim win32 faad2 libmpeg2 libdca liba52 mp3lib libtheora speex tremor(internal) gif
Audio output: alsa esd oss v4l2 sdl mpegpes(dvb)
Video output: v4l2 sdl gif89a pnm jpeg png mpegpes(dvb) fbdev svga caca xmga mga xvidix cvidix opengl 3dfx dga xvmc xv x11 xover dfbmga directfb md5sum tga tdfxfb
Audio filters: ladspa
Disabled optional drivers:
Input: dvdnav vstream radio nemesi libdvdcss(internal)
Codecs: x264 xvid libdv libamr_wb libamr_nb faac musepack toolame twolame libmad liblzo
Audio output: sun openal jack polyp arts ivtv dxr2 nas
Video output: ivtv dxr3 dxr2 vesa zr zr2 aa ggi winvidix bl xvr100 tdfx_vid s3fb
Audio filters:
This information is also available there (this is for 1.0.rc2-0.2)
http://buildd.debian.org/fetch.cgi?&...85374&file=log

I don't know if ubuntu details this in the documentation, check it.
Also buildd.ubuntu.org doesn't exist. Buildd is the debian build daemon where packages are done.

Another way to do it would be to do:
ldd `which mplayer` but depending on the package, there can be plugins missing.

Last edited by nx5000; 12-10-2007 at 07:12 AM.
 
Old 12-10-2007, 12:28 PM   #3
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Original Poster
Rep: Reputation: 15
Thank you for your answers.

1. Does the debian .deb require the ./configure --enable options listed or is it optionally included by the packager's choice?

2. Will this information 'always' be in the README or could it be anywhere?

3. Can you please recommend a good starting point for those who wish to learn about how to rebuild a .deb package with enabling other options i.e. /.configure --enable???

Thanks again.
Akonbobot
 
Old 12-10-2007, 01:01 PM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Akonbobot View Post
Thank you for your answers.

1. Does the debian .deb require the ./configure --enable options listed or is it optionally included by the packager's choice?
Usually they will only include GPL/LGPL code. Example gnuplot does not enable libreadline which is BSD licensed.
They try to take the common denominator of the community needs. This will require more dependencies but the binary should include what users want. Debian is user-demand oriented.
Quote:
2. Will this information 'always' be in the README or could it be anywhere?
No, usually it's not. mplayer is a good example. Sometimes, you will have a text saying "this feature is enabled, this one not.."
The best way to know which options are passed is to download the source package and launch the build. After the configure has been done, you can interrupt the process and look at config.log
You can always look at the file debian/rules (which is the configuration of the package build) in the source tree.
Quote:
3. Can you please recommend a good starting point for those who wish to learn about how to rebuild a .deb package with enabling other options i.e. /.configure --enable???

Thanks again.
Akonbobot
There are some ideas here:
http://www.debian.org/doc/manuals/ma...ch-update.html

Unfortunatly the debian/rules file is not always using the same mechanism. Some will use DEB_BUILD_OPTIONS or CONF_OPTIONS some will use their own variables, some will need that you edit debian/rules and add your --enablexxx

I do it manually:
apt-get source mplayer <-- get the source luke
apt-get build-dep mplayer <-- get the build-dependencies
apt-get install additionnalpackage <-- add the one you want the feature from
edit debian/rules or pass DEB_BUILD_OPTIONS
maybe edit debian/changelog or use dch to change the changelog to put your version number (do not increase the number, simply append something)
example for adding debug to mplayer:
DEB_BUILD_OPTIONS=debug dpkg-buildpackage -b -us -uc -rfakeroot
This will additionnaly set ./configure --debug=3.

As I automate this (I don't want to edit files everytime a new version of mplayer is released), I maintain my own .diff file.
This diff file will add patches in debian/patches (C code that I corrected) and will modify the debian/rules file.
When the build starts via debian/rules, it include a sed line for self modifying debian/changelog, adds my options to ./configure depending on DEB_BUILD_OPTIONS.

That's one way of doing it, I learned from trial and error, didn't really read the deb maintainer guide.

Have fun!
 
Old 12-11-2007, 01:58 PM   #5
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Original Poster
Rep: Reputation: 15
Thank you for your time.

Regards,
Akonbobot
 
  


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
Using C API; first query passed passed by program to MySQL is successful, second quer weibullguy Programming 2 06-12-2007 11:45 PM
I installed Netzero.deb-but where is it? phantom_cyph Linux - General 5 02-26-2007 07:56 PM
view contents of a deb package kushalkoolwal Debian 3 05-18-2006 08:29 PM
the last installed deb package, how ? ag2uki Debian 7 08-15-2005 08:44 AM
Possible to view program's configure compilation options tisource Linux - General 0 11-16-2004 08:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 AM.

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