ports/155539: [patch] multimedia/mkvtoolnix: build with ruby19 is broken

Anonymous swell.k at gmail.com
Sun Mar 13 19:50:11 UTC 2011


>Number:         155539
>Category:       ports
>Synopsis:       [patch] multimedia/mkvtoolnix: build with ruby19 is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 13 19:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
RUBY_DEFAULT_VER=1.9
>Description:
The port defines USE_RAKE without USE_RUBYGEMS which leads to RAKE_BIN
that contains invalid value.
>How-To-Repeat:
$ make -V RAKE_BIN RUBY_VER=1.9
/bin/rake19

$ make
[...]
===>  Building for mkvtoolnix-4.5.0
env: /bin/rake19: No such file or directory
*** Error code 127
>Fix:
Below is a workaround

--- a.diff begins here ---
Index: Mk/bsd.ruby.mk
===================================================================
RCS file: /a/.cvsup/ports/Mk/bsd.ruby.mk,v
retrieving revision 1.203
diff -u -p -r1.203 bsd.ruby.mk
--- Mk/bsd.ruby.mk	22 Nov 2010 05:47:07 -0000	1.203
+++ Mk/bsd.ruby.mk	13 Mar 2011 19:24:06 -0000
@@ -550,6 +550,8 @@ RUN_DEPENDS+=		${DEPEND_RUBY_ICONV}
 BUILD_DEPENDS+=		${LOCALBASE}/bin/rake:${PORTSDIR}/devel/rubygem-rake
 .if ${RUBY_VER} == 1.8
 RAKE_BIN=	${LOCALBASE}/bin/rake
+.elif !defined(GEM_LIB_DIR)
+RAKE_BIN=	${LOCALBASE}/bin/rake${RUBY_VER:S/.//}
 .else
 RAKE_BIN=	${GEM_LIB_DIR}/bin/rake${RUBY_VER:S/.//}
 .endif
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ruby mailing list