Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1053041

Summary: Cannot rebuild mcelog on RHEL7, %{_unitdir} undefined
Product: Red Hat Enterprise Linux 7 Reporter: Pat Riehecky <riehecky>
Component: mcelogAssignee: Prarit Bhargava <prarit>
Status: CLOSED DUPLICATE QA Contact: Evan McNabb <emcnabb>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: csieh, emcnabb, misterbonnie
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-22 14:20:37 UTC Type: Bug
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
mock config for replication none

Description Pat Riehecky 2014-01-14 15:44:15 UTC
Created attachment 850014 [details]
mock config for replication

Description of problem: mcelog cannot be rebuilt on RHEL7.  The %{_unitdir} is utilized by the spec file but the package that defines this macro is not listed in BuildRequires:

BuildRequires: systemd


Version-Release number of selected component (if applicable):mcelog-1.0-0.8.d2e13bf0.el7.src.rpm


How reproducible:100%


Steps to Reproduce:
1.install minimal buildroot and listed BuildRequires:
2.rpmbuild --rebuild mcelog-1.0-0.8.d2e13bf0.el7.src.rpm
3.

Actual results:
<snip>
+ install -p -m644 /builddir/build/SOURCES/mcelog.service '/builddir/build/BUILDROOT/mcelog-1.0-0.8.d2e13bf0.el7.x86_64%{_unitdir}/mcelog.service'
install: cannot create regular file '/builddir/build/BUILDROOT/mcelog-1.0-0.8.d2e13bf0.el7.x86_64%{_unitdir}/mcelog.service': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.kK129q (%install)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.kK129q (%install)
Child return code was: 1
</snip>

Expected results:
builds without issue

Additional info:

https://fedoraproject.org/wiki/Packaging:Systemd?rd=Packaging:Guidelines:Systemd#Packaging

Comment 2 Prarit Bhargava 2014-01-20 19:45:07 UTC
While I agree that this is a bug in the current RHEL7 mcelog package it is unlikely that I will respin for this issue.

Pushing to 7.1.

P.

Comment 3 Prarit Bhargava 2014-01-22 14:20:37 UTC

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

Comment 4 Prarit Bhargava 2014-01-22 14:22:02 UTC
Unfortunately I cannot add the reporters of this BZ to 1028645.  However, I can tell you that I have added

BuildRequires: systemd

to the mcelog.spec file as part of the fix for 1028645.

HTH,

P.