From owner-freebsd-questions@freebsd.org Tue Jul 14 21:15:12 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CE289A1F54 for ; Tue, 14 Jul 2015 21:15:12 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C28F414CD for ; Tue, 14 Jul 2015 21:15:11 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local ([192.168.100.2]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t6ELF62Y049198 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 14 Jul 2015 22:15:06 +0100 (BST) (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 t6ELF62Y049198 Authentication-Results: smtp.infracaninophile.co.uk/t6ELF62Y049198; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host [192.168.100.2] claimed to be liminal.local Message-ID: <55A57BDA.50901@FreeBSD.org> Date: Tue, 14 Jul 2015 22:15:06 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Naming a locally-built version of a package References: <6C655B93-082B-4782-872B-F411BA722F85@omnigroup.com> In-Reply-To: <6C655B93-082B-4782-872B-F411BA722F85@omnigroup.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8p2RIqHHwCbwmRXC3QJsKMbDN1QEwqwN4" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 21:15:12 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8p2RIqHHwCbwmRXC3QJsKMbDN1QEwqwN4 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 14/07/2015 19:23, Wim Lewis wrote: > Is $PORTREVISION a good place to note the presence and revision of > my local changes (e.g., as "o3" since only one letter is allowed)? Is p= kg's > version-number-comparison behavior documented somewhere--- how it order= s > alphabetics and what it does with the VERSION and REVISION parts of the= > version string? You can test the ordering of two version strings using 'pkg version -t' Note however, if your modified version is Foo-1.0.0.o1 and an update is pulled in from upstream then the regular port version Foo-1.0.1 will supersede your locally modified version. You might find it more effective to use an epoch number instead: Foo-1.0.0;1 which will always sort higher than anything without the ';1' bit. Beware though that once you've added an epoch number you can never remove it. > Would it be reasonable to treat local patches as options? That is, my > local variant of Foo-1.3_5 would still be named Foo-1.3_5.o3, but > would have the option SPIFFY_LOCAL_PATCH. I've noticed that pkg > records the build options of packages but it's not clear to me what > it does with that information (if anything; is this just there to > support future behavior that hasn't been implemented yet?). pkg(8) tracks the option settings almost entirely for documentation purposes at the moment. They don't feature in what the solver is doing currently -- but keep watching this space. You can add your local changes as new options if you like, but I don't think it's going to have quite the effect you're hoping it will. There are a number of changes which are going to hit the ports in the nea= r future, particularly 'FLAVOURS' which you might find interesting. FLAVOURS is all about compiling certain ports several times with alternate dependency choices, eg. 'Foo with mysql' vs. 'Foo with postgresql' vs 'Foo with sqlite' Cheers, Matthew --8p2RIqHHwCbwmRXC3QJsKMbDN1QEwqwN4 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) iQJ8BAEBCgBmBQJVpXvaXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATCxwP/A8bQYTjI4QpX/o/IEu26Z4F 9i1EHpA9PrN3w+SrIMjR93sFq3/nRJq2W7DTihqzQKdSKyf0gHST2RcqNEPWJbM8 876CsT/A859kgII4efLmQ0lO+pfHOjtSQ63Nyt5BXqyFzRdxysXHqGI4phTKpqKZ WBsTI92+nbAl3t/WOXQq3iO/e7YPKGIjyd6XLCXdsEExojlj/aSYqsW/vMihMYf6 w7FSHYldtunEPAqH9oHKrkFaWd4rzTGgJhE0eyOPxhDV0JuE0iJv8xSKXYap0rBm aRwuEQj0t3wbzJQJq+lIVdSoxNbV5HAeuEpTq7BDg0xBOVk8XZo9eKGg0hjga/3F PzCgGZZGrL/QUkuN48TUooRmOdqAItnaxRAfxLv8rRn258zvBEKPym5l4kV/mlmo 2kfP0gDIGxa2gctGifAnsKrJKitLCFQoQpE6z+5OY8xSrrKdJugYL78gAnKZJ5oE PeKsyTPRYo77ecIbC93Xuz7Vx+3D/ATzaLwvoxMkHstFYNcuJ4rbxIkxTdOpjmA+ Q47R2ZAGjA4JsE91fk0z1DO6n56N7aQtAnWvYHJ3AVoRIv3ROsO3I5Zmkak9F7IG +e0/CWVIJPVjjU0hQJ90r8v+skgc2fY5BaajBfFiLo3nOQVlx1tb653Ld0jAw1Nf G2nSGXUb7mCXECq24eYn =KD/Z -----END PGP SIGNATURE----- --8p2RIqHHwCbwmRXC3QJsKMbDN1QEwqwN4--