From owner-freebsd-ports@FreeBSD.ORG Sat Jun 16 15:49:39 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26A70106564A; Sat, 16 Jun 2012 15:49:39 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id A18618FC08; Sat, 16 Jun 2012 15:49:38 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q5GFnUTa038106 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 16 Jun 2012 16:49:30 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q5GFnUTa038106 Authentication-Results: smtp.infracaninophile.co.uk/q5GFnUTa038106; dkim=none (no signature); dkim-adsp=none Message-ID: <4FDCAB02.2040701@FreeBSD.org> Date: Sat, 16 Jun 2012 16:49:22 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Baptiste Daroussin References: <4FD8AFEC.6070605@FreeBSD.org> <4FDC9488.2010509@FreeBSD.org> <20120616145341.GK98264@ithaqua.etoilebsd.net> In-Reply-To: <20120616145341.GK98264@ithaqua.etoilebsd.net> X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCC8E9902A77F2F6AF6C729A7" X-Virus-Scanned: clamav-milter 0.97.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Chris Rees , freebsd-ports Subject: Re: [CFT] UNIQUENAME patches X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2012 15:49:39 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCC8E9902A77F2F6AF6C729A7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 16/06/2012 15:53, Baptiste Daroussin wrote: > What could be added is a UNIQUENAMESUFFIX to be able to have a finer gr= ain name. That's certainly possible, but I was thinking about your plans to create sub-packages. As I understand it, you'll be building and installing each port into a staging area, and then creating a number of different packages from what's in the staging area. So for a port foo, you might create: foo-0.99 --- the foo application and libfoo.so.0 shared library foo-docs-0.99 --- documentation foo-examples-0.99 --- example configurations etc. foo-devlibs-0.99 --- *.h headers, libfoo.a static lib, profiling libs and other things useful for developers. and so forth. So these are distinct packages all from one port with its own UNIQUENAME and hence all using that port's OPTIONS settings, and all built in one block. Having UNIQUENAMESUFFIX for docs, examples, devlibs etc. would imply all of those are entirely separate ports, like the way bacula and bacula-docs are handled at the moment. I can see there will need to be some sort of SUBPACKAGESUFFIXES variable and associated gubbins in the ports makefiles, to do that, plus something like tagging the entries in pkg-plist to identify which sub-package they should belong to. Trying to mix that with UNIQUENAMESUFFIXes would get pretty complicated. Not to mention the question of foo-devel -- is that the devel sub-package of the foo port, or a separate foo-devel port?[*] Cheers, Matthew [*] Hmmm... maybe sub-packages suffixes should use a different separator: foo-0.99, foo--docs-0.99, foo--examples-0.99 foo--devlibs-0.99 (?) --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enigCC8E9902A77F2F6AF6C729A7 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.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/cqwkACgkQ8Mjk52CukIzNGwCcDDDTwhbMzFxxK2gxOdEQkQKv JJEAnRG7IEQ4aNTkoQEYwhZGO5ss8LgE =1LF/ -----END PGP SIGNATURE----- --------------enigCC8E9902A77F2F6AF6C729A7--