Date: Sat, 02 Feb 2002 20:03:10 +0900 (JST) From: Kazutoshi Kubota <tu7k-kbt@asahi-net.or.jp> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/34551: net/net-snmp is not LOCALBASE clean Message-ID: <20020202.200310.88946944.tu7k-kbt@asahi-net.or.jp>
next in thread | raw e-mail | index | archive | help
>Number: 34551 >Category: ports >Synopsis: net/net-snmp is not LOCALBASE clean >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 02 03:10:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Kazutoshi Kubota >Release: FreeBSD 4.5-RELEASE i386 >Organization: CBUG - Tokyo west area BSD Users Group >Environment: System: FreeBSD flea.willbe6.org 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Thu Jan 31 06:58:15 GMT 2002 root@flea.willbe6.org:/usr/obj/usr/src/sys/AVENTURE i386 >Description: "/usr/local" is hard coded in files/patch-aclocal.m4. If LOCALBASE is not /usr/local (and libtool is installed other place), configure is failed. >How-To-Repeat: set LOCALBASE to /opt, and install libtool into /opt. Then make configure in net/net-snmp. >Fix: diff -urN net-snmp.orig/Makefile net-snmp/Makefile --- net-snmp.orig/Makefile Sat Feb 2 19:06:42 2002 +++ net-snmp/Makefile Sat Feb 2 19:10:13 2002 @@ -66,6 +66,9 @@ SHLIB_VERSION= 4 PLIST_SUB+= shlib=${SHLIB_VERSION} +post-patch: + @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/aclocal.m4 + post-install: @( cd ${PREFIX}/bin && strip ${BIN} ) @( cd ${PREFIX}/sbin && strip ${SBIN} ) diff -urN net-snmp.orig/files/patch-aclocal.m4 net-snmp/files/patch-aclocal.m4 --- net-snmp.orig/files/patch-aclocal.m4 Sat Feb 2 19:06:42 2002 +++ net-snmp/files/patch-aclocal.m4 Sat Feb 2 19:08:38 2002 @@ -12,8 +12,8 @@ +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ -+${CONFIG_SHELL-/bin/sh} /usr/local/share/libtool/ltconfig --no-reexec \ -+$libtool_flags --no-verify --disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh $lt_target \ ++${CONFIG_SHELL-/bin/sh} %%LOCALBASE%%/share/libtool/ltconfig --no-reexec \ ++$libtool_flags --no-verify --disable-ltlibs --release-ignore %%LOCALBASE%%/share/libtool/ltmain.sh $lt_target \ +|| AC_MSG_ERROR([libtool configure failed]) + +# Reload cache, that may have been modified by ltconfig @@ -21,7 +21,7 @@ + # This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -+LIBTOOL_DEPS="--disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh" ++LIBTOOL_DEPS="--disable-ltlibs --release-ignore %%LOCALBASE%%/share/libtool/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' @@ -42,7 +42,7 @@ # which needs '.lib'). libext=a -ltmain="$ac_aux_dir/ltmain.sh" -+ltmain="--disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh" ++ltmain="--disable-ltlibs --release-ignore %%LOCALBASE%%/share/libtool/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" need_locks="$enable_libtool_lock" >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020202.200310.88946944.tu7k-kbt>