From owner-svn-ports-all@FreeBSD.ORG Wed Apr 16 19:12:51 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67ECDF6D; Wed, 16 Apr 2014 19:12:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3AEF91631; Wed, 16 Apr 2014 19:12:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3GJCptM091942; Wed, 16 Apr 2014 19:12:51 GMT (envelope-from tijl@svn.freebsd.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3GJComY091940; Wed, 16 Apr 2014 19:12:50 GMT (envelope-from tijl@svn.freebsd.org) Message-Id: <201404161912.s3GJComY091940@svn.freebsd.org> From: Tijl Coosemans Date: Wed, 16 Apr 2014 19:12:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r351413 - in head/lang/nimrod: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2014 19:12:51 -0000 Author: tijl Date: Wed Apr 16 19:12:50 2014 New Revision: 351413 URL: http://svnweb.freebsd.org/changeset/ports/351413 QAT: https://qat.redports.org/buildarchive/r351413/ Log: Add a patch so the port no longer requires procfs. PR: ports/188326 Approved by: Neal Nelson (maintainer) Added: head/lang/nimrod/files/patch-lib-pure-os.nim (contents, props changed) Modified: head/lang/nimrod/Makefile Modified: head/lang/nimrod/Makefile ============================================================================== --- head/lang/nimrod/Makefile Wed Apr 16 19:03:10 2014 (r351412) +++ head/lang/nimrod/Makefile Wed Apr 16 19:12:50 2014 (r351413) @@ -3,6 +3,7 @@ PORTNAME= nimrod PORTVERSION= 0.9.2 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://nimrod-code.org/download/ DISTNAME= ${PORTNAME}_${PORTVERSION} Added: head/lang/nimrod/files/patch-lib-pure-os.nim ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/nimrod/files/patch-lib-pure-os.nim Wed Apr 16 19:12:50 2014 (r351413) @@ -0,0 +1,36 @@ +--- lib/pure/os.nim.orig ++++ lib/pure/os.nim +@@ -1389,8 +1389,6 @@ + result = getApplAux("/proc/self/exe") + elif defined(solaris): + result = getApplAux("/proc/" & $getpid() & "/path/a.out") +- elif defined(freebsd): +- result = getApplAux("/proc/" & $getpid() & "/file") + elif defined(macosx): + var size: cuint32 + getExecPath1(nil, size) +@@ -1399,16 +1397,14 @@ + result = "" # error! + else: + # little heuristic that may work on other POSIX-like systems: +- result = string(getEnv("_")) +- if len(result) == 0: +- result = string(ParamStr(0)) +- # POSIX guaranties that this contains the executable +- # as it has been executed by the calling process +- if len(result) > 0 and result[0] != DirSep: # not an absolute path? +- # iterate over any path in the $PATH environment variable +- for p in split(string(getEnv("PATH")), {PathSep}): +- var x = joinPath(p, result) +- if ExistsFile(x): return x ++ result = string(ParamStr(0)) ++ # POSIX guaranties that this contains the executable ++ # as it has been executed by the calling process ++ if len(result) > 0 and result[0] != DirSep: # not an absolute path? ++ # iterate over any path in the $PATH environment variable ++ for p in split(string(getEnv("PATH")), {PathSep}): ++ var x = joinPath(p, result) ++ if ExistsFile(x): return x + + proc getApplicationFilename*(): string {.rtl, extern: "nos$1", deprecated.} = + ## Returns the filename of the application's executable.