Bug 713467 - bug in kmodtool
Summary: bug in kmodtool
Keywords:
Status: CLOSED DUPLICATE of bug 680029
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: driver-update-program
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jon Masters
QA Contact: Cui Chun
URL:
Whiteboard:
Depends On:
Blocks: 725987
TreeView+ depends on / blocked
 
Reported: 2011-06-15 13:48 UTC by Levente Farkas
Modified: 2012-03-05 04:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-05 04:06:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Levente Farkas 2011-06-15 13:48:31 UTC
there is a bug in kmodtool since there is no such thing as %{kmod_version} and %{kmod_release}.
here is the patch:

diff -up ./kmodtool.xyz ./kmodtool
--- ./kmodtool.xyz  2011-06-15 15:29:13.000000000 +0200
+++ ./kmodtool  2011-06-15 15:41:00.000000000 +0200
@@ -172,7 +179,7 @@ EOF
 
 cat <<EOF
 %preun         -n kmod-${kmod_name}${dashvariant}
-rpm -ql kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch) | grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
+rpm -ql kmod-${kmod_name}${dashvariant}-%{version}-%{release}.$(arch) | grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
 EOF
         
 cat <<EOF

Comment 2 RHEL Program Management 2011-07-06 01:37:40 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 Levente Farkas 2011-07-27 09:42:38 UTC
dare i ask to fix other kmodtool bugs too?

Comment 6 Jon Masters 2012-03-05 04:06:55 UTC

*** This bug has been marked as a duplicate of bug 680029 ***

Comment 7 Jon Masters 2012-03-05 04:08:19 UTC
In RHEL6.3, kmod_version and kmod_release macros will be defined, so this fix will not be required. The other bug, 680029 requests that -v and -r be fixed to work, which will also correct this problem.


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