Subject: pkg/19171: popt's patch-ab is OS-specific (fix provided)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 11/25/2002 15:52:56
>Number:         19171
>Category:       pkg
>Synopsis:       popt's patch-ab is OS-specific (fix provided)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 25 15:53:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
devel/popt's patch-ab forces use of -lintl.
On glibc system, this is not needed and this conflict causes build to fail.
>How-To-Repeat:
Attempt to build develop/popt on a newer glibc system.
>Fix:

Please consider the following for replacing patch-ab.
Please note this doesn't fix problem with buildlinking gettext-lib
when not needed.  Need to figure out something else for that.

--- Makefile.in.orig	Sat Aug 31 06:22:18 2002
+++ Makefile.in	Mon Nov 25 15:46:23 2002
@@ -133,13 +133,13 @@
 noinst_PROGRAMS = test1 test2 test3
 test1_SOURCES = test1.c
 test1_LDFLAGS = -all-static
-test1_LDADD = $(lib_LTLIBRARIES)
+test1_LDADD = $(lib_LTLIBRARIES) $(LIBINTL)
 test2_SOURCES = test2.c
 test2_LDFLAGS = -all-static
-test2_LDADD = $(lib_LTLIBRARIES)
+test2_LDADD = $(lib_LTLIBRARIES) $(LIBINTL)
 test3_SOURCES = test3.c
 test3_LDFLAGS = -all-static
-test3_LDADD = $(lib_LTLIBRARIES)
+test3_LDADD = $(lib_LTLIBRARIES) $(LIBINTL)
 
 noinst_SCRIPTS = testit.sh
 
>Release-Note:
>Audit-Trail:
>Unformatted: