LSB DTK Manager Build Instructions
From ISP_RAS
Contents |
lsb-dtk-manager Source Build Instructions
This document has instructions on how to build the source for the lsb-dtk-manager.
Assumptions
- bzr is installed, 0.13 or better
- build tools are installed (make, lsbcc)
- lsb dynamic linker is in place (/%_lib/ld-lsb-%_arch.so.3)
- rpmbuild is installed
- my 'pwd' is /home/tester/temp
- all build work is done as a "normal" user, not root
Building Steps
Checkout a branch from Bazaar-NG
An initial branch will take some minutes to complete:
$> bzr branch http://bzr.linux-foundation.org/lsb/devel/dtk-manager dtk-manager
or if you have an existing branch:
$> cd dtk-manager $> bzr pull
Building the tarball and package
To build both tarball and package use a plain "make". The Makefile accepts the environment variable BZRTREES to pull from your local branch to build the tarball, rather than the remote branch.
$> cd dtk-manager/package $> BZRTREES=/home/tester/temp make
You should find something like this at the end of the build:
lsb-dtk-manager-<version>.src.tgz lsb-dtk-manager-<version>-<revision>.src.rpm lsb-dtk-manager-<version>-<revision>.i486.rpm
Troubleshooting
You could build tarball and packages through two separate steps:
Build source tarball
$> cd dtk-manager/package $> BZRTREES=/home/tester/temp make tarball
Build rpm package
$> make rpm_package
If your compiler fails with the message 'unrecognized command line option "-fno-stack-protector"', delete or comment out the line 'export CFLAGS=-fno-stack-protector' in the file 'lsb-dtk-manager.spec' and try again.
If you find issues in following the above procedure, please feel free to email to linux_at_ispras.ru.