Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 00:07:44 -0500 (EST)
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34925: [PATCH] Fix build of net-snmp
Message-ID:  <200202140507.g1E57iV30112@shumai.marcuscom.com>

next in thread | raw e-mail | index | archive | help

>Number:         34925
>Category:       ports
>Synopsis:       [PATCH] Fix build of net-snmp
>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:   Wed Feb 13 21:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Joe Marcus Clarke
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
MarcusCom, Inc.
>Environment:
System: FreeBSD shumai.marcuscom.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Feb 2 17:21:37 EST 2002 marcus@shumai.marcuscom.com:/usr/obj/usr/src/sys/SHUMAI i386


	
>Description:
A few -stable users are reporting build problems with net-snmp.  That is, 
the configure script isn't building libtool successfully.  These patches
remove USE_LIBTOOL, and replace it with the infamous ltmain.sh patch
to prevent .la installation.  I have tested this on 4.5-stable, and it
builds successfully for me everytime.
>How-To-Repeat:
	
>Fix:

ADDED FILES:
 files/patch-ltmain.sh

--- Makefile.orig	Mon Jan 21 11:54:50 2002
+++ Makefile	Thu Feb 14 00:01:41 2002
@@ -16,10 +16,9 @@
 
 MAINTAINER=	billf@FreeBSD.org
 
-USE_AUTOCONF_VER=213
-USE_LIBTOOL=	yes
+USE_AUTOCONF_VER=	213
+GNU_CONFIGURE=	yes
 INSTALLS_SHLIB=	yes
-LIBTOOLFLAGS=	--disable-ltlibs --release-ignore
 
 CONFIGURE_ARGS+= --enable-shared --with-mib-modules="host" --with-gnu-ld
 .if defined(BATCH)

Begin files/patch-ltmain.sh

--- ltmain.sh	2001/08/27 09:51:26	1.1
+++ ltmain.sh	2001/08/27 09:51:42
@@ -2408,6 +2408,9 @@
 	  *-*-netbsd*)
 	    # Don't link with libc until the a.out ld.so is fixed.
 	    ;;
+	  *-*-freebsd*)
+	    # FreeBSD doesn't need this...
+	    ;;
 	  *)
 	    # Add libc to deplibs on all other systems if necessary.
 	    if test "$build_libtool_need_lc" = "yes"; then
@@ -4175,10 +4178,12 @@
 	fi
 
 	# Install the pseudo-library for information purposes.
+	if /usr/bin/false; then
 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
 	instname="$dir/$name"i
 	$show "$install_prog $instname $destdir/$name"
 	$run eval "$install_prog $instname $destdir/$name" || exit $?
+	fi
 
 	# Maybe install the static library, too.
 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
>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?200202140507.g1E57iV30112>