Bug 547011 - xz-devel should provide static lib
Summary: xz-devel should provide static lib
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xz
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-13 07:44 UTC by ojab
Modified: 2014-05-16 15:02 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-16 15:02:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
0001-Add-a-static-subpackage-see-RHBZ-547011.patch (2.49 KB, patch)
2014-05-16 14:08 UTC, Richard W.M. Jones
no flags Details | Diff

Description ojab 2009-12-13 07:44:08 UTC
liblzma.a not found after xz-devel installation.

Comment 1 Rex Dieter 2009-12-13 15:02:26 UTC
Fwiw, fedora's guidelines specifically recommand against shipping static
libraries
https://fedoraproject.org/wiki/Packaging/Guidelines#Packaging_Static_Libraries

Is there some reason or justification for wanting to do otherwise here?

Comment 2 ojab 2009-12-14 08:25:33 UTC
One of my small projects needs static libs. Will write -static spec for my own
then.

Comment 3 Richard W.M. Jones 2014-05-16 14:02:29 UTC
Reopening.  The kernel is now shipping xz-compressed
modules.  As a result, supermin needs to use a static xz
in order to create a tiny, statically linked init which
can open these module files.

Kernel change:
http://pkgs.fedoraproject.org/cgit/kernel.git/commit/?id=8922622858e7af7cfca2ed2d68090140348cc6a8

supermin xz support:
https://github.com/libguestfs/supermin/blob/master/src/init.c#L310

As the change to xz.spec seems very simple, I intend to go ahead
and just do this unless anyone objects.

Comment 4 Richard W.M. Jones 2014-05-16 14:08:15 UTC
Created attachment 896417 [details]
0001-Add-a-static-subpackage-see-RHBZ-547011.patch

Proposed patch to add a static subpackage (called xz-static).

Comment 5 Toshio Ernie Kuratomi 2014-05-16 14:39:43 UTC
Looks good.  Feel free to apply.

Comment 6 Richard W.M. Jones 2014-05-16 15:02:00 UTC
After discussing this with Toshio and becoming a co-maintainer,
I have pushed this to Rawhide only.  There is now a subpackage
called xz-static.

http://koji.fedoraproject.org/koji/taskinfo?taskID=6856256


Note You need to log in before you can comment on or make changes to this bug.