>Submitter-Id:  current-users
>Originator:    Jim Ohlstein
>Organization:  
>Confidential:  no 
>Synopsis:      [PATCH] lang/ruby: rub19 won't build/install with lang/gcc 
>installed on FreeBSD 10 
>Severity:      non-critical
>Priority:      low
>Category:      ports 
>Class:         change-request
>Release:       FreeBSD 10.0-STABLE amd64
>Environment:
System: FreeBSD bromine.jlkhosting.com 10.0-STABLE FreeBSD 10.0-STABLE #0 
r260997: Wed Jan 22 02:56:43 CET
>Description:
- lang/ruby19 requires libffi to build and run. lang/gcc installs a version of 
libffi.so in /usr/local/lib/gcc46/.
        # locate libffi
        /usr/local/lib/gcc46/libffi.a
        /usr/local/lib/gcc46/libffi.so
        /usr/local/lib/gcc46/libffi.so.4

        # locate ffi.h
        /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd10.0/4.6.4/include/ffi.h
- lang/ruby19 finds that version of libffi and does not build libffi from ports.
        ===>   ruby-1.9.3.484_1,1 depends on file: /usr/local/bin/autoconf-2.69 
- found
        ===>   ruby-1.9.3.484_1,1 depends on shared library: libexecinfo.so - 
found
        ===>   ruby-1.9.3.484_1,1 depends on shared library: libffi.so - found
        ===>   ruby-1.9.3.484_1,1 depends on shared library: libyaml.so - found
- During build, libffi is not found, and "fiddle" is not build.
        configuring fiber
        configuring fiddle
        ffi.h is missing. Please install libffi.
        Failed to configure fiddle. It will not be installed.
        configuring io/console
-lang/ruby19 chokes on install
        ===>  Installing for ruby-1.9.3.484_1,1
        ===>  Checking if lang/ruby19 already installed
        ===>   Registering installation for ruby-1.9.3.484_1,1
        pkg-static: 
lstat(/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/amd64-freebsd10/fiddle.so):
 No such file or directory
        pkg-static: 
lstat(/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/fiddle/closure.rb):
 No such file or directory
        pkg-static: 
lstat(/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/fiddle/function.rb):
 No such file or directory
        pkg-static: 
lstat(/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/fiddle.rb): No 
such file or directory
        pkg-static: 
lstat(/usr/ports/lang/ruby19/work/stage/usr/local/lib/ruby/1.9/fiddle/): No 
such file or directory
        *** Error code 74

        Stop.
        make[1]: stopped in /usr/ports/lang/ruby19
        *** Error code 1

        Stop.
        make: stopped in /usr/ports/lang/ruby19


Port maintainer ([email protected]) is cc'd.

Generated with FreeBSD Port Tools 0.99_11 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

Make libffi and build and run dependency.

--- ruby-1.9.3.484_1,1.patch begins here ---
Index: Makefile
===================================================================
--- Makefile    (revision 342624)
+++ Makefile    (working copy)
@@ -18,9 +18,11 @@
 LICENSE_COMB=  dual
 
 LIB_DEPENDS=   libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
-               libffi.so:${PORTSDIR}/devel/libffi \
                libyaml.so:${PORTSDIR}/textproc/libyaml
 
+BUILD_DEPENDS+=        libffi:${PORTSDIR}/devel/libffi
+RUN_DEPENDS+=  ${BUILD_DEPENDS}
+
 GNU_CONFIGURE= yes
 WRKSRC=                ${RUBY_WRKSRC}
 CONFIGURE_ARGS=        ${RUBY_CONFIGURE_ARGS} \
@@ -209,7 +211,6 @@
        @${FIND} -ds ${RUBY_RIDIR}/ -type d -mindepth 1 | \
                ${SED} -E -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
 
-
 #
 # Add generated doxygen files to pkg-plist
 #
--- ruby-1.9.3.484_1,1.patch ends here ---

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ruby
To unsubscribe, send any mail to "[email protected]"

Reply via email to