From owner-freebsd-ruby@FreeBSD.ORG Wed Feb 5 02:58:59 2014 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 34E4DCF3; Wed, 5 Feb 2014 02:58:59 +0000 (UTC) Received: from bromine.jlkhosting.com (bromine.jlkhosting.com [5.135.138.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EC1E810BA; Wed, 5 Feb 2014 02:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bromine.jlkhosting.com; s=x; h=Date:Message-Id:Cc:From:Subject:To; bh=wE5KSShfjjD7mFQdlCij362vPiO51S72/+FznzGAzPA=; b=gaYAFyM6YissCP5pTGXPNYl1Dmhh0VR51VWg9zohGxHdAyCK0aaNsVefrgQXVLxDN/aVyNmfuWoN+j6lcU24NY21uyaZmZCE1G+w8LIf2KHzDZMqH6zaOEKJWYJ+O42S3CoMriyeIE6vtZ3l6N6EOYdJaiVIHiJFFeINSJxFXlc=; Received: from root by bromine.jlkhosting.com with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WAshP-000KGZ-2u; Wed, 05 Feb 2014 03:58:51 +0100 To: FreeBSD-gnats-submit@freebsd.org Subject: [PATCH] lang/ruby: rub19 won't build/install with lang/gcc installed on FreeBSD 10 From: Jim Ohlstein X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: Date: Wed, 05 Feb 2014 03:58:51 +0100 Cc: ruby@FreeBSD.org X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 02:58:59 -0000 >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 (ruby@FreeBSD.org) 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 ---