ltib
[Top][All Lists]
Advanced

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

RE: [Ltib] ltib -m scbuild and the configure file


From: Stuart Hughes
Subject: RE: [Ltib] ltib -m scbuild and the configure file
Date: Thu, 20 Mar 2008 17:57:16 +0000

Hi Peter,

Yes it will cross compile.  When running ltib, by default when called
out to rpm it runs 'spoofed'.  This means that gcc = cross-compiler and
also the interface areas in your project rootfs/usr/{include,lib} are
automatically used without needing explicit -I,-L.  A bunch of other
useful stuff is done.  The aim is to require the minimal number of
changes to packages to get them to build cross.

configure is needed for more complex project when you intend to build
for other OSes etc.  If you don't need it, don't worry about it.

BTW: if you run:

$ ./ltib -m shell

You get placed in the spoof environment and so can do:
$ cd rpm/BUILD/xxx
$ make

This will build using the cross compiler and your interface areas.
Sometimes this is more convenient when working on a package.

Note: LTIB is not really supposed to be a software development tool,
although you can use it that way if you like.  It's more intend as a
configurator/builder for open-source packages.  I think of it more as a
way of publishing a build-able operating system image with all the
configuration points pre-selected, but changeable.

Regards, Stuart

On Thu, 2008-03-20 at 13:39 -0400, Stephens, Peter A. wrote:
> Thanks Peter (nice to know there are more of us out there - The rest
> will be assimilated...),  Good suggestion.  If I do it this way, will
> it still cross-compile?  Probably as that is the intent behind LTIB,
> but I am wondering under what conditions I would need configure then?
> Is this only for special processing not completed by LTIB?
> Peter A. Stephens 
> Advanced Engineering 
> address@hidden 
> www.delphi.com 
> 765-451-7074 
> 
>  
> 
> 
> ______________________________________________________________________
> From: Peter Barada [mailto:address@hidden 
> Sent: Thursday, March 20, 2008 1:05 PM
> To: Stephens, Peter A.
> Cc: address@hidden; address@hidden
> Subject: Re: [Ltib] ltib -m scbuild and the configure file
> 
> 
> 
> On Thu, 2008-03-20 at 12:49 -0400, Stephens, Peter A. wrote:
> > Guys, I am to the step in the LtibFaq ("I have a directory with some
> > sources unpacked") where I want to test the build of the new
> package.
> > It seems to want a configure script at this point.  I don't really
> > have one so is there a template for configure that I should use or a
> > way to tell it to just do "make"?  Will I run into the same issue
> for
> > the install step?  I notice that this runs "rpmbuild -bc
> > --short-circuit", but I will have to look that up as I am new to
> > rpmbuild.
> 
> Sure.  Looking at dist/lfs-5.1/template/template.spec (which I assume
> you copied into test.spec), if you replace line 23
> (the ./configure ...)
> with your command to build (i.e "make"), it will do that....
> 
> > 
> > address@hidden ltib-mpc5121ads-20071210]$ ./ltib -m scbuild -p
> > test.spec
> > 
> > Processing: test
> > ==================
> > rpmbuild --dbpath /home/hzqmrk/proj/ltib-mpc5121ads-20071210/rpmdb
> > --define '_unpacka
> > ged_files_terminate_build 0' --define '_target_cpu ppc' --define
> > '__strip strip' --de
> > fine '_topdir /home/hzqmrk/proj/ltib-mpc5121ads-20071210/rpm'
> --define
> > '_prefix /usr'
> >  --define '_tmppath /home/hzqmrk/proj/ltib-mpc5121ads-20071210/tmp'
> > --define '_mandir
> >  /usr/share/man' --define '_sysconfdir /etc' --define
> > '_localstatedir /var' -bc --sho
> >
> rt-circuit  
> /home/hzqmrk/proj/ltib-mpc5121ads-20071210/dist/lfs-5.1/test/test.spec
> > Executing(%build): /bin/sh
> > -e /home/hzqmrk/proj/ltib-mpc5121ads-20071210/tmp/rpm-tmp.
> > 33025
> > + umask 022
> > + cd /home/hzqmrk/proj/ltib-mpc5121ads-20071210/rpm/BUILD
> > + cd test-0.2
> > + ./configure --prefix=/usr --host=powerpc-linux
> > --build=x86_64-unknown-linux-gnu
> > /home/hzqmrk/proj/ltib-mpc5121ads-20071210/tmp/rpm-tmp.33025: line
> > 22: ./configure: No such file or directory
> > error: Bad exit status
> > from /home/hzqmrk/proj/ltib-mpc5121ads-20071210/tmp/rpm-tmp.33025 (%
> > build)
> >
> > RPM build errors:
> >     Bad exit status
> > from /home/hzqmrk/proj/ltib-mpc5121ads-20071210/tmp/rpm-tmp.33025
> >  (%build)
> > Build time for test: 0 seconds
> > 
> > Failed building test
> >
> > f_scbuild() returned an error, exiting
> > Exiting on error or interrupt
> > 
> > Peter A. Stephens
> > address@hidden
> > 765-451-7074  
> >
> >
> >
> >
> >
> > Dream as if you'll live forever;
> >
> > Live as if you'll die today.
> >           - James Dean
> >
> >
> >     Electronics & Safety, Advanced
> > Engineering
> >
> >
> >
> > 
> >
> >
> > 
> >
> ****************************************************************************************
> >
> > Note: If the reader of this message is not the intended recipient,
> or
> > an employee or agent responsible for delivering this message to the
> > intended recipient, you are hereby notified that any dissemination,
> > distribution or copying of this communication is strictly
> prohibited.
> > If you have received this communication in error, please notify us
> > immediately by replying to the message and deleting it from your
> > computer. Thank you.
> >
> >
> ****************************************************************************************
> >
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> >
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib
> --
> Peter Barada <address@hidden>
> 
> 
> ****************************************************************************************
> 
> Note: If the reader of this message is not the intended recipient, or
> an employee or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify us
> immediately by replying to the message and deleting it from your
> computer. Thank you. 
> 
> ****************************************************************************************
> 
> _______________________________________________
> LTIB home page: http://bitshrine.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

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