wiki:LSB

Version 2 (modified by Bruno Cornec, 14 years ago) ( diff )

--

Here is a method to create LSB compliant packages

The Linux Foundation is hosting a set of LSB chroot that can be used in order to test LSB compliance of software as part of their [Linux Standard Base Sample Implementation Downloads http://dev.linuxfoundation.org/download/#impl] page.

You need to get the packages they propose and install them onto your distribution (which is rpm compliant if LSB compliant !)

$ cd $HOME
$ wget http://ftp.linux-foundation.org/pub/lsb/impl/beta/binary/amd64/lsbsi-chroot-4.0.1-1.x86_64.rpm
$ wget http://ftp.linux-foundation.org/pub/lsb/impl/beta/binary/ia32/lsbsi-chroot-4.0.1-1.i586.rpm

As these packages contain overlapping content, if you want to generate for the i386 and x86_64 arches, I propose to you the following installation means, providing the following project-builder configureation:

$ grep vepath ~/.pbrc
vepath default = /home/rinse
$ mkdir -p /home/rinse/lsb/4.0.1/i386 /home/rinse/lsb/4.0.1/x86_64
$ cd /home/rinse
$ rpm2cpio ~/lsbsi-chroot-4.0.1-1.i586.rpm | cpio -ivdum
$ mv ./opt/lsb/si/chroot/* lsb/4.0.1/i386
$ rm -rf opt
$ rpm2cpio ~/lsbsi-chroot-4.0.1-1.x86_64.rpm | cpio -ivdum
$ mv ./opt/lsb/si/chroot/* lsb/4.0.1/x86_64
$ rm -rf opt
Note: See TracWiki for help on using the wiki.