ports/146559: [PATCH] net-mgmt/net-snmp: fix build and plist when WITHOUT_PERL_EMBEDDED=yes

Sahil Tandon sahil at FreeBSD.org
Fri May 14 02:10:08 UTC 2010


>Number:         146559
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/net-snmp: fix build and plist when WITHOUT_PERL_EMBEDDED=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 14 02:10:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sahil Tandon
>Release:        FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:

	
>Description:
- Tweak CONFIGURE_ARGS to pass appropriate flags to ld(1) [1]
- Fix PLIST when WITHOUT_PERL_EMBEDDED=yes

[1] For context, see: http://docs.FreeBSD.org/cgi/mid.cgi?4BEB160B.7050101
>How-To-Repeat:
Build the port when WITHOUT_PERL_EMBEDDED=yes
>Fix:

	



--- net-snmp.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net-mgmt/net-snmp/Makefile,v
retrieving revision 1.178
diff -u -r1.178 Makefile
--- Makefile	1 May 2010 01:38:47 -0000	1.178
+++ Makefile	14 May 2010 01:35:03 -0000
@@ -40,7 +40,7 @@
 		--with-sys-location="${NET_SNMP_SYS_LOCATION}" \
 		--with-logfile="${NET_SNMP_LOGFILE}" \
 		--with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
-		--with-gnu-ld --with-libwrap --with-libs="-lm -lkvm -ldevstat"
+		--with-gnu-ld --with-libwrap --with-ldflags="-lm -lkvm -ldevstat"
 
 .if defined(BATCH)
 CONFIGURE_ARGS+=--with-defaults
@@ -66,8 +66,10 @@
 CONFIGURE_ARGS+=--with-perl-modules
 .if defined(WITHOUT_PERL_EMBEDDED)
 CONFIGURE_ARGS+=--disable-embedded-perl
+PLIST_SUB+=	WITH_PERL_EMBEDDED="@comment "
 .else
 CONFIGURE_ARGS+=--enable-embedded-perl
+PLIST_SUB+=	WITH_PERL_EMBEDDED=""
 .endif
 PLIST_SUB+=	WITH_PERL=""
 .else
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/net-mgmt/net-snmp/pkg-plist,v
retrieving revision 1.54
diff -u -r1.54 pkg-plist
--- pkg-plist	17 Sep 2009 11:47:32 -0000	1.54
+++ pkg-plist	14 May 2010 01:35:03 -0000
@@ -398,7 +398,7 @@
 %%DATADIR%%/mibs/UCD-SNMP-MIB.txt
 %%DATADIR%%/mibs/UDP-MIB.txt
 @unexec rm -f %D/%%DATADIR%%/mibs/.index 2>/dev/null || true
-%%WITH_PERL%%%%DATADIR%%/snmp_perl.pl
+%%WITH_PERL_EMBEDDED%%%%DATADIR%%/snmp_perl.pl
 %%DATADIR%%/snmpconf-data/snmp-data/authopts
 %%DATADIR%%/snmpconf-data/snmp-data/debugging
 %%DATADIR%%/snmpconf-data/snmp-data/mibs
--- net-snmp.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list