Date: Tue, 14 Jul 2015 08:55:49 -0500 From: Brandon J. Wandersee <brandon.wandersee@gmail.com> To: Wim Lewis <wiml@omnigroup.com> Cc: freebsd-questions@freebsd.org Subject: Re: Naming a locally-built version of a package Message-ID: <86oajevo62.fsf@WorkBox.Home> In-Reply-To: <37E1F657-243D-4F8F-A563-0C17B344D1B9@omnigroup.com> References: <37E1F657-243D-4F8F-A563-0C17B344D1B9@omnigroup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Wim Lewis writes: > Is there a particular recommended practice for naming a locally-built > package that is built with a local patch, or different configure > options, etc., so that it works well with the rest of the package > system, particularly dependencies and things? > > Ideally: let's say I'm building a custom version of Foo-1.3. I'd like to name it such that: > - Existing packages that require Foo will be satisfied by my patched Foo > - Local packages which require my patched Foo can specify a dependency on it > Less important but nice: > - pkg audit will still recognize my Foo as Foo and inform me of things I should know > - The system won't suggest to "upgrade" my Foo to a non-patched Foo of a later version > > Is this (or a subset) possible with pkgng? > If you're just build a small number of packages (maybe 5 or fewer), use `pkg lock`. If you're build lots of custom packages, set up a personal package repository. pkg(8) is capable of distinguishing between different builds of a package via a) origin, and b) custom build-time options--no need to change the name. -- ================================================================= :: Brandon Wandersee :: :: brandon.wandersee@gmail.com :: ================================================================== 'A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.' - Douglas Adams ==================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86oajevo62.fsf>