SCIENTIFIC-LINUX-DEVEL Archives

October 2012

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Sat, 13 Oct 2012 15:02:17 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
On Sat, Oct 13, 2012 at 11:52:09PM +1100, Steven Haigh wrote:

> When I install the package however, I get:
> /var/tmp/rpm-tmp.89138: line 13: syntax error near unexpected token `fi'
> /var/tmp/rpm-tmp.89138: line 13: `fi'
> error: %post(kernel-xen-3.5.4-4.x86_64) scriptlet failed, exit status 2
> 
> It just so happens that line 13 of %post is: %if 0%{?rhel} == 5
> 
> Does anyone have any insight on this? My google-foo has been failing 
> badly on this :(

Just do a "rpm -qp --scripts your.rpm" and look at the %post section,

My guess: SL 5 does not define the %rhel macro in /etc/rpm/macros.dist,
unlike SL 6 (but this is just my guess, I didn't check).

-- 
--    Jos Vos <[log in to unmask]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

ATOM RSS1 RSS2