Re: How to see options enabled in the RPM

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

 



James Olin Oden wrote:
On 6/9/05, tfsj.92 <tfsj.92@xxxxxxxxxxxx> wrote:

hi,

I would like to know how can I do, to see the list of options that have been enabled within the RPM file.

for example when you install something with source or tarball you have to put some option when you execute the ./configure script :

--prefix=/usr/local .... --with .... --enable ..... --without ....

I would like to know, which of theses options have been activated in the RPM ?? I have tried many command but I didn't get the info I need.


AFAIK, there is no way presently to do this other than looking at the
spec file.  Even then spec files can change behaviours base on build
server environment, and inputs to rpmbuild.
What you are asking for is at least on the surface very reasonable,
but presently rpm does not provided that sort of meta data in its
headers, and I am not sure what would be a reasonable way for it to do
this.  Mainly because of what happens with configure in a spec file is
going to happen in one of the opaque build scriptlets (opaque to rpm),
such that there would have to be some way to tell rpm what options you
used.  If everyone used the %configure macro it might be possible to
get the information there, but every one does not, and %configure
carries lots of bagage with it (i.e. lots of different options are
set) that you may or may not want in your spec file (typically do, but
not always).

So the short answer is, no there is no way to get this information,
but the long answer distills down to there is no way to accomplish
this with the current rpm build paradigm.

Someone correct me if I am wrong...james


I've also wondered this for quite some time. This would be a very valuable tool. Sometimes, as James says, you are able to spend some time and find out, from the .spec file, what the build-time options are. Others, you're not, due to the variable nature of each .spec file to get the software to compile on a variable range of machines.

This should be something that is given a great amount of consideration to, or at least having RPM create a file or appending to the .spec in commented code how exactly the RPM was built, or at laest an option for that - perhaps in the changelog somewhere. I don't know. Maybe next version, huh? ;)

Thanks
-dant


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux