Subject: pkg/23880: devel/libgetopt/buildlink2.mk getopt-detection gives false results on FreeBSD; trival fix included
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 12/25/2003 09:55:25
>Number: 23880
>Category: pkg
>Synopsis: devel/libgetopt/buildlink2.mk getopt-detection gives false results on FreeBSD; trival fix included
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 25 09:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Michal Pasternak
>Release: N/A
>Organization:
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-STABLE FreeBSD 4.9-STABLE #0: Tue Dec 23 20:45:53 CET 2003 root@mainframe.w.lub.pl:/usr/obj/usr/src/sys/MP-UX i386
>Description:
devel/libgetopt functionality exists on FreeBSD-STABLE and FreeBSD-
CURRENT operating systems. Unfortunatley, devel/libgetopt's
buildlink2.mk will give false results on FreeBSD, because it uses:
.if exists(/usr/include/getopt.h)
... which doesn't exist on FreeBSD system.
>How-To-Repeat:
Obvious.
>Fix:
Index: buildlink2.mk
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libgetopt/buildlink2.mk,v
retrieving revision 1.2
diff -u -r1.2 buildlink2.mk
--- buildlink2.mk 25 Aug 2002 19:22:30 -0000 1.2
+++ buildlink2.mk 25 Dec 2003 09:55:06 -0000
@@ -12,6 +12,12 @@
_NEED_GETOPT= YES
.endif
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "FreeBSD"
+_NEED_GETOPT= NO
+.endif
+
.if ${_NEED_GETOPT} == "NO"
BUILDLINK_PREFIX.getopt= /usr
BUILDLINK_FILES.getopt= include/getopt.h
>Release-Note:
>Audit-Trail:
>Unformatted: