How to get the configure options of a binary package?

September 18th, 2011 - 09:10 pm ET by littlebat | Report spam
Hi,

I am compiling some packages from source, so I need learning the
configure options of these packages in Debian. Is it possible to get the
configure options of a Debian binary package or Debian source package
or simply an executable binary program?

For example, when I execute "ffmpeg" in shell, it will show its
configure options, version, build time, etc.. How can I get this
information from a program?

And, how to configure the compiling options so it can show these
information when execute it in the shell?

Thanks.


littlebat


To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20110919090...shing.meng@gmail.com
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Scott Ferguson
September 18th, 2011 - 11:40 pm ET | Report spam
On 19/09/11 11:04, littlebat wrote:
Hi,

I am compiling some packages from source, so I need learning the
configure options of these packages in Debian. Is it possible to get the
configure options of a Debian binary package or Debian source package
or simply an executable binary program?

For example, when I execute "ffmpeg" in shell, it will show its
configure options, version, build time, etc.. How can I get this
information from a program?

And, how to configure the compiling options so it can show these
information when execute it in the shell?

Thanks.


littlebat






Download the source package and look for a rules file in the debian
directory.

eg:-
# apt-get source vlc
# cat vlc-1.1.3/debian/rules
=#!/usr/bin/make -f

DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

<snipped>

binary: binary-indep binary-arch
.PHONY: build clean install binary-indep binary-arch binary
=

Cheers

"...I just want to be free of the fears and anxieties and the
superstitions of religion. An 'avenging GOD'? One who created Hell for
those who don't believe? I thought we were the perfect and holy children
of GOD? How could any limits possibly be put upon us? Hell.. really? I'm
sorry, but... no. Wrong. You're wrong. That's an insane GOD and
therefore not mine. Because, see, GOD would be very sane, don't you get it?"
— Bill Hicks


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/
Replies Reply to this message
#2 Camale
September 19th, 2011 - 10:20 am ET | Report spam
On Mon, 19 Sep 2011 09:04:33 +0800, littlebat wrote:

I am compiling some packages from source, so I need learning the
configure options of these packages in Debian. Is it possible to get the
configure options of a Debian binary package or Debian source package or
simply an executable binary program?

For example, when I execute "ffmpeg" in shell, it will show its
configure options, version, build time, etc.. How can I get this
information from a program?



Some packages embed that information and some not, "man package" will
tell (i.e., "man mutt" tells me that "-v" argument will display compile
time options for that specific application).

For packages that don't allow this option you can follow Scott's advice.

And, how to configure the compiling options so it can show these
information when execute it in the shell?



Mmm, that would possibly depend on the type of package you want to build,
but most of the deb rules are well defined in the docs entitled "Debian
New Maintainers' Guide¹" and "Debian Policy Manual²". For external
packages this should be available in readme files or under the docs
folder.

¹ http://www.debian.org/doc/manuals/maint-guide/
² http://www.debian.org/doc/debian-policy/

Greetings,

Camaleón


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search