Subject: pkg/22450: devel/binutils does not build on NetBSD 1.5.x
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Ian.Fry@sophos.com>
List: netbsd-bugs
Date: 08/12/2003 13:42:04
>Number:         22450
>Category:       pkg
>Synopsis:       devel/binutils does not build on NetBSD 1.5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 12 12:43:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ian Fry
>Release:        NetBSD 1.5.4_ALPHA
>Organization:
>Environment:
System: NetBSD neo.localnet 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (NEO) #18: Sun Feb  9 10:46:40 GMT 2003     ief@neo.localnet:/mnt/source/kernels/NEO i386
Architecture: i386
Machine: i386
>Description:
devel/binutils does not build on NetBSD 1.5.x because it requires gcc
2.95.3 or later, and texinfo 4.6 or later
>How-To-Repeat:
cd pkgsrc/devel/binutils
make
>Fix:
This fixes the problem for 1.5.x, but introduces an extra dependency on
lang/gcc for 1.6 and later

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/binutils/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile	2003/07/17 21:29:40	1.14
+++ Makefile	2003/08/02 13:12:41
@@ -16,6 +16,8 @@
 USE_NEW_TEXINFO=	YES
 USE_PKGLOCALEDIR=	YES
 
+TEXINFO_REQD=	4.6
+
 CONFIGURE_ARGS+=	--with-lib-path='/lib:/usr/lib'
 
 PLIST_SRC=	${PKGDIR}/PLIST.common
@@ -36,5 +38,8 @@
 post-install:
 	${FIND} ${PREFIX}/${MACHINE_GNU_PLATFORM}/lib/ldscripts -type f -print | \
 		${SORT} -r | ${SED} 's;${PREFIX}/;;g' > ${WRKDIR}/PLIST_DYNAMIC
+
+USE_GCC2=	# defined
+.include "../../mk/gcc.buildlink2.mk"
 
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: