Subject: Re: Alternatives in the same package
To: Mike M. Volokhov <mishka@apk.od.ua>
From: Quentin Garnier <cube@cubidou.net>
List: tech-pkg
Date: 04/20/2005 14:00:20
--6749iDyxihQ87e9v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Apr 20, 2005 at 02:51:07PM +0300, Mike M. Volokhov wrote:
[...]
> 1) Split package on three chunks - xmlformat-ruby, xmlformat-perl,
> xmlformat-docs. Latest package will contain only support documentation,
> independly what kind of script you use. The xmlformat-ruby and
> xmlformat-perl will be bounded together via PKGALTERNATIVES framework.
That's what you should do, I think, except for the part that involves
alternatives: a user will want either versions, not both, unless it is
a package likely to be used by some other packages that might invoke it
in Ruby or PERL. In the latter case, both versions should be installed,
or each package installing an appropriately named version of the script.
Again, no alternatives framework involved.
> 2) Use variable named, say, USE_LANG which may be set to "ruby" or
> "perl" at the build stage. Resulted package name may be also dependent
> on the selected value for USE_LANG. The conflicts will be also handled.
In that case, the correct way of doing this would be with the
PKG_OPTIONS framework.
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--6749iDyxihQ87e9v
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQmZEVNgoQloHrPnoAQJjVwf7BA6+15yMPCH0NLyAqqavCFuQaCk/p9BA
wTa1BVcnVI0HYDySfZr7LmHtFjXga74+JbKCln8Oott6sbo5PhqUBqQO5wJ4PUx2
ZLIDDDJp+Bg5R+1mCi6vj5G7GLNRTHzcPyB1HIMLz2eFKq9E9no0UDVMO29a3Lkn
8yAQDiKNUpfGALQ5NmaN1zRK7lAwF9RxMQ4CDm77ZMo9v79Wfu2MiJcavvNVn1Pv
1rH03q6OYWN5O+Nc7SGBIMAiz6/Z5pdIbOiX6trGn/5aXcvkN7fmeouYZObqdIML
pDavvOHgmMCj7P0S6rVlyFsYQFi8pNY/U8oUOnng1VbXaCfznV9gYA==
=cNMl
-----END PGP SIGNATURE-----
--6749iDyxihQ87e9v--