From owner-freebsd-questions@FreeBSD.ORG Sun Mar 23 17:12:10 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83C40569 for ; Sun, 23 Mar 2014 17:12:10 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0EF4CE97 for ; Sun, 23 Mar 2014 17:12:09 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s2NHC01O053131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 23 Mar 2014 17:12:01 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s2NHC01O053131 Authentication-Results: smtp.infracaninophile.co.uk/s2NHC01O053131; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <532F15D8.10403@FreeBSD.org> Date: Sun, 23 Mar 2014 17:11:52 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; 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> In-Reply-To: <20140323150144.029c571e.freebsd@edvax.de> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cdXQGxiKIiwAhL7HrVD4Da7gMeMel1wd1" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk 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: Sun, 23 Mar 2014 17:12:10 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cdXQGxiKIiwAhL7HrVD4Da7gMeMel1wd1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 p= kg >> 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? >=20 > 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. >=20 > 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. >=20 > Here's a summary: https://wiki.freebsd.org/PkgPrimer Err... what? pkg(8) can be used on 9.x pretty transparently when compiling from ports. All you need to do is install pkg(8) -- either by building the ports-mgmt/pkg port, or by using the /usr/sbin/pkg bootstrap. Then run pkg2ng to convert your database of installed packages to pkgng style and add 'WITH_PKGNG=3DYES' to /etc/make.conf. You can (optionally) set up /usr/local/etc/pkg.conf -- but you don't need this at all. Most people find the compiled in defaults are fine so they can use an empty or (in fact) no pkg.conf at all. If you want the option of using a package repository, create a /usr/local/etc/pkg/repos/foo.conf file (for your choice of 'foo'). See pkg.conf(5) for details of what should go into foo.conf. 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. 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. Tools like portmaster(8) and portupgrade(8) understand how to work with pkg(8) and should just work automatically as soon as pkg(8) is installed. Most tools in the ports tree that need pkg(8) support have it available now, although some of them need to be rebuilt with changed OPTION settings. Yes, poudriere is a solution in general for package management, and it is very good. However poudriere really comes into its own when you have several machines to maintain. For just a single machine, simply compiling ports locally is still a perfectly viable option. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --cdXQGxiKIiwAhL7HrVD4Da7gMeMel1wd1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTLxXfXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT+XYQAKr4GazA/nHZfbhg8SjhoJiG 1U9jxEaL+ZUx2I0eKc0KzWau2gYU6IVbYbCeSYN72cRQo/r+vhwyLAYsnUzMH/fA HB4CTfvvtf2jBsXjRUo4l/6VqwHx3S7OeZLJfNjiSqACSr/ypMUY3VEM6XwwDT2H nDJZFS7QgtPxwXr4ur16ZC4J3RqcZQeQ9NZZ4CszQk3l+KjV4iDUmfTxmkaKVk8B NfKpcCGag5fnw8xD/eK2IFCTXMFURK0+2qxfP8mQXzPu9zeuPdsaI05yFfquYQjO 5Z+oRV2pYFZkj9tOowuXLNJhL7GWFHNYVyjwDtHuy/b/2JlgZ718Kyro+WHGnpjC 24lOLlVNvCNvasJu14+2g7+W9F8+pD5hj18WlHn8KaB/2BEFfyhzoQvL0utbAVp4 N7GlAZWQFHiVN3+OT84W4LMbhi6FDKeCC5jMEyq3OL8WTG/qpiGi+Oone82yfe9h Je7Sp9oRRtjwFkBN4JIu4zeA2rVbS2jtmL5Lro7l8He04mqc+ZHY56b28mZFA/HI Tvc7VwIsq3czze/qARz59HvuszyW78Ys179WueLFNNdvoZZOzvWtDP0bHCB6j7lA 56diqT8qu1TifkI/8nXEIp77X2AxOJOmxnFXiBgpBW4LHWol5fvcK9AHblhRylrP iG5W85ssC9GuXHe828kY =CPj3 -----END PGP SIGNATURE----- --cdXQGxiKIiwAhL7HrVD4Da7gMeMel1wd1--