Java Mailing List Archive

http://www.redhatconfig.com/

Home » Mandriva Cooker »

Re: [Cooker] Re: [RPM] cooker main/release tcb-1.0.2-8mdv2009.0

Gustavo De Nardin (spuk)

2008-06-13

Replies: Find Java Web Hosting

Author LoginPost Reply
* Vincent Danen <vdanen@(protected)]:
> * [2008-06-12 23:25:37 +0300] Anssi Hannula wrote:
>
> >Dick Gevers wrote:
> >>On Wed, 11 Jun 2008 08:53:05 -0600, Vincent Danen wrote about Re: [Cooker]
> >>Re: [RPM] cooker main/release tcb-1.0.2-8mdv2009.0:
> >>
> >>>>>Vincent Danen <vdanen@(protected):
> >>>>>+ Revision: 217264
> >>>>>- make sure the nscd initscript exists before trying to restart it
> >>>>But if it doesn't, I'm afraid it errs:
> >>>>error: %post(nss_tcb-1.0.2-8mdv2009.0.i586) scriptlet failed, exit
> >>>>status
> >>>>1
> >>
> >>>Oh, I see the problem. Thanks, will fix it ASAP.
> >>
> >>Regret to say it, but in *9mdv the same error remains.
> >
> >If it was an upgrade from the 8mdv, it is normal. The error comes from
> >%postun of 8mdv, not from 9mdv.
>
> No, they both fail. I noticed this yesterday. What I don't get is why.
> My 9mdv spec clearly has "|| : " in it, yet the output of rpm -q
> --scripts doesn't show it.
>
> I haven't had time to look at it more, however. I don't know why the
> new stuff I added isn't showing in the spec scriptlets.

The %_preun_service macro is expanded during build time, and passed "nscd || :"
as arguments:

$ rpm --eval '%_preun_service nscd || : sdf3 sdf sdf sdf'
/usr/share/rpm-helper/del-service %{name} $1 nscd

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.