Bug 547011

Summary: xz-devel should provide static lib
Product: [Fedora] Fedora Reporter: ojab <bugzilla.redhat.com>
Component: xzAssignee: Jindrich Novy <jnovy>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: a.badger, jnovy, notting, pknirsch, rdieter, rjones
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-16 15:02:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
0001-Add-a-static-subpackage-see-RHBZ-547011.patch none

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