Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2015 22:15:06 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Naming a locally-built version of a package
Message-ID:  <55A57BDA.50901@FreeBSD.org>
In-Reply-To: <6C655B93-082B-4782-872B-F411BA722F85@omnigroup.com>
References:  <mailman.111.1436875203.41664.freebsd-questions@freebsd.org> <6C655B93-082B-4782-872B-F411BA722F85@omnigroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55A57BDA.50901>