ports/160969: [patch] sysutils/zfs-snapshot-mgmt: embed ruby version in shebang

h h aakuusta at gmail.com
Sat Sep 24 08:40:02 UTC 2011


>Number:         160969
>Category:       ports
>Synopsis:       [patch] sysutils/zfs-snapshot-mgmt: embed ruby version in shebang
>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:   Sat Sep 24 08:40:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     h h
>Release:        FreeBSD 9.0-BETA2 amd64
>Organization:
>Environment:
>Description:
Allow user to install the port with non-default ruby version.
>How-To-Repeat:
$ make install RUBY_VER=1.9
>Fix:
--- a.diff begins here ---
Index: sysutils/zfs-snapshot-mgmt/Makefile
===================================================================
RCS file: /a/.csup/ports/sysutils/zfs-snapshot-mgmt/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- sysutils/zfs-snapshot-mgmt/Makefile	11 Jan 2010 03:42:14 -0000	1.5
+++ sysutils/zfs-snapshot-mgmt/Makefile	24 Sep 2011 08:28:32 -0000
@@ -16,6 +16,7 @@ COMMENT=	Automatic ZFS snapshot manageme
 
 USE_RUBY=	yes
 RUBY_NO_BUILD_DEPENDS=	yes
+RUBY_SHEBANG_FILES=zfs-snapshot-mgmt
 
 NO_BUILD=	yes
 MAN8=		zfs-snapshot-mgmt.8
@@ -25,7 +26,6 @@ SUB_FILES=	pkg-message
 post-patch:	.SILENT
 	${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} \
 		-e 's|/usr/local|${PREFIX}|g' \
-		-e 's|${PREFIX}\(/bin/ruby\)|${LOCALBASE}\1|g' \
 		{} +
 
 do-install:
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list