Bug 575877 - RPM build failing -- use of non-existent macro
Summary: RPM build failing -- use of non-existent macro
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: corosync
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Angus Salkeld
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 575165
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-22 15:52 UTC by Fabio Massimo Di Nitto
Modified: 2012-05-21 09:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 575165
Environment:
Last Closed: 2012-05-21 09:25:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch that fixes the problem (1.21 KB, patch)
2010-05-05 01:37 UTC, Angus Salkeld
no flags Details | Diff

Description Fabio Massimo Di Nitto 2010-03-22 15:52:52 UTC
+++ This bug was initially created as a clone of Bug #575165 +++

Created an attachment (id=401281)
initrddir, not initddir

Description of problem:

RPM fails to build due to referencing missing macro (%{_initddir} vs %{_initrddir})

Version-Release number of selected component (if applicable):

1.1.2

How reproducible:

Always

Steps to Reproduce:
1. ./configure && make openais.spec
2. rpmbuild -bb openais.spec
  
Actual results:

Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/openais-1.1.2-2.r-r14582
error: Installed (but unpackaged) file(s) found:
  /%{_initddir}/openais


RPM build errors:
   File not found: /var/tmp/openais-1.1.2-2.r-r14582/etc/rc.d/init.d/openais
   Installed (but unpackaged) file(s) found:
  /%{_initddir}/openais

Expected results:

Error-free build and binary RPM.

Additional info:

Patch attached.

--- Additional comment from fdinitto on 2010-03-19 13:56:52 EDT ---

On which distribution are you building?

This macro exists in Fedora at least for the past 3 or 4 releases.

--- Additional comment from mark on 2010-03-19 14:38:18 EDT ---

RHEL 5.4:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
# rpm --showrc | grep init
-14: _initrddir	%{_sysconfdir}/rc.d/init.d

--- Additional comment from fdinitto on 2010-03-22 11:50:38 EDT ---

Looks like a sensible change, interesting enough you didn´t see the same problem with corosync.

I´ll just clone this one.

Comment 1 Steven Dake 2010-05-04 20:30:56 UTC
angus have a look at resolving this in trunk.

thanks
-steve

Comment 2 Fabio Massimo Di Nitto 2010-05-04 21:33:23 UTC
this is a one line change in trunk/corosync.spec.in. The change suggested by the reporter is correct and applies to both corosync and openais.

Comment 3 Angus Salkeld 2010-05-05 01:37:41 UTC
Created attachment 411454 [details]
patch that fixes the problem

Fixed the problem (posted to ML).

Comment 4 Bug Zapper 2010-07-30 11:09:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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