How to create an LTIB package

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create an LTIB package

635 Views
AdCmo
Contributor III

All,

 

Are there any better instructions on how to create an LTIB package?

I tried following "helloworld" package and these instructions:

http://www.bitshrine.org/autodocs/LtibFaq.html#ref_89

 

But I am still having issues with the package not building.

I have a package with contents like this:

 

pck_dir

   +--fileA.c

   +--fileA.h

   +---tests

           +---- file1.c

           +----file2.c

    +--hdrs

           +----fileX.h

           +----fileZ.h

 

I have attached my spec file and my makefile.

They don't seem to work, I get the error below.

Please let me know if you have done this successfully before.

I had given up on LTIB and using the ordinary make files, but I would like

to get my package working with LTIB.

 

-----------------------------------------------BEGIN DUMP--------------------------

:~/mxc/ltib$ ./ltib -m scbuild -p pck_dir.spec

Processing: pck_dir
=========================
Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /home/mxc/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/mxc/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/mxc/ltib/tmp' --define '_rpmdir /home/mxc/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/mxc/ltib/dist/lfs-5.1/pck_dir/pck_dir.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/mxc/ltib/tmp/rpm-tmp.30662
+ umask 022
+ cd /home/mxc/ltib/rpm/BUILD
+ cd pck_dir-1.0
+ make prefix=/usr
Makefile:36: *** missing separator. Stop.
error: Bad exit status from /home/mxc/ltib/tmp/rpm-tmp.30662 (%build)


RPM build errors:
Bad exit status from /home/mxc/ltib/tmp/rpm-tmp.30662 (%build)
Build time for pck_dir: 0 seconds

Failed building pck_dir


f_scbuild() returned an error, exiting
traceback:
main:560

Exiting on error or interrupt

-----------------------------------------------END DUMP--------------------------

 

Thanks,

Ad.

-----------------------

Original Attachment has been moved to: 291-pkc_dir.spec

Tags (1)
0 Kudos
0 Replies