From owner-freebsd-ruby@FreeBSD.ORG Mon Feb 11 04:02:07 2013 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DBAA45EA; Mon, 11 Feb 2013 04:02:07 +0000 (UTC) (envelope-from steve@mouf.net) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id 95C413CA; Mon, 11 Feb 2013 04:02:07 +0000 (UTC) Received: from meatwad.mouf.net (cpe-098-122-135-254.nc.res.rr.com [98.122.135.254]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id r1B41vIl042598 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Mon, 11 Feb 2013 04:02:02 GMT (envelope-from steve@mouf.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mouf.net; s=mail; t=1360555326; bh=28FG7U757hdXobPSzv87AcEUFFfBdxXzk5JgHdE/BYs=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=gcY0D6ExHD7r1Pa/j4aTO4MmKmAohLbrSuSxq6e5naK7r+DJ/oF4JYiQaFhWPSx3n qgKwtcZUqjGjZg+ygAgorMWli9noqWg4MUYUkf3ygeaeXGJOgQWBQpjS1iEROE2VAX CAe4Rf723qLhiarUc/8kKKHl+K5u+OsPJZf/GUnQ= Message-ID: <51186D35.8080207@mouf.net> Date: Mon, 11 Feb 2013 04:01:57 +0000 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Andriy Gapon Subject: Re: ruby-1.9.pc; strange/harmful entry References: <510FD6A0.2010303@FreeBSD.org> <5117FB5E.1000502@mouf.net> <51181185.1080802@FreeBSD.org> <5118488D.3080706@FreeBSD.org> In-Reply-To: <5118488D.3080706@FreeBSD.org> X-Enigmail-Version: 1.4.6 Content-Type: multipart/mixed; boundary="------------050806010400040604050004" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Mon, 11 Feb 2013 04:02:02 +0000 (UTC) X-Spam-Status: No, score=1.3 required=4.5 tests=RCVD_IN_RP_RNBL autolearn=no version=3.3.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.6 at mouf.net X-Virus-Status: Clean Cc: ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 04:02:07 -0000 This is a multi-part message in MIME format. --------------050806010400040604050004 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 02/11/13 01:25, Steve Wills wrote: > On 02/10/13 21:30, Andriy Gapon wrote: >> on 10/02/2013 21:56 Steve Wills said the following: >>> On 02/04/13 15:41, Andriy Gapon wrote: >>>> $ pkgconf --libs ruby-1.9 >>>> -Wl,-soname,(.TARGET) -Wl,-R -Wl,/usr/local/lib -lruby19 -lexecinfo -lpthread >>>> -lcrypt -lm -L/usr/local/lib -Wl,-rpath=/usr/local/lib -pthread >>>> >>>> I am not sure if '(.TARGET)' is supposed to be expanded. But I think that >>>> -Wl,-soname should really have no place in pkgconf data. >>>> As it is now, the entry causes confusion (e.g. for a shell) when the above line is >>>> included verbatim into some compilation/link command like. >>>> >>> >>> I suspect this could be bmake related. What version of FreeBSD are you >>> using? >> >> This is recent-ish head (r244281). >> > > Actually, this isn't bmake related at all, I'll try to come up with a > solution. Thanks for the report. If you have time, a PR would be handy, > just in case I forget. Replying to myself, but... The more I look at it, the more I think this may be a bug in Ruby or configure. the file is generated by config.status like so: ./config.status --file=ruby-1.9.pc:./template/ruby.pc.in Try the attached patch, also available here: http://meatwad.mouf.net/~swills/ruby_pc.diff.txt It builds, but otherwise it's untested. Should be harmless. Let me know if this fixes it for you and I'll get added on the next update to the port. Steve --------------050806010400040604050004 Content-Type: text/plain; charset=us-ascii; name="ruby_pc.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ruby_pc.diff.txt" Index: Makefile =================================================================== --- Makefile (revision 311047) +++ Makefile (working copy) @@ -142,6 +142,7 @@ # Hack to allow modules to be installed into separate PREFIX and/or under user # privilegies # + @${REINPLACE_CMD} -e 's! -Wl,-soname,\$$(.TARGET)!!' ${WRKSRC}/ruby-1.9.pc @${RB_SET_CONF_VAR} "prefix" "ENV['PREFIX'] || \3" @${RB_SET_CONF_VAR} "INSTALL" "ENV['RB_USER_INSTALL'] ? '/usr/bin/install -c' : '/usr/bin/install -c ${_BINOWNGRP}'" @${RB_SET_CONF_VAR} "INSTALL_PROGRAM" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} ${STRIP} -m ${BINMODE}' : '${INSTALL_PROGRAM}'" --------------050806010400040604050004--