Hello, What would be really cool is if we could do it the same way like Gentoo. You simply have /usr/portage/licenses/ with all the licenses in the system and you package just say "I am BSD-3c" and same like all other pkgs with the same license point to that one file. Also funny thing is that some people actually verify the license of the package and if we would suddenly move it I suppose they would be quite suprised. Cheers Tom Dne Pá 5. února 2016 11:24:38, Jan Engelhardt napsal(a):
On Friday 2016-02-05 11:11, Dirk Müller wrote:
recently I've been made aware that other distributions are adopting %license convention for tagging package licenses.
Of course this only works for new versions of the rpmbuild program, so you will not be seeing an immediate bandwagon jump while people try to keep their specfiles workable with SLE11. And 12.
Technically this seems to be the same like %doc except that it copies to %_defaultlicensedir instead of %_defaultdocdir. with other words
%license FOO
will copy FOO file to /usr/share/licenses/%name/FOO
What are the opinions around that?
It is horrible. Now one extra directory is created for every package (and there is only one file on it on average), which is going to kill filesystem traversal performance for people who still use a rotating disk for /usr. (Not that it makes a difference if the license file is the only %doc file in the %files list.)
Would have probably been nicer to use /usr/share/licenses/%name as the filename (possibly suffixed with .FOO if multiple are needed).
An alternative would be to redefine %defaultlicensedir to %docdir, which would make install the file in the old location, and we could use %license and %doc interchangeably.
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org