Bug 1096349 - Fix kmod.prov to work with compressed modules
Summary: Fix kmod.prov to work with compressed modules
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1058331
TreeView+ depends on / blocked
 
Reported: 2014-05-09 17:52 UTC by Josh Boyer
Modified: 2014-05-12 19:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-12 19:10:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Strip compression suffixes from kmod Provides (1.42 KB, text/plain)
2014-05-09 17:52 UTC, Josh Boyer
no flags Details

Description Josh Boyer 2014-05-09 17:52:31 UTC
Created attachment 894131 [details]
Strip compression suffixes from kmod Provides

Description of problem:

With bug 1025513, Kyle added support to generate kmod(foo.ko) provides for kernel modules.  That works fine, however we're looking at shipping xz compressed modules.  That means the existing script would generate:

Provides: kmod(foo.ko.xz)

instead of

Provides: kmod(foo.ko)

(the modules.builtin provides aren't impacted).

We'll be compressing the modules with xz, but the userspace utilities can support xz or gzip.  The attached patch fixes the kmod.prov script to strip off the .gz/.xz suffix and generate the Provides we'd still like.

I've done a build in COPR against a redhat-rpm-config that has this patch included.  The provides appear to be generated correctly.  You can find the results here:

http://copr-be.cloud.fedoraproject.org/results/jwboyer/kernel-kmod-autoprov/fedora-rawhide-x86_64/kernel-3.15.0-0.rc4.git4.8.fc21.2/

If this looks OK to everyone, I can push it to git and kick off a build.

Comment 1 Bruno Wolff III 2014-05-09 20:00:16 UTC
I did a quick check and the dependencies seemed to get resolved properly:
Resolving Dependencies
--> Running transaction check
---> Package joystick-support.noarch 0:1.0.0-10.2.fc21 will be installed
--> Processing Dependency: kmod(joydev.ko) for package: joystick-support-1.0.0-10.2.fc21.noarch
--> Running transaction check
---> Package kernel-PAE-modules-extra.i686 0:3.15.0-0.rc4.git4.8.fc21.2 will be installed
--> Finished Dependency Resolution

Comment 2 Panu Matilainen 2014-05-12 12:50:15 UTC
(In reply to Josh Boyer from comment #0)
> If this looks OK to everyone, I can push it to git and kick off a build.

As for the script change, that's yours to change :)

For the spec part, please note that redhat-rpm-config modifications should always just bump the version and leave release alone (as commented at the top of the spec). Its unlike anything else yes, but then redhat-rpm-config is.

Comment 3 Josh Boyer 2014-05-12 13:02:34 UTC
(In reply to Panu Matilainen from comment #2)
> (In reply to Josh Boyer from comment #0)
> > If this looks OK to everyone, I can push it to git and kick off a build.
> 
> As for the script change, that's yours to change :)

OK.

> For the spec part, please note that redhat-rpm-config modifications should
> always just bump the version and leave release alone (as commented at the
> top of the spec). Its unlike anything else yes, but then redhat-rpm-config
> is.

Ah, sorry.  Missed that.  I'll fix it before I commit/push.  Thanks Panu.

Comment 4 Josh Boyer 2014-05-12 19:10:25 UTC
Pushed and built.


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