From leres@ee.lbl.gov  Mon Nov 19 08:29:04 2012
Return-Path: <leres@ee.lbl.gov>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A272A4B4
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Nov 2012 08:29:04 +0000 (UTC)
	(envelope-from leres@ee.lbl.gov)
Received: from hot.ee.lbl.gov (hot.ee.lbl.gov [IPv6:2620:83:8000:102::cb])
	by mx1.freebsd.org (Postfix) with ESMTP id 868B58FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Nov 2012 08:29:04 +0000 (UTC)
Received: from hot.ee.lbl.gov (localhost [127.0.0.1])
	by hot.ee.lbl.gov (8.14.5/8.14.5) with ESMTP id qAJ8T4gO018759;
	Mon, 19 Nov 2012 00:29:04 -0800 (PST)
Received: (from leres@localhost)
	by hot.ee.lbl.gov (8.14.5/8.14.5/Submit) id qAJ8T4Zb018758;
	Mon, 19 Nov 2012 00:29:04 -0800 (PST)
Message-Id: <201211190829.qAJ8T4Zb018758@hot.ee.lbl.gov>
Date: Mon, 19 Nov 2012 00:29:04 -0800 (PST)
From: Craig Leres <leres@ee.lbl.gov>
Reply-To: Craig Leres <leres@ee.lbl.gov>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Craig Leres <leres@ee.lbl.gov>
Subject: [PATCH] Explicitly run version.sh with ${SH}
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         173712
>Category:       ports
>Synopsis:       [PATCH] Explicitly run version.sh with ${SH}
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 19 08:30:00 UTC 2012
>Closed-Date:    Sat Nov 24 19:17:52 UTC 2012
>Last-Modified:  Sat Nov 24 19:17:52 UTC 2012
>Originator:     Craig Leres
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
Lawrence Berkeley National Laboratory
>Environment:
System: FreeBSD hot.ee.lbl.gov 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Wed Jun 13 18:31:18 PDT 2012 leres@hot.ee.lbl.gov:/usr/src/8.2-RELEASE/sys/amd64/compile/LBLIPV6 amd64

>Description:
	The svn repo doesn't have svn:execute set on files/version.sh

>How-To-Repeat:
	===>  Applying FreeBSD patches for arduino-mk-0.10
	/usr/src/FreeBSD-current/ports/devel/arduino-mk/files/version.sh: Permission denied
	*** Error code 126

>Fix:
	Let's just explicitly run the script with ${SH}; patch attached.

--- patch-Makefile begins here ---
--- Makefile.orig	2012-11-17 13:04:23.000000000 -0800
+++ Makefile	2012-11-19 00:23:11.000000000 -0800
@@ -7,6 +7,7 @@
 
 PORTNAME=	arduino-mk
 PORTVERSION=	0.10
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://mjo.tc/atelier/2009/02/acli/
 DISTNAME=	${PORTNAME}_${PORTVERSION}
@@ -42,7 +43,7 @@
 PLIST_SUB+=	EXAMPLES=""
 .endif
 
-ARDUINO_CMD=	${FILESDIR}/version.sh ${PREFIX}/arduino/lib/version.txt
+ARDUINO_CMD=	${SH} ${FILESDIR}/version.sh ${PREFIX}/arduino/lib/version.txt
 OLD_BOARDS_TXT=	/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt
 NEW_BOARDS_TXT=	${PREFIX}/arduino/hardware/arduino/boards.txt
 
--- patch-Makefile ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: wxs 
Responsible-Changed-When: Fri Nov 23 14:45:45 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173712 
State-Changed-From-To: open->closed 
State-Changed-By: wxs 
State-Changed-When: Sat Nov 24 19:17:51 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173712 
>Unformatted:
