[Kst] beta3-2

Matthew D Truch matt at truch.net
Fri Oct 16 20:23:28 CEST 2009


> 2) Build the package in /tmp/kst-build/, and stage the resulting file
> hiearchy in /tmp/kst-package/, for later installation in /usr:
> 
> $ cd /tmp/kst-build
> $ export OUTPUT_DIR=$PWD                     # build dir
> $ exprot INSTALL_PREFIX=/tmp/kst-package/usr # staging-dir/prefix-dir
> $ export INSTALL_LIBDIR=lib                  # libdir under prefix
> $ export KST_DEBUG_MODE=0                    # non-debug build
> $ qmake -r /tmp/kst-source/kst/kst-2.0.0-beta3-2/kst.pro
> $ make
> $ make install
> 
> Which resulted in a properly staged package hiearchy in /tmp/kst-package,
> after which it can be tar'd/cpio'd/ar'd/what-have-you'd into a package.

For fedora, where the "staging-dir" is not allowed to be disclosed
during the "compile" step, only during the install step, I tried to do
this in a slightly different order:

# Compile step
$ cd /tmp/kst-build
$ export OUTPUT_DIR=$PWD                     # build dir
$ export KST_DEBUG_MODE=0                    # non-debug build
$ qmake -r /tmp/kst-source/kst/kst-2.0.0-beta3-2/kst.pro
$ make
# Install step
$ export INSTALL_PREFIX=/tmp/kst-package/usr # staging-dir/prefix-dir
$ export INSTALL_LIBDIR=lib                  # libdir under prefix
$ make install

Which doesn't work as expected; it ignores the staging dir as given in
the INSTALL_PREFIX.  It would be best (from Fedora's point of view) if
"make install" would respect such environment variables even if they
weren't set before build time.  I even tried re-running qmake before the
"make install" step (thinking that I could just have new Makefiles to do
the install on) but this did not work.  

-- 
"If you have only seen it once, then you haven't seen it twice."
--------------------------
Matthew Truch
Department of Physics and Astronomy
University of Pennsylvania
matt at truch.net
http://matt.truch.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20091016/2982897e/attachment.sig 


More information about the Kst mailing list