Find what options a precompiled package uses

2008-08-01 Thread David Gurvich
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]


Re: Find what options a precompiled package uses

2008-08-01 Thread David Kelly
On Fri, Aug 01, 2008 at 10:15:49AM -0400, 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.

You could go to the port in /usr/ports/ and make patch which will do
everything right up to building the port. Then browse the sources to see
what has been selected. Sometimes its easier to see the options selected
by watching the port compile. A simple make will compile the port but
not install it. A potential problem is that if a build dependency is
missing it will try to build and install that first.

A build dependency is something needed to build the port but not needed
to run the port. Precompiled ports bypass the need for build
dependencies.

Or you could just study the Makefile and supporting files in /usr/ports/
to see what the defaults are for your particular precompiled port.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Find what options a precompiled package uses

2008-08-01 Thread Valeriu Mutu
On Fri, Aug 01, 2008 at 10:33:27AM -0400, David Gurvich wrote:
 I don't want to know what options are set for building a port.
 I want to know what options were used in a previously built port that
 is either available as a tar file or installed on a system, preferably
 checking the tar file for the options.
You might find some hints by downloading/unpacking the package and using 'ldd' 
on the binary to see what shared libraries it is linked to.

Valeriu

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

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


Re: Find what options a precompiled package uses

2008-08-01 Thread David Gurvich
I don't want to know what options are set for building a port.
I want to know what options were used in a previously built port that
is either available as a tar file or installed on a system, preferably
checking the tar file for the options.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Find what options a precompiled package uses

2008-08-01 Thread David Kelly
On Fri, Aug 01, 2008 at 10:33:27AM -0400, David Gurvich wrote:
 I don't want to know what options are set for building a port.
 I want to know what options were used in a previously built port that
 is either available as a tar file or installed on a system, preferably
 checking the tar file for the options.

If you got the precomipled port from official sources then that which is
in /usr/ports *is* how it was optioned, with the possible exception of
the X stuff.

If someone else precompiled the port, then ask them.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Find what options a precompiled package uses

2008-08-01 Thread Greg Larkin

-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]


Re: Find what options a precompiled package uses

2008-08-01 Thread David Gurvich
Looks like I made a bad assumption, that there would be something
similar to /var/db/ports/PORT_NAME/options for packages.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]