ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] LTIB on Gentoo


From: Stuart Hughes
Subject: Re: [Ltib] LTIB on Gentoo
Date: Mon, 05 Feb 2007 11:38:26 +0000

Hi Ken,

That's really odd.  What this means is that rpmbuild (from Gentoo) is
returning a non-zero exit.  The building of rpms is invoked in ltib at
line 669: 

            $ec    = system_nb("$echo $cf->{fakeroot} $cmd");
            print "Build time for $sn: ${\( time() - $stime )} seconds\n\n";
            $rebuilt = 1;
            if($ec) {
                warn("Failed building $sn\n");
                $cf->{pkg_build_failures} .= "$sn ";
                undef $ret;
                return $ret unless $echo || $cf->{coe};
            }

So some kind of value must have been returned to $ec.

Looking at your logfile and also at your output below there doesn't seem
to be any error or warning messages, however it is terminating early.
Normally (depending on the version of rpm) you'd expect some more
activity before it finally finished, so it looks like there is an error
that is silently being thrown (maybe in the files section)?

I'm not sure how to diagnose this without a gentoo machine.  I'll google
for a while and see if I can figure out something.  If you have any
ideas or theories, that would be good to hear.  BTW: other people are
using LTIB on Gentoo (not sure which version), so it should be fixable.

Regards, Stuart

On Fri, 2007-02-02 at 15:35 -0500, Ken Gilmer wrote:
> Hey Stuart,
> 
> Interesting...so I first tried the "exit 0" fix.  Ltib halts at the  
> same place.  Then I tried the patch from opendarwin.org and got the  
> same result, and finally the one from redhat.  In all cases the error  
> seems to look the same in the log file:
> 
> ++ sed -e 's,/usr$,,'
> + etc=/opt/ltib/etc
> + mkdir -p /tmp/rpm-fs//opt/ltib/pkgs
> + chmod 777 /tmp/rpm-fs//opt/ltib/pkgs
> + mkdir -p /tmp/rpm-fs//opt/ltib/var/tmp
> + chmod 777 /tmp/rpm-fs//opt/ltib/var/tmp
> + chmod 777 /tmp/rpm-fs//opt/ltib/usr/src/rpm/BUILD /tmp/rpm-fs//opt/ 
> ltib/usr/src/rpm/RPMS /tmp/rpm-fs//opt/ltib/usr/src/rpm/SOURCES /tmp/ 
> rpm-fs//opt/lti
> b/usr/src/rpm/SPECS /tmp/rpm-fs//opt/ltib/usr/src/rpm/SRPMS
> + chmod 777 /tmp/rpm-fs//opt/ltib/usr/src/rpm/RPMS/athlon /tmp/rpm- 
> fs//opt/ltib/usr/src/rpm/RPMS/i386 /tmp/rpm-fs//opt/ltib/usr/src/rpm/ 
> RPMS/i486 /tmp/rp
> m-fs//opt/ltib/usr/src/rpm/RPMS/i586 /tmp/rpm-fs//opt/ltib/usr/src/ 
> rpm/RPMS/i686 /tmp/rpm-fs//opt/ltib/usr/src/rpm/RPMS/noarch
> + chmod -x /tmp/rpm-fs//opt/ltib/usr/lib/rpm/perl.req
> + cd /tmp/rpm-fs//opt/ltib/usr/lib/rpm
> + perl -pi -e 's,([ :])/usr/lib/rpm,\1/opt/ltib/usr/lib/rpm,g'  
> cpanflute cpanflute2 find-provides find-provides.perl find-requires  
> find-requires.perl mac
> ros rpmpopt-4.0.4 rpmrc trpm
> + cd -
> /tmp/rpm-kgilmer/BUILD/rpm-4.0.4
> + /usr/lib/rpm/brp-compress
> + /usr/lib/rpm/brp-strip
> + /usr/lib/rpm/brp-strip-static-archive
> + /usr/lib/rpm/brp-strip-comment-note
> + /usr/lib/rpm/brp-nobuildrootpath
> Processing files: rpm-fs-4.0.4-1
> Build time for rpm-fs: 16 seconds
> 
> Failed building rpm-fs
> Died at ./ltib line 2187.
> 
> Started: Fri Feb  2 10:15:17 2007
> Ended:   Fri Feb  2 10:17:01 2007
> Elapsed: 104 seconds
> 
> These packages failed to build:
> rpm-fs
> Build Failed
> 
> ~~~~~~~~~~~~~~~~~~~~~
> 
> Is there a specific version of RPM I could install to resolve this  
> issue?
> 
> Thanks again,
> -Ken
> 
> 
> On Feb 2, 2007, at 8:50 AM, Stuart Hughes wrote:
> 
> > Hi Ken,
> >
> > I looked into this and it looks like a bug in rpm in the version you
> > have on your host:
> > http://www.redhat.com/archives/rpm-list/2006-February/msg00103.html
> > http://opendarwin.org/pipermail/cvs-dplight-all/2006-June/000053.html
> >
> > I took a look at the script and I can't see and easy way to turn it  
> > off
> > from the spec file.
> >
> > Either try to get an update for this (the second link looks promising)
> > or you can you try simply putting an 'exit 0' at the bottom of the
> > script /usr/lib/rpm/brp-nobuildrootpath
> >
> > Once you've done that, try re-running ltib.
> >
> > Let me know how it goes.
> >
> > Regards, Stuart
> >
> >
> > On Thu, 2007-02-01 at 10:33 -0500, Ken Gilmer wrote:
> >> Stuart,
> >>
> >>    Here is the file.  Hope it helps.
> >>
> >> Thanks
> >
> >> Hi Ken,
> >>
> >> Could you send me the whole host_config.log file off the list, it
> >> looks
> >> like just above there was some message about macros rpmpopt-4.0.4  
> >> that
> >> may give some ideas.  I suspect there may be a package missing on  
> >> your
> >> host installation that wasn't properly checked by ltib.
> >>
> >> Regards, Stuart
> >
> >
> 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]