From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] Add Jellyfish. Date: Wed, 30 Dec 2015 16:58:59 +0100 Message-ID: References: <9507d13e837c22beb6e5a79cce045222@openmailbox.org> <567495E3.5010803@uq.edu.au> <87oadkrbb8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEJ9b-0003Ax-R0 for guix-devel@gnu.org; Wed, 30 Dec 2015 10:59:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEJ9Y-0004Nw-GN for guix-devel@gnu.org; Wed, 30 Dec 2015 10:59:11 -0500 In-Reply-To: <87oadkrbb8.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel Ludovic Court=C3=A8s writes: > Ben Woodcroft skribis: > >> But would it be possible to include the scripting language bindings, >> something along these lines? >> >> + (arguments >> + `(#:configure-flags '("--enable-ruby-binding" >> + "--enable-python-binding" >> + "--enable-perl-binding") > > There=E2=80=99s the usual space/popularity tradeoff to take into accoun= t: adding > them all makes the package=E2=80=99s closure much larger, so it=E2=80=99= s important to > add only the useful bindings by default. > > Ideally, the .so for these bindings could be moved to separate outputs > (like we did for the =E2=80=9Ctk=E2=80=9D output of Python), but it=E2=80= =99s not always easy to > do. In this case it seems to be very easy to separate the bindings into different outputs as the flags take an optional path. However, the test for the Perl bindings does not pass: /gnu/store/czs63sm4l0s4a56ab38dqvkx19yzylbq-perl-5.16.1/bin/perl: symbo= l lookup error: /tmp/nix-build-jellyfish-2.2.4.drv-0/jellyfish-2.2.4/.lib= s/libjellyfish-2.0.so.2: undefined symbol: pthread_create FAIL tests/swig_perl.sh (exit status: 127) Maybe the library needs another linker flag? I=E2=80=99ll play with this= later and see if I can make it work. If not I=E2=80=99ll leave the Perl bindin= gs (and the =E2=80=9Cperl=E2=80=9D output) away for now. It=E2=80=99s a bit unfortunate that this library would gain so many trans= itive inputs just for these bindings (all of these three languages require a lot of inputs). It would be nice if we could somehow mark certain inputs to be used only for certain outputs, but that=E2=80=99s probably a= silly wish. ~~ Ricardo