Subject: | |
From: | |
Reply To: | |
Date: | Sat, 13 Oct 2012 15:02:17 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
|
|
|