From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 18 00:10:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 7F2516EC for ; Fri, 18 Apr 2014 00:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59A0A13E6 for ; Fri, 18 Apr 2014 00:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3I0A0oa070656 for ; Fri, 18 Apr 2014 00:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3I0A0AR070653; Fri, 18 Apr 2014 00:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 18 Apr 2014 00:10:00 GMT Resent-Message-Id: <201404180010.s3I0A0AR070653@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Somers Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 766FC611 for ; Fri, 18 Apr 2014 00:06:36 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 63B1A13BA for ; Fri, 18 Apr 2014 00:06:36 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3I06aPZ030709 for ; Fri, 18 Apr 2014 00:06:36 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3I06aEd030705; Fri, 18 Apr 2014 00:06:36 GMT (envelope-from nobody) Message-Id: <201404180006.s3I06aEd030705@cgiserv.freebsd.org> Date: Fri, 18 Apr 2014 00:06:36 GMT From: Alan Somers To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/188741: devel/rubygem-ffi can't load libc on FreeBSD 10 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2014 00:10:00 -0000 >Number: 188741 >Category: ports >Synopsis: devel/rubygem-ffi can't load libc on FreeBSD 10 >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: Fri Apr 18 00:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Alan Somers >Release: 10.0 RELEASE >Organization: Sp >Environment: FreeBSD newisys-1u-1 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: On FreeBSD 10.0, but not earlier versions, rubygem-ffi cannot load libc.so. This bug is known upstream but not yet fixed. The easiest way to demonstrate it is to cd to the ports directory and do "cd work/ffi-1.9.3; rake test". Full details of the bug are at this link: https://github.com/ffi/ffi/issues/308 >How-To-Repeat: "cd work/ffi-1.9.3; rake test" >Fix: A patch (attached) is at this link: https://github.com/Carpetsmoker/ffi/commit/ac63e07f76ed65e4ad8865ef1804ce6e7a333d19#diff-ff27654be928731017894d9ade3611a9 Patch attached with submission follows: --- lib/ffi/library.rb.orig 2014-04-17 17:47:49.000000000 -0600 +++ lib/ffi/library.rb 2014-04-17 17:50:22.000000000 -0600 @@ -114,9 +114,9 @@ rescue Exception => ex ldscript = false - if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*invalid ELF header/ - if File.read($1) =~ /GROUP *\( *([^ \)]+) *\)/ - libname = $1 + if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short|invalid file format)/ + if File.read($1) =~ /(?:GROUP|INPUT) *\( *([^\)]+)/ + libname = $1.split(' ')[0] ldscript = true end end >Release-Note: >Audit-Trail: >Unformatted: