[CFT] UNIQUENAME patches

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Jun 16 20:36:32 UTC 2012


On 16/06/2012 20:11, Olli Hauer wrote:
> With one RPM spec file you can build foo, foo-docs, foo-devlibs and
> foo-examples in one build and get 4 rpm's in one run.
> 
> With the ports infrastructure we have to run several builds
>  one for foo, one for foo-devlibs and maybe one for foo-docs if docs are
>  generated.

Exactly -- that's precisely the functionality that sub-packages is going
to introduce for the ports.  You do one build stage, and can then split
up the results into several different packages.  One port, several pkgs.

This will require the use of a staging directory, so you can package up
a port without having to have it installed.  Staging is another new
feature currently on the drawing board.

> Also DEPENDENCY handling can become a real mess if a port needs
> foo, foo-devlibs , bar, bar-devlibs ... to build.

Well, maybe.  For an end-user system where you install from pkgs (in
this case, meaning pkgng -- that's the driver for most of these new
features ) you only really need the base 'foo-0.99' package:
dependencies will be pretty much equivalent to what there is now.
Optionall you'll probably want foo--docs and foo--examples too, but you
don't have to have them if installing a really stripped down system.
There will probably be some sort of global setting to say automatically
install docs and/or examples when you install the primary port.

When you're doing pkg building, then yes, you'ld need to install a bunch
more pkgs -- they'd be BUILD_DEPENDS rather than RUN_DEPENDS -- but the
ports infrastructure should take care of that.  Using a package builder
like poudriere to maintain your own pkg repo should become standard
procedure for supporting any reasonably sized installation, and that
will gloss over all the boring detail of that for you.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120616/4941534d/signature.pgp


More information about the freebsd-ports mailing list