Subject: pkg/14546: rcs pkg is not available for Darwin
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yyamano@netbsd.org>
List: netbsd-bugs
Date: 11/11/2001 17:00:56
>Number: 14546
>Category: pkg
>Synopsis: rcs pkg is not available for Darwin
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Nov 11 17:01:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Yuji Yamano
>Release: 2001/11/10 pkgsrc via cvs and agc's bootstrap script
>Organization:
>Environment:
rwin localhost 1.4 Darwin Kernel Version 1.4: Sun Sep 9 15:39:59 PDT 2001; root:xnu/xnu-201.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
rcs pkg is not available for Darwin.
>How-To-Repeat:
Just type bmake on on Darwin.
>Fix:
Add Darwin-*-* to ONLY_FOR_PLATFORM.
Darwin has GNU diff, so don't install diffutils.
--- Makefile.orig Sun Nov 11 11:02:33 2001
+++ Makefile Sun Nov 11 18:47:47 2001
@@ -10,13 +10,17 @@
HOMEPAGE= http://www.gnu.org/software/rcs/rcs.html
COMMENT= GNU Revision Control System - version control software
-ONLY_FOR_PLATFORM= SunOS-*-* # in NetBSD base system
+ONLY_FOR_PLATFORM= SunOS-*-* Darwin-*-* # in NetBSD base system
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
DEPENDS= diffutils-2.7:../../devel/diffutils
+CONFIGURE_ARGS+= --with-diffutils=gdiff
+.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= PATH=${LOCALBASE}/bin:$PATH
-CONFIGURE_ARGS+= --with-diffutils=gdiff
post-install:
${RM} -f ${PREFIX}/bin/rcslog
>Release-Note:
>Audit-Trail:
>Unformatted: