-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Gurvich wrote:
| How does one find the options that a particular package was built with,
| without installing the package?  I don't see any such options in
| pkg_info and wondered if there were some other tool.
| _______________________________________________
| freebsd-questions@freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
|

Hi David,

~From what I can tell here, that information is not recorded in the
package file.  For instance, I build a lot of packages with custom
options in what I call a "template jail".  Then I build other jails and
run pkg_add for all of the packages that I want to install in them.

In the template jail, there's a /var/db/ports/ directory with
subdirectories for each port that uses the OPTIONS variable.  My
/var/db/ports/wget/options file looks like this:

# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for wget-1.11.2_1
_OPTIONS_READ=wget-1.11.2_1
WITHOUT_GNUTLS=true
WITHOUT_IPV6=true
WITHOUT_NLS=true
WITH_OPENSSL=true

I just logged into another jail and extracted the wget .tgz file into a
temp directory and ran some text searches like so:

jail16# zcat /packages/wget-1.11.2_1.tgz | tar xvfB -
x +CONTENTS
x +COMMENT
x +DESC
x +MTREE_DIRS
x man/man1/wget.1.gz
x bin/wget
x etc/wgetrc.sample
x info/wget.info
jail16# find . -type f -exec grep -H WITH_ {} \;
jail16# find . -type f -exec grep -H WITHOUT_ {} \;


As you can see, nothing matched in the extracted package files.  I
wonder how easy it would be to add an enhancement to pkg_create to store
the /var/db/ports/<portname>/options file to the package as "+OPTIONS"?

That would be very helpful to what I'm doing, and I'd also like to see
better support for maintaining those options when upgrading ports from
source.

Can anyone comment on the pkg_add enhancement and what side-effects that
might have?

Regards,
Greg
- --
Greg Larkin
http://www.sourcehosting.net/
http://www.FreeBSD.org/ - The Power To Serve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIkykJ0sRouByUApARAiWtAJ9Kp20t1MLxIudmsUdCYiMy41s8FgCaAs4X
iqXRJAj58IFxMY3/QO0MJaI=
=awIm
-----END PGP SIGNATURE-----

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to