RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 999029 - %{kernel_source $flavor} and kernel_module_package expands to non-existing directory
Summary: %{kernel_source $flavor} and kernel_module_package expands to non-existing di...
Keywords:
Status: CLOSED DUPLICATE of bug 928599
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: redhat-rpm-config
Version: 7.0
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: rc
: 7.0
Assignee: Weiping Pan
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-20 14:38 UTC by Alaa Hleihel
Modified: 2015-01-04 21:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-10 03:14:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alaa Hleihel 2013-08-20 14:38:41 UTC
NOTE: The bug is related to "Red Hat Enterprise Linux Server release 7.0 Alpha3" but it wasn't in the products list, so i put under RHEL6.

######
Description of problem:
While creating a kernel module package using kernel_module_package. The %{kernel_source $flavor} expands to a non-existing directory:
--------------------------------------------
make: *** /usr/src/kernels/3.7.0-0.36.el7-x86_64: No such file or directory.  Stop.
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.fl4iBx (%build)
--------------------------------------------
%{kernel_source $flavor} returned a path that doesn’t exist: /usr/src/kernels/3.7.0-0.36.el7-x86_64
it should return: /usr/src/kernels/3.7.0-0.36.el7.x86_64
with a dot "." instead of a hyphen before the architecture.


Also, rpm --eval %{kernel_module_package} gives:
%defattr(644,root,root,755)
/lib/modules/3.7.0-0.36.el7/
/lib/firmware/

1. The architecture is missing in path "/lib/modules/3.7.0-0.36.el7/".
it should be "/lib/modules/3.7.0-0.36.el7.x86_64/".
2. "/lib/firmware/" is not always needed by all packages, so i don't think that it should be here.

#####
Version-Release number of selected component (if applicable):
redhat-rpm-config-9.1.0-37.el7.noarch

#####
How reproducible:
always

#####
Steps to Reproduce:
1. Create a spec file using kernel_module_package (and kernel_source).
2. Build.
3. It will fail because of the missing directory.

#####
Actual results:
%{kernel_source $flavor} returns: /usr/src/kernels/3.7.0-0.36.el7-x86_64

#####
Expected results:
%{kernel_source $flavor} should return: /usr/src/kernels/3.7.0-0.36.el7.x86_64
(with a dot "." instead of a hyphen before the architecture.)

Comment 2 Weiping Pan 2013-08-22 07:44:18 UTC
The fix for this bug is already included in the patch for bug 928599, and that bug is fixed in 9.1.0-49 for redhat-rpm-config.

Comment 3 Alaa Hleihel 2013-08-27 08:43:37 UTC
the issue was resolved with version 9.1.0-49.
thanks.

Comment 5 Weiping Pan 2013-12-10 03:13:53 UTC
Accordering to the bug description, the product of this bug should be "Red Hat Enterprise Linux 7", so I will modify it.

And accordering to commet 3, this bug is fixed, so I will close it with a dupliacate of bug 928599.

Comment 6 Weiping Pan 2013-12-10 03:14:35 UTC

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


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