How to create an LTIB package

Discussion created by AdCmo on Feb 27, 2012



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

I tried following "helloworld" package and these instructions:


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

I have a package with contents like this:






           +---- file1.c






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

Exiting on error or interrupt

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





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