Hi,
On a Solaris 8 box, I have /opt/opkg as the root of my openpkg-1.1.1
installation. I created this after bootstrapping from binaries of
openpkg-1.1.0 and gcc-3.2 under /cw/bin.
I've installed from src.rpm gcc, make, openssl, etc. under /opt/opkg. I
recently built wget-1.8.2-1.1.0.sparc64-solaris2.8-oo.rpm from the
src.rpm. I noticed this during the build process:
-------------------------------------O-------------------------------------
.
.
.
Looking for SSL libraries in /usr/local/ssl
checking for includes... found
checking for RSA_new in -lcrypto... yes
checking for SSL_new in -lssl... yes
checking whether SSL libs are resolved at runtime... yes
Compiling in support for SSL in /usr/local/ssl
checking for md5_calc in -lmd5... yes
checking whether NLS is requested... no
.
.
.
-------------------------------------O-------------------------------------
Also:
-------------------------------------O-------------------------------------
/opt/src/openpkg/src.rpm $ which wget
/opt/opkg/bin/wget
/opt/src/openpkg/src.rpm $ ldd /opt/opkg/bin/wget
libmd5.so.1 => /lib/libmd5.so.1
libssl.so.0.9.6 => /usr/local/ssl/lib/libssl.so.0.9.6
libcrypto.so.0.9.6 => /usr/local/ssl/lib/libcrypto.so.0.9.6
libdl.so.1 => /lib/libdl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
/usr/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
/opt/src/openpkg/src.rpm $
/opt/src/openpkg/src.rpm $ ls /opt/opkg/lib
gcc-lib librpmbuild.a librpmz.a libz.a
libcrypto.a librpmdb.a libssl.a openpkg
libiberty.a librpmio.a libstdc++.a perl5
librpm.a librpmpopt.a libsupc++.a sparcv9
/opt/src/openpkg/src.rpm $
/opt/src/openpkg/src.rpm $ echo $PATH
/opt/opkg/bin:/opt/opkg/sbin:/opt/opkg/local/bin:/opt/opkg/local/sbin:/usr/openwin/bin:/usr/dt/bin:/bin:/sbin:/usr/bin:/usr/sbin
/opt/src/openpkg/src.rpm $ echo $LD_LIBRARY_PATH
/opt/opkg/lib:/opt/opkg/local/lib::/lib:/usr/lib
/opt/src/openpkg/src.rpm $
-------------------------------------O-------------------------------------
So, for some reason the build of wget picked up ssl libs under
/usr/local/lib, which isn't causing problems at the moment, but will in
the future. I also noticed that everything under /opt/opkg/lib
is static (i.e. no dynamically linked libs).
At the moment /usr/local holds non-openpkg based apps another user had
installed, and I don't want to get rid of it because I'm trying to setup a
fully independent openpkg installation before migrating users away from
what's in /usr/local. As a last resort, I might be able to set this up on
a separate machine without /usr/local, just to do builds.
I know I could probably tweak the wget and/or openssl installations, but
in general, I'd like to avoid spending the time examining each src.rpm
build.
Can I rely on the src.rpm files at ftp.openpkg.org passing the correct
options to config/make process so that there are no refs to directories
outside the openpkg root? Or do I have to examine each one when I build ?
Also, in this particular case, any suggestions on the best way to proceed?
This probably involves the whole can of worms regarding static vs. dynamic
linking ...
--
Vinod
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]