Hi list, Dan Cermak <DCermak@suse.com> writes:
Hi list,
I would like to propose a change in our packaging guidelines, specifically the part about bundling static libraries in a *-devel-static subpackage (see: https://en.opensuse.org/openSUSE:Packaging_guidelines#Exception).
How about we follow what Fedora does and instead of putting the static lib in a subpackages, we put it in the "main" package instead and add a:
I have formulated this part wrongly and not as I actually intended it: the bundled static library shouldn't necessarily be put into the main package, but into the respective subpackage where it belongs (and if that means its own subpackage, then so be it). For example: a shared library bundles a static library and the static library is needed to link against the shared lib. The main package is libfoo, which ships the shared library. The foo-devel subpackage ships all the headers, the static library and Provides: bundled(evil-static-lib) Thereby only those that need the static lib actually get it, we can search for the bundled library and we have a package less. I admit that technically it *is* now a little easier to link against the static lib, but then again you should BuildRequires: bundled(evil-static-lib) which I find actually more conspicuous than a BuildRequires: libevil-static
Provides: bundled(foo) = $version
into the spec file? The full guidelines are here: https://fedoraproject.org/wiki/Bundled_Libraries?rd=Packaging:Bundled_Librar...
This has the advantage that we don't have this additional -static package, which is relatively pointless beside keeping track of bundled libraries. Querying the bundled packages can be then done as follows: rpm -qa --qf "%{name} %{providename}\n"|grep bundled
or via zypper: zypper search --provides 'bundled(*)'
Any opinions/thoughts?
Cheers,
Dan
-- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany Tel: +49-911-74053-0; Fax: +49-911-7417755; https://www.suse.com/ GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)