Hi forum,
I am using src2pkg to build some stuff in Slackware, for instance GMSH ( a finite elements tetrahedral mesher ),
http://www.geuz.org/gmsh/;
src2pkg builds the package allright...
bash-3.1# src2pkg gmsh-2.4.2-source.tgz
Found source archive: gmsh-2.4.2-source.tgz
Creating working directories:
PKG_DIR=/tmp/gmsh-2.4.2-pkg-1
SRC_DIR=/tmp/gmsh-2.4.2-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
Found 'cmake' configuration - Configuring using:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/tmp/gmsh-2.4.2-pkg-1/usr
Compiling sources - Using: 'make'
Compiling has been - Successful!
Checking for 'install' rule - Okay
Checking for DESTDIR (or similar) support - Found DESTDIR
Installing using DESTDIR - Using:
make DESTDIR=/tmp/gmsh-2.4.2-pkg-1 install
Installation in DESTDIR - Successful
Processing package content:
Correcting package permissions - Done
Stripping ELF binaries - Using: strip -p --strip-unneeded Done
Checking for standard documents - Done
NOTICE - No man-pages installed by Makefile
Found man-pages in SRC_DIR - Installing in PKG_DIR
Compressing man pages - Done!
Creating slack-desc - From default text
Searching for links in PKG_DIR - None found
Rechecking package correctness:
Checking for misplaced dirs -
Notice - Package contains PKG_DIR directory.
This usually happens because of badly written Makefiles.
You may need to patch the Makefile(s) to correct this.
Or try using INSTALL_TYPE=JAIL to fix this problem.
Rechecking package permissions - Done
Making installable package - Done
Package Creation - Successful! - Package Location:
/tmp/gmsh-2.4.2-x86_64-1.tgz
But when I install this... instead of launching the app in /usr/bin or /usr/local/bin, it dumps it in /tmp/gmsh-2.4.2-src-1/build/gmsh :
bash-3.1# installpkg /tmp/gmsh-2.4.2-x86_64-1.tgz
Verifying package gmsh-2.4.2-x86_64-1.tgz.
Installing package gmsh-2.4.2-x86_64-1.tgz:
PACKAGE DESCRIPTION:
# gmsh
#
# No description was given for this package.
#
# Packaged by src2pkg
Package gmsh-2.4.2-x86_64-1.tgz installed.
bash-3.1# find / -name gmsh
find: `/proc/4293/net': Invalid argument
/tmp/gmsh-2.4.2-src-1/build/gmsh
/tmp/gmsh-2.4.2-pkg-1/usr/include/gmsh
/tmp/gmsh-2.4.2-pkg-1/usr/bin/gmsh
/tmp/gmsh-2.4.2-pkg-1/usr/share/doc/gmsh
/tmp/gmsh-2.4.2-pkg-1/tmp/gmsh-2.4.2-pkg-1/usr/include/gmsh
/tmp/gmsh-2.4.2-pkg-1/tmp/gmsh-2.4.2-pkg-1/usr/bin/gmsh
/tmp/gmsh-2.4.2-pkg-1/tmp/gmsh-2.4.2-pkg-1/usr/share/doc/gmsh
bash-3.1# ./tmp/gmsh-2.4.2-src-1/build/gmsh
This was not what I had in mind... what can I do to install this in its default prefix... ?
BRGDS
Alex