Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2011 01:40:57 GMT
From:      Eitan Adler <lists@eitanadler.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/155620: [bsd.port.mk] [patch] hard code OPSYS value
Message-ID:  <201103170140.p2H1evW9082756@red.freebsd.org>
Resent-Message-ID: <201103170150.p2H1o8OO015623@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155620
>Category:       ports
>Synopsis:       [bsd.port.mk] [patch] hard code OPSYS value
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 17 01:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Eitan Adler
>Release:        
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.674
diff -u -r1.674 bsd.port.mk
--- bsd.port.mk	7 Mar 2011 07:32:05 -0000	1.674
+++ bsd.port.mk	17 Mar 2011 01:19:14 -0000
@@ -41,9 +41,7 @@
 #				  returned by "uname -p".  (Note: Ports should test against
 #				  ARCH, and not the host machine's architecture which is
 #				  MACHINE_ARCH, to enable ports to be cross-built.)
-# OPSYS			- Portability clause.  This is the operating system the
-#				  makefile is being used on.  Automatically set to
-#				  "FreeBSD," "NetBSD," or "OpenBSD" as appropriate.
+# OPSYS			- Always "FreeBSD" for compatibility reasons. 
 # OSREL			- The release version (numeric) of the operating system.
 # OSVERSION		- The value of __FreeBSD_version.
 #
@@ -1208,7 +1206,7 @@
 
 # Get the operating system type
 .if !defined(OPSYS)
-OPSYS!=	${UNAME} -s
+OPSYS=	FreeBSD
 .endif

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103170140.p2H1evW9082756>