View Issue Details

IDProjectCategoryView StatusLast Update
0000709channel: elrepo/el7kmod-fmcpublic2017-01-11 12:39
Reporterjcpunk Assigned Totoracat  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Summary0000709: [RFE] headers package for fmc-kmod
DescriptionFor much of what the FMC kmod is used for, the headers are also helpful for bootstraping downstream modules.
Additional InformationI've attached a patch for the existing spec that places the header files into /usr/src/kmods/fmc-%{version}
TagsNo tags attached.
Attached Files
fmc-kmod.spec.patch (1,050 bytes)   
--- fmc-kmod.spec	2016-11-04 15:54:47.000000000 -0500
+++ fmc-kmod.spec.new	2017-01-10 16:32:00.803167877 -0600
@@ -32,6 +32,13 @@ This package provides the %{kmod_name} k
 It is built to depend upon the specific ABI provided by a range of releases
 of the same variant of the Linux kernel and not on any one specific build.
 
+%package headers
+Summary:	header files for %{kmod_name}-%{version}
+BuildArch:	noarch
+
+%description headers
+Provides the %{kmod_name} kernel headers.
+
 %prep
 %setup -q -n %{kmod_name}-%{version}
 echo "override %{kmod_name} * weak-updates/%{kmod_name}" > kmod-%{kmod_name}.conf
@@ -62,9 +69,17 @@ sha256 %{privkey} %{pubkey} $module;
 done
 %endif
 
+# Create headers
+%{__install} -d %{buildroot}/%{_usrsrc}/kernels/
+(cd %{buildroot}/%{_usrsrc}/kmods/ ; tar xvf %{SOURCE0})
+
 %clean
 %{__rm} -rf %{buildroot}
 
+%files headers
+%defattr(0644,root,root,0755)
+%{_usrsrc}/kmods/%{kmod_name}-%{version}
+
 %changelog
 * Fri Nov 04 2016 Akemi Yagi<toracat@elrepo.org> - 0.0-1
 - Initial el7 build of the kmod package
fmc-kmod.spec.patch (1,050 bytes)   
fmc-kmod.spec-bug709.patch (1,434 bytes)   
--- fmc-kmod.spec.001	2016-11-04 13:54:47.750428785 -0700
+++ fmc-kmod.spec	2017-01-10 23:33:08.415060031 -0800
@@ -6,7 +6,7 @@
 
 Name:    %{kmod_name}-kmod
 Version: 0.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group:   System Environment/Kernel
 License: GPLv2
 Summary: %{kmod_name} kernel module(s)
@@ -32,6 +32,13 @@ This package provides the %{kmod_name} k
 It is built to depend upon the specific ABI provided by a range of releases
 of the same variant of the Linux kernel and not on any one specific build.
 
+%package headers
+Summary:	header files for %{kmod_name}-%{version}
+BuildArch:	noarch
+
+%description headers
+Provides the %{kmod_name} kernel headers.
+
 %prep
 %setup -q -n %{kmod_name}-%{version}
 echo "override %{kmod_name} * weak-updates/%{kmod_name}" > kmod-%{kmod_name}.conf
@@ -62,10 +69,22 @@ sha256 %{privkey} %{pubkey} $module;
 done
 %endif
 
+# Create headers
+%{__install} -d %{buildroot}%{_usrsrc}/kernels/
+%{__install} -d %{buildroot}%{_usrsrc}/kmods/
+(cd %{buildroot}%{_usrsrc}/kmods/ ; tar xvf %{SOURCE0})
+
 %clean
 %{__rm} -rf %{buildroot}
 
+%files headers
+%defattr(0644,root,root,0755)
+%{_usrsrc}/kmods/%{kmod_name}-%{version}
+
 %changelog
+* Tue Jan 10 2017 Akemi Yagi<toracat@elrepo.org> - 0.0-2
+- Add a headers package [elrepo bug #709]
+
 * Fri Nov 04 2016 Akemi Yagi<toracat@elrepo.org> - 0.0-1
 - Initial el7 build of the kmod package
 - Source code from kernel version 4.9-rc3
fmc-kmod.spec-bug709.patch (1,434 bytes)   
Reported upstream

Relationships

related to 0000678 resolvedtoracat RFE: FMC kmod for PCI Express mezzanines. 

Activities

jcpunk

2017-01-10 15:44

reporter   ~0005023

In a sorta related note, fmc-kmod isn't in the dropdown for existing modules

toracat

2017-01-10 15:54

administrator   ~0005024

Thanks for pointing that out. I have added kmod-fmc to the category field and moved this ticket there.

toracat

2017-01-11 01:26

administrator   ~0005033

I have released the following packages to the elrepo repo:

fmc-kmod-0.0-2.el7.elrepo.src.rpm
fmc-kmod-headers-0.0-2.el7.elrepo.noarch.rpm
kmod-fmc-0.0-2.el7.elrepo.x86_64.rpm

I needed to adjust the spec patch file (uploaded).

jcpunk

2017-01-11 07:57

reporter   ~0005035

They look perfect to me! Thanks!

Issue History

Date Modified Username Field Change
2017-01-10 15:35 jcpunk New Issue
2017-01-10 15:35 jcpunk Status new => assigned
2017-01-10 15:35 jcpunk Assigned To => toracat
2017-01-10 15:35 jcpunk File Added: fmc-kmod.spec.patch
2017-01-10 15:44 jcpunk Note Added: 0005023
2017-01-10 15:48 toracat Relationship added related to 0000678
2017-01-10 15:54 toracat Note Added: 0005024
2017-01-10 15:54 toracat Category --elrepo--request-for-enhancement-- => kmod-fmc
2017-01-11 01:22 toracat File Added: fmc-kmod.spec-bug709.patch
2017-01-11 01:26 toracat Note Added: 0005033
2017-01-11 07:57 jcpunk Note Added: 0005035
2017-01-11 12:39 toracat Status assigned => resolved
2017-01-11 12:39 toracat Resolution open => fixed