[opensuse-packaging] -lang packages and requirements
Hi, I just stumbled over an issue while I was trying to strip down an installation. https://bugzilla.novell.com/show_bug.cgi?id=351779 is about mc which consists of the main package mc and the language package mc-lang. mc-lang is created using the macro %lang_package as suggested in http://en.opensuse.org/GNOME/Packaging (The same is true for most (or all?) other packages which have a -lang subpackage.) But the issue I found is that mc.spec defines Requires: %{name}-lang = %{version} So that leaves two basic questions for me: What is the purpose of a sub-package if it is always hard required by the main package? And what I understood is the recommended (or even mandatory?) way to handle language package dependencies the one described here: http://en.opensuse.org/Software_Management/Dependencies/Language If that's correct I think that the %lang_package macro is useless since it doesn't define a locale provides. So what's the policy (or recommendation) actually? Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sun, Jan 06, 2008 at 11:07:40PM +0100, Wolfgang Rosenauer wrote:
Hi,
I just stumbled over an issue while I was trying to strip down an installation.
https://bugzilla.novell.com/show_bug.cgi?id=351779 is about mc which consists of the main package mc and the language package mc-lang.
mc-lang is created using the macro %lang_package as suggested in http://en.opensuse.org/GNOME/Packaging (The same is true for most (or all?) other packages which have a -lang subpackage.)
But the issue I found is that mc.spec defines Requires: %{name}-lang = %{version}
So that leaves two basic questions for me:
What is the purpose of a sub-package if it is always hard required by the main package?
And what I understood is the recommended (or even mandatory?) way to handle language package dependencies the one described here: http://en.opensuse.org/Software_Management/Dependencies/Language
If that's correct I think that the %lang_package macro is useless since it doesn't define a locale provides.
So what's the policy (or recommendation) actually?
The %name-lang is also provided by the bundle-lang-* RPMs, so we can leave out languages... Not sure where mc is in, but perhaps it should be in bundle-lang-gnome-* Ciao, Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Marcus Meissner wrote:
On Sun, Jan 06, 2008 at 11:07:40PM +0100, Wolfgang Rosenauer wrote:
So that leaves two basic questions for me:
What is the purpose of a sub-package if it is always hard required by the main package?
And what I understood is the recommended (or even mandatory?) way to handle language package dependencies the one described here: http://en.opensuse.org/Software_Management/Dependencies/Language
If that's correct I think that the %lang_package macro is useless since it doesn't define a locale provides.
So what's the policy (or recommendation) actually?
The %name-lang is also provided by the bundle-lang-* RPMs, so we can leave out languages...
Ok, so it works for those bundled in bundle-lang-* RPMs that way.
Not sure where mc is in, but perhaps it should be in bundle-lang-gnome-*
To me it looks like mc is not in any bundle-lang package. Thanks for the pointer and that makes more sense now. Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Not entirely on topic, but do you guys know about %_install_langs RPM
macro? It allows to install only selected files from that marked with
%lang. But this doesn't work 100% correct because many opensuse RPMs
don't use e.g. %find_lang at all.
--
Krzysztof Kotlenga
Marcus Meissner wrote:
On Sun, Jan 06, 2008 at 11:07:40PM +0100, Wolfgang Rosenauer wrote:
So that leaves two basic questions for me:
What is the purpose of a sub-package if it is always hard required by the main package?
And what I understood is the recommended (or even mandatory?) way to handle language package dependencies the one described here: http://en.opensuse.org/Software_Management/Dependencies/Language
If that's correct I think that the %lang_package macro is useless since it doesn't define a locale provides.
Am Sonntag 06 Januar 2008 schrieb Wolfgang Rosenauer: the bundles provide the locale, the mc-lang package will always be pulled in, so there is no need to provide the languages.
So what's the policy (or recommendation) actually?
The %name-lang is also provided by the bundle-lang-* RPMs, so we can leave out languages...
Ok, so it works for those bundled in bundle-lang-* RPMs that way. No, but we made it a general recommendation to split out langs so we can bundle as needed (if mc goes on GNOME CD)
Greetings, Stephan -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On neděle 06 leden 2008, Wolfgang Rosenauer wrote:
But the issue I found is that mc.spec defines Requires: %{name}-lang = %{version}
Maybe Recommends would fit better here. The package can definitely work without the lang subpackage. Vladimir --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (5)
-
Krzysztof Kotlenga
-
Marcus Meissner
-
Stephan Kulow
-
Vladimir Nadvornik
-
Wolfgang Rosenauer