From owner-freebsd-questions@FreeBSD.ORG Mon Mar 24 23:35:01 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3220E7BF for ; Mon, 24 Mar 2014 23:35:01 +0000 (UTC) Received: from mail5.networktest.com (mail5.networktest.com [204.109.60.142]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EDE199E8 for ; Mon, 24 Mar 2014 23:35:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail5.networktest.com (Postfix) with ESMTP id D41952FCCAA for ; Mon, 24 Mar 2014 16:34:59 -0700 (PDT) Received: from mail5.networktest.com ([127.0.0.1]) by localhost (mail5.networktest.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 79025-03 for ; Mon, 24 Mar 2014 16:34:59 -0700 (PDT) Received: from dhcp131.eng.networktest.com (ns.networktest.com [205.147.16.129]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail5.networktest.com (Postfix) with ESMTPSA id 8A9792FCC96 for ; Mon, 24 Mar 2014 16:34:59 -0700 (PDT) Message-ID: <5330C120.40905@networktest.com> Date: Mon, 24 Mar 2014 16:34:56 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Using pkg with build options References: <372190939.49499.1395582789284.JavaMail.mail@webmail12> <20140323150144.029c571e.freebsd@edvax.de> <532F15D8.10403@FreeBSD.org> <20140323185258.e389040f.freebsd@edvax.de> In-Reply-To: <20140323185258.e389040f.freebsd@edvax.de> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 23:35:01 -0000 On 3/23/14, 10:52 AM, Polytropon wrote: > On Sun, 23 Mar 2014 17:11:52 +0000, Matthew Seaman wrote: >> On 23/03/2014 14:01, Polytropon wrote: >>> On Sun, 23 Mar 2014 13:53:09 +0000 (UTC), Darrell Betts wrote: >>>> Currently have FreeBSD 9.2 installed. I would like to start using pkg >>>> install but I can't find how to use it with build options like the old >>>> make install clean method. Can anyone share a light on this? >>> >>> Basically, you cannot do this. The new pkg obsoletes the >>> traditional pkg_* tools which operate on binary packages >>> which get built (by FreeBSD build systems) using the >>> corresponding port's default settings. >>> >>> If you need to use custom-configured packages (build via >>> "make install clean" or using a port management tool >>> such as portmaster), this does currently not integrate >>> that well with pkg. However, "poudriere" is a solution: >>> You build packages with your own options and can _then_ >>> use that package source with pkg. >>> >>> Here's a summary: https://wiki.freebsd.org/PkgPrimer >> >> Err... what? > > I didn't write anything that contradicts to your or > Warren's reply. :-) > > The conversion from pkg_* to pkg (pkgng) is easy as > you did describe it. > > > >> Once pkgng-ized, the experience with installing from ports is basically >> exactly the same as with pkg_tools. ie. it does some stuff behind the >> scenes to register packages in the package database on installation, but >> you never have to worry about it or invoke it directly. > > The ports infrastructure will interact with pkg in > the same way as it did with the pkg_* tools (for > example keeping the package database, even though > it's a different database). Additional management > tools (like portmaster) also keep working the same > way. I'm still quite confused over the migration to pkg. I have a mix of 9.2 and 10.0 machines. Most run at least one port compiled with options. Is there a guide to moving these machines to pkg and poudriere? Thanks! dn > > > >> You can twiddle port options to your heart's content and pkg will be >> perfectly happy. >> >> The difference comes when you want to look at the contents of your >> package database. 'pkg info -fa' shows you somewhat more than the >> pkg_info equivalent, including what OPTIONS settings were used to >> compile each package. > > In my (limited) experience, problems can arise when > a port has been compiled with nonstandard options, > or a port has been installed that doesn't have a > corresponding binary package available from the > default package source; in this case, using pkg to > binarily update the installed applications will > (corretly) error. > > > > >