From owner-freebsd-ports@freebsd.org Wed Jul 29 09:28:06 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 452F99AE91C for ; Wed, 29 Jul 2015 09:28:06 +0000 (UTC) (envelope-from r@robakdesign.com) Received: from mail-vn0-f50.google.com (mail-vn0-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 005E71D31 for ; Wed, 29 Jul 2015 09:28:05 +0000 (UTC) (envelope-from r@robakdesign.com) Received: by vnaa140 with SMTP id a140so1098528vna.2 for ; Wed, 29 Jul 2015 02:28:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=kM1gyGF3uTWtrTclhGLSZjK0V82/WzeuFo40UYEg1b4=; b=Grl+KRpEHDwTjpp5bvsputML+bVutmbqh5lWKLDGxIuEbgcfDX+lX6Pq7mZOIQ9I2P SFLP09N9bIEVbVHjRsMIUbPDuu5vlSLZtbvu8M3EnZ+4kt2PvabHG5cSYGgJDVnyoVWS yPUX+NuiFQd9lO30fHfZ1bqkeZJJ1Jc5ernJAZlCFNufM8ZLm5SQodi10QMhQj8xJba6 dDWjAtV2TeLc4LwH0zrQeLU/8qMBET2U6v4QsE7vOYkWUcmdtaiUYaZdRcT015fJCbKp ieKmniergnVVr1673oy4h30q5BQcB+794bLqvn5GfArXxjQCAvgsclZBWXLoeNavhTKo 5Q+w== X-Gm-Message-State: ALoCoQnuyqOrGUBhhBnruPBi0s3aaAr9N1PlOAl9UmnJygXFe0EIxIQYTyLmAvOCeSfxYR9M3gCS X-Received: by 10.52.52.133 with SMTP id t5mr50759727vdo.56.1438161696166; Wed, 29 Jul 2015 02:21:36 -0700 (PDT) Received: from mail-vn0-f42.google.com (mail-vn0-f42.google.com. [209.85.216.42]) by smtp.gmail.com with ESMTPSA id ew5sm6210849vdc.10.2015.07.29.02.21.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 02:21:36 -0700 (PDT) Received: by vnaa140 with SMTP id a140so1062182vna.2 for ; Wed, 29 Jul 2015 02:21:35 -0700 (PDT) X-Received: by 10.52.89.240 with SMTP id br16mr43467248vdb.58.1438161695663; Wed, 29 Jul 2015 02:21:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.237.134 with HTTP; Wed, 29 Jul 2015 02:21:16 -0700 (PDT) In-Reply-To: <20150729060640.GL2072@kib.kiev.ua> References: <2883201.vcG9JJBxrl@dragon.local> <2674365.uk0duFZDgI@dragon.local> <20150729060640.GL2072@kib.kiev.ua> From: =?UTF-8?Q?Bart=C5=82omiej_Rutkowski?= Date: Wed, 29 Jul 2015 10:21:16 +0100 Message-ID: Subject: Re: The mystery of the missing library. To: Konstantin Belousov Cc: David Naylor , FreeBSD Mailing List , freebsd-python@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 09:28:06 -0000 On Wed, Jul 29, 2015 at 7:06 AM, Konstantin Belousov wrote: > On Wed, Jul 29, 2015 at 07:46:14AM +0200, David Naylor wrote: > > On Tuesday, 28 July 2015 22:05:54 Bart??omiej Rutkowski wrote: > > > I've checked how linux does it and it seems they're (at least Debian) > > doing > > > static linking - that would fix the issue, whatever it is. Can you > adjust > > > the port to do the static instead of dynamic linking binary? > > > > ``` > > # cd /usr/local/bin > > > > # rm pypy > > > > # ln ../pypy-2.6/bin/pypy > > > > # ls -l pypy > > -rwxr-xr-x 2 root wheel 5152 Jul 28 22:10 pypy > > > > # pypy > > Shared object "libpypy-c.so" not found, required by "pypy" > > > > # `which pypy` > > Shared object "libpypy-c.so" not found, required by "pypy" > > ``` > > > > I had a look at Debian and they seem to have quite a large patchset > > applied to pypy. Perhaps they patch it to make it work? > > > > Based on the documentation from pypy it appears they think a symlink > > should work. > > There were relatively recent (as in, Feb 2015) changes to always resolve > symlinks for $ORIGIN expansion, using realpath. The changes are in HEAD > and in stable/10, also in all 10.2 BETAs and RC. > > What version of the userspace do you use ? If not the versions listed > above, try them. Hopefully, $ORIGIN starts behaving for you. > I personally was testing this on 10.1. While trying 10.2-RC versions might make it work, we still need to make the port usable for people on 9.x and 10.1... I've talked to pypy people, and they told me that dynamic linking is in fact preferred way to do it, so following the Debian's route isnt the way to go. Kind regards, Bartek Rutkowski