Subject: Re: devel/libgetopt on Solaris
To: None <tech-pkg@netbsd.org>
From: Roland Illig <roland.illig@gmx.de>
List: tech-pkg
Date: 03/09/2005 20:56:02
This is a multi-part message in MIME format.
--------------020908010203040102010401
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Neil Hoggarth wrote:
> Does anyone have any suggestions for a fix or workaround for PR/22672 
> (devel/libgetopt pkg doesn't build on Solaris, for lack of a sys/cdefs.h 
> header)?
> 
> I need to update my www/curl pkg in response to an audit-packages 
> warning, but a dependency on libgetopt seems to have been introduced 
> recently.

I simply replaced the (unportable) devel/libgetopt with the (portable) 
pkgtools/libnbcompat, and it works fine on Solaris.

Roland

--------------020908010203040102010401
Content-Type: text/plain;
 name="libidn-Solaris.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="libidn-Solaris.patch"

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libidn/Makefile,v
retrieving revision 1.13
diff -p -u -r1.13 Makefile
--- Makefile	7 Feb 2005 15:21:20 -0000	1.13
+++ Makefile	9 Mar 2005 19:37:40 -0000
@@ -22,7 +22,7 @@ PKGCONFIG_OVERRIDE+=    libidn.pc.in
 INFO_FILES=		libidn.info
 
 .include "../../converters/libiconv/buildlink3.mk"
-.include "../../devel/libgetopt/buildlink3.mk"
+.include "../../pkgtools/libnbcompat/buildlink3.mk"
 .include "../../devel/pkgconfig/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
Index: buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libidn/buildlink3.mk,v
retrieving revision 1.5
diff -p -u -r1.5 buildlink3.mk
--- buildlink3.mk	3 Oct 2004 00:13:30 -0000	1.5
+++ buildlink3.mk	9 Mar 2005 19:37:40 -0000
@@ -17,6 +17,6 @@ BUILDLINK_PKGSRCDIR.libidn?=	../../devel
 .endif	# LIBIDN_BUILDLINK3_MK
 
 .include "../../converters/libiconv/buildlink3.mk"
-.include "../../devel/libgetopt/buildlink3.mk"
+.include "../../pkgtools/libnbcompat/buildlink3.mk"
 
 BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}

--------------020908010203040102010401--