From owner-freebsd-ports@FreeBSD.ORG Mon Mar 9 10:22:39 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A516BED3 for ; Mon, 9 Mar 2015 10:22:39 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (imap.infracaninophile.co.uk [81.2.117.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 460A517E for ; Mon, 9 Mar 2015 10:22:39 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t29AL633024799 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 9 Mar 2015 10:21:14 GMT (envelope-from matthew@freebsd.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=freebsd.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t29AL633024799 Authentication-Results: smtp.infracaninophile.co.uk/t29AL633024799; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <54FD740A.1000509@freebsd.org> Date: Mon, 09 Mar 2015 10:20:58 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Overriding binary package with local build References: <20150309094324.GA23245@shrubbery.net> In-Reply-To: <20150309094324.GA23245@shrubbery.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TtQQUslHbrEXQuA252fg3ottubrBqTlec" X-Virus-Scanned: clamav-milter 0.98.6 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-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 10:22:39 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --TtQQUslHbrEXQuA252fg3ottubrBqTlec Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/09/15 09:43, heasley wrote: > If one builds a package from ports in order to use different options, f= or > example building with postgres support instead of mysql, or builds a > specific version, but otherwise utilizes binary packages, how is this > indicated to 'pkg upgrade'? >=20 > For example. On this system I've built gld with postgres instead of my= sql > and postfix with another option. The mysql dependency is coming from t= he > binary gld with the default options. And, in theory postfix has differ= ent > options, but also needs an update. >=20 > So, is it possible to tell pkg(8) about the different options/local bui= lt, > but still complain when a version update is necessary? >=20 > # pkg upgrade > Updating FreeBSD repository catalogue... > FreeBSD repository is up-to-date. > All repositories are up-to-date. > ... >=20 > New packages to be INSTALLED: > mysql56-client: 5.6.23 >=20 > Installed packages to be UPGRADED: > postgresql94-server: 9.4.0 -> 9.4.1 > postgresql94-client: 9.4.0 -> 9.4.1_1 > postfix: 2.11.3_4,1 -> 2.11.4,1 >=20 > Installed packages to be REINSTALLED: > gld-1.8_2 (options changed) The best way I've found of doing this is to set up a local poudriere instance to build the packages you want to customize, plus anything that depends directly on them. You can then set your local pkgrepo as higher priority than the main FreeBSD repo in /usr/local/etc/pkg/repos/foo.conf. You might also want 'CONSERVATIVE_UPGRADE=3Dyes' in /usr/local/etc/pkg.conf A poudriere setup for building just a few packages doesn't need a whole lot of system resources. You'll need to tune poudriere.conf so it doesn't try and max out usage of everything -- maybe limit it to a single builder. You can serve the packages it builds either by HTTP, or if everything is all on the same machine, you can just use a file:///.... URL in your repo conf. Cheers, Matthew --TtQQUslHbrEXQuA252fg3ottubrBqTlec Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJU/XQLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTn8ZQQAKL/IvQeo+p5gwIDJQ7FBgK8 DjOPl/Fr0yZhjDSL/UkAegJn2c0er7XJZvEM4NuLhMbEY81MJRDI9RmyD96mENoJ zMeDFqz92/SDX826ygMTlE8iYSBYkY9fK957d5flcrfav4jVCFovymaP0Rua6BcF 9jeyWeNyUfBIKldzz6hYeeSYpfwVFAq48PLe1gdxkqsndkGvnUtEOW1Sl5eGxzuA KPGS4LOHB1v28ZJ7609pTYc45pIw/yZ/Bb3+38UWWRgZ854vJ/puYHMfu8weExb9 R0dprILk5wwkqk+KoEhd+WHsvqwI8KGZWqBMZbcWEaEmTmEE2XRdr9Ea6S3OysT2 +aKt5L4IEXhOgyapCMc0h0bbFDucDJMAKvs6MHw1KeH9DkX4vCUS9lPmtv8VbNI9 c3trGgCEZgDUWc2TN5C08K6ljluRwwzsdze+QkjJiewEKD2SNleugZ+ZkjZbMcOj fD7tU7ayfbh7MYRI1aVD+qDPWzvHe+op/fTgyDUqNsWMIKDjQ8YGgPxb+pFyskF6 XFEQUeABJhB54aAgPw4+n4K+jikpFmt4PcWwqVb0HDwDGH17Lor2bZfvQFc5zr2l z7PA5LVCeH2OA4FTvscK1i5YgQidSzP0rPlukJdu4jibzLl0UCIbJn/KGoxa9NRb 7qgfZphMCjhdFLziboj0 =0JX6 -----END PGP SIGNATURE----- --TtQQUslHbrEXQuA252fg3ottubrBqTlec--