Subject: Re: pkgsrc + RedHat 8.0 + "USE_LIBTOOL = YES"
To: Sebastian <sebastian-p@gmx.net>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: tech-pkg
Date: 02/23/2003 04:45:07
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--Boundary-00=_vZAV+A5dkKyW/Ak
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <20030223043837.S41921@digitalfreaks.org>
Content-Disposition: INLINE

On Wed, 19 Feb 2003 @ 11:34pm (+0100), Sebastian wrote:

S> similar behavior here on my slackware-current box.
S>

Slackware! Good god is it still kicking? maybe i'll try it out.  that'd be
the perfect distro to put pkgsrc on.  has the installer came out the 19th
centrury or do you still have to load it via tape reel? >:}

S> i've made a small modifications to the
S> 	${PKGSRC}/mk/buildlink2/bsd.buildlink2.mk
S> file and one to the
S> 	${PKGSRC}/mk/buildlink2/fake-la
S> script. now most of the things are working, but i consider my modifications as
S> a tempory workaround

cool thanks, i'll check it out.  anything so as not to be forced to use
RPMs...I'd rather VMS or OS/2 or something less painful

-lava

S> i don't even know if they break other things up ... you have been warned ;)
S>
S>
S> if you find out how to make things working without these mods, let me know
S>
S> sebastian
S>

later -           | _BonaFide[] = { coder, author, | /~\ The ASCII Ribbon
Brian A. Seklecki | problem solver, scholar, BOFH, | \ / Campaign Against
                  | vegetarian, runner, NetBSD     |  X  Exchange, Outlook
                  | advocate, spiritual machine }; | / \ & HTML Email

PGP: E7B2 5A30 0F61 2ECD AF34  7E88 CC30 8B95 EE0B 4D5C

"Any sufficiently advanced technology is indistinguishable from a rigged demo."
--Boundary-00=_vZAV+A5dkKyW/Ak
Content-Type: TEXT/X-DIFF; CHARSET=iso-8859-1; NAME="bsd.buildlink2.mk-patch"
Content-ID: <20030223043837.V41921@digitalfreaks.org>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="bsd.buildlink2.mk-patch"

--- bsd.buildlink2.mk	2003-02-19 23:01:03.000000000 +0100
+++ bsd.buildlink2.mk_foo	2003-02-18 18:15:07.000000000 +0100
@@ -177,6 +177,7 @@
 .endif
 	${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}/include
 	${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}/lib
+	${_PKG_SILENT}${_PKG_DEBUG}${LN} -s ${BUILDLINK_DIR}/lib ${BUILDLINK_DIR}/lib/.libs
 
 # Create the buildlink wrappers before any of the other buildlink targets
 # are run, as the wrapper may need to be used in some of those targets.

--Boundary-00=_vZAV+A5dkKyW/Ak
Content-Type: TEXT/X-DIFF; CHARSET=iso-8859-1; NAME=fake-la-patch
Content-ID: <20030223043837.E41921@digitalfreaks.org>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME=fake-la-patch

--- fake-la	2003-02-19 23:01:03.000000000 +0100
+++ fake-la_foo	2003-02-18 18:03:52.000000000 +0100
@@ -1,3 +1,4 @@
+#!/bin/sh
 #!@BUILDLINK_SHELL@
 #
 # $NetBSD: fake-la,v 1.4 2003/01/06 04:30:12 jlam Exp $
@@ -21,6 +22,7 @@
 libname=`${BASENAME} $reallib`
 tmpdir=${BUILDLINK_DIR}/.tmp
 
+
 if ${TEST} ! -f $tmpdir/inst/$libbase.la; then
 	case $libname in
 	*.so.[0-9]*)
@@ -33,11 +35,18 @@
 		version=`${ECHO} $libname | ${SED} -e "s/^[^.]*\.\([0-9]*\.[0-9]*\)\.dylib/\1/;s/\./:/g"`
 		;;
 	esac
+
+	if [ "x$libbase" = "x" ]; then
+	    exit 0
+	fi
+	
 	${MKDIR} $tmpdir/inst
 	cd $tmpdir
 	${ECHO} "static int i;" > nonempty.c	# create a nonempty input file
 	${LIBTOOL} --mode=compile ${CC} -c nonempty.c
-	${LIBTOOL} ${CC} -o $libbase.la nonempty.lo -rpath $tmpdir/inst -version-info $version
+	# workarond for linux
+	${LIBTOOL} ${CC} -o $libbase.la nonempty.lo -rpath $tmpdir/inst
+#	${LIBTOOL} ${CC} -o $libbase.la nonempty.lo -rpath $tmpdir/inst -version-info $version
 	${LIBTOOL} --mode=install ${CP} $libbase.la $tmpdir/inst >/dev/null
 
 	# Reset the ld.so cache as "libtool --mode=install" may have executed

--Boundary-00=_vZAV+A5dkKyW/Ak--