On 14/10/2012 12:02 AM, Jos Vos wrote: > 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). > Ahhh - yes: if [ -x /sbin/new-kernel-pkg ] then fi Thats not helpful then. It seems /etc/rpm/macros.dist doesn't exist. However, it seems to be provided by the package buildsys-macros. I've installed that and as its only populated at package build time, we'll see what happens this time around :) I hope this is it as I've been fumbling around for the last few hours trying to get it sorted. I haven't built for EL5 before - so theres a few things that seem strange. -- Steven Haigh Email: [log in to unmask] Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299