From owner-freebsd-questions@FreeBSD.ORG Fri Aug 1 15:17:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21D71106566B for ; Fri, 1 Aug 2008 15:17:42 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id F17208FC26 for ; Fri, 1 Aug 2008 15:17:41 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from 68-189-244-97.dhcp.oxfr.ma.charter.com ([68.189.244.97] helo=Gregory-Larkins-Computer.local) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KOwNu-0007Bu-DO; Fri, 01 Aug 2008 11:17:40 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by Gregory-Larkins-Computer.local (Postfix) with ESMTP id 0246722C8A0C; Fri, 1 Aug 2008 11:17:38 -0400 (EDT) Message-ID: <48932909.7040305@FreeBSD.org> Date: Fri, 01 Aug 2008 11:17:29 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: David Gurvich References: <20080801101549.54603d85@verizon.net> In-Reply-To: <20080801101549.54603d85@verizon.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.2 (-) Cc: freebsd-questions@freebsd.org Subject: Re: Find what options a precompiled package uses X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2008 15:17:42 -0000 -----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 "freebsd-questions-unsubscribe@freebsd.org" | 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//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-----