GNU bug report logs - #27003
[PATCH 0/3] Generalized wrap phase for perl, python.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>; Keywords: patch; dated Sat, 20 May 2017 09:39:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 30 May 2017 13:46:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 30 09:46:07 2017
Received: from localhost ([127.0.0.1]:44290 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dFhTL-0002o0-JT
	for submit <at> debbugs.gnu.org; Tue, 30 May 2017 09:46:07 -0400
Received: from o161.p9.mailjet.com ([87.253.234.161]:41589)
 by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from
 <414919d5.AEMAK2iO_jcAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZLXea@HIDDEN>)
 id 1dFhTK-0002nr-1A
 for 27003 <at> debbugs.gnu.org; Tue, 30 May 2017 09:46:06 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; q=dns/txt;
 d=bnc3.mailjet.com; i=arunisaac=3Dsystemreboot.net@HIDDEN; s=mailjet;
 h=message-id:mime-version:from:to:subject:date:list-unsubscribe:cc:in-reply-to:
 references:x-csa-complaints:x-mj-mid:content-type:content-transfer-encoding;
 bh=gFa98+2CghMW580Vof0fVTbwfIw=;
 b=c2VXI5BnqRBZLfkAUmQfKAfXE7ITePQcHgF7w1TuxKzkEDy9CnBS5sCXM
 j8x5nGKw2dwKWFpAN6zNOOCPnv7z5YagbvD7GsMjAPdyMtcl1ghHHDTptpUO
 iYSbFqs0WLBexOE4/mWqfBJcV4JNPenuZm5d77l1AbxYZZWsyU27Wk=
Message-Id: <414919d5.AEMAK2iO_jcAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZLXea@HIDDEN>
MIME-Version: 1.0
From: Arun Isaac <arunisaac@HIDDEN>
To: alex@HIDDEN
Subject: Re: bug#27003: [PATCH 0/3] Generalized wrap phase for perl, python.
Date: Tue, 30 May 2017 19:15:49 +0530
In-reply-to: <87h90322vn.fsf@HIDDEN>
References: <20170520093742.2115-1-alex@HIDDEN> <87pof35lc6.fsf@HIDDEN>
 <873a2319.AEEALFrChFQAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKyA9@HIDDEN>
 <87h90322vn.fsf@HIDDEN>
X-CSA-Complaints: whitelist-complaints@HIDDEN
X-MJ-Mid: AEMAK2iO_jcAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZLXeawUYjuwL3R96TmEfxEvBCcAAFgUc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 27003
Cc: Marius Bakke <mbakke@HIDDEN>, 27003 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


> I cannot currently make guarantees on when I'll be able to wrap my head
> around the entire problem, so if you come to conclusions for next steps
> on the basis of your testing, we should go with those.
>
> Else I will revisit this issue when I have time (which might be a
> while).

I don't have any ideas on how to fix this. And, I don't understand Guix
internals very well. So, I'll wait for you or someone else to come up
with a solution. But, I can help with testing patches.
=




Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 29 May 2017 13:45:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 29 09:45:33 2017
Received: from localhost ([127.0.0.1]:42660 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dFKzF-0000IT-Pv
	for submit <at> debbugs.gnu.org; Mon, 29 May 2017 09:45:33 -0400
Received: from mail.pompo.co ([87.243.223.35]:55839 helo=ronja.pompo.co)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex@HIDDEN>) id 1dFKzD-0000IF-OO
 for 27003 <at> debbugs.gnu.org; Mon, 29 May 2017 09:45:32 -0400
Received: from new-host (unknown [109.131.46.35])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by ronja.pompo.co (Postfix) with ESMTPSA id 3647E402E4;
 Mon, 29 May 2017 13:45:24 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pompo.co; s=mail;
 t=1496065524; bh=ZezlBVhAbAH8s/ZDFXnWSTKY+RPH4Dv0ElWlLYi+HAo=;
 h=References:From:To:Cc:Subject:Reply-To:In-reply-to:Date:From;
 b=bCdp1249VjNvnGO20TheHLM5XQdzR6issoLHM+vAm4+3jXE9OvTgVE4cE443Gp4t5
 CB1CoejPj/yBjD8hKsnRZ2H7YjqbWEU8J+RvIctS89i31jGEd0ZGJiJGe97Iimb2E5
 TslApP/boGESxTIPkEwYcNevtkmsQyhGGJ+fyEaY=
References: <20170520093742.2115-1-alex@HIDDEN> <87pof35lc6.fsf@HIDDEN>
 <873a2319.AEEALFrChFQAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKyA9@HIDDEN>
User-agent: mu4e 0.9.18; emacs 25.2.1
From: Alex Sassmannshausen <alex@HIDDEN>
To: Arun Isaac <arunisaac@HIDDEN>
Subject: Re: bug#27003: [PATCH 0/3] Generalized wrap phase for perl, python.
In-reply-to: <873a2319.AEEALFrChFQAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKyA9@HIDDEN>
Date: Mon, 29 May 2017 15:45:16 +0200
Message-ID: <87h90322vn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 27003
Cc: Marius Bakke <mbakke@HIDDEN>, 27003 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: alex@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Hi Arun,

Thank you for testing my patches.

Arun Isaac writes:

> Building on my system is taking a long time. I'll need some more time to
> properly test these patches. But, if I understand correctly, these
> patches still wrap binaries with paths of native-inputs. That problem
> remains to be solved.

Yes, I certainly did nothing to resolve that particular issue, so indeed
it remains to be solved.

I cannot currently make guarantees on when I'll be able to wrap my head
around the entire problem, so if you come to conclusions for next steps
on the basis of your testing, we should go with those.

Else I will revisit this issue when I have time (which might be a
while).

Best wishes,

Alex






Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 28 May 2017 19:08:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 28 15:08:48 2017
Received: from localhost ([127.0.0.1]:42020 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dF3YW-0005nC-Nf
	for submit <at> debbugs.gnu.org; Sun, 28 May 2017 15:08:48 -0400
Received: from o175.p9.mailjet.com ([87.253.234.175]:55071)
 by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from
 <873a2319.AEEALFrChFQAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKyA9@HIDDEN>)
 id 1dF3YU-0005n3-MT
 for 27003 <at> debbugs.gnu.org; Sun, 28 May 2017 15:08:46 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; q=dns/txt;
 d=bnc3.mailjet.com; i=arunisaac=3Dsystemreboot.net@HIDDEN; s=mailjet;
 h=message-id:mime-version:from:to:subject:date:list-unsubscribe:cc:in-reply-to:
 references:x-csa-complaints:x-mj-mid:content-type:content-transfer-encoding;
 bh=UBir3ItEiwQehG/Kg7Qsn6ojZdg=;
 b=nMZgLIlJEI2w7v7VHua1onpdSxyes2TxLkt24oH7xllngYCYKwKLFr1FK
 +Vao0lLMPcxpN9xTepkmw+smHUh+6qJSA5cBaraLmV8qWJq2ecKDc9AQ7m0U
 TzwvWiaCRwGDY4pujNUKRulsNA46ZbeH1y/Xx7AiWWIga9y7QmU9m4=
Message-Id: <873a2319.AEEALFrChFQAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKyA9@HIDDEN>
MIME-Version: 1.0
From: Arun Isaac <arunisaac@HIDDEN>
To: Marius Bakke <mbakke@HIDDEN>
Subject: Re: bug#27003: [PATCH 0/3] Generalized wrap phase for perl, python.
Date: Mon, 29 May 2017 00:38:24 +0530
In-reply-to: <87pof35lc6.fsf@HIDDEN>
References: <20170520093742.2115-1-alex@HIDDEN> <87pof35lc6.fsf@HIDDEN>
X-CSA-Complaints: whitelist-complaints@HIDDEN
X-MJ-Mid: AEEALFrChFQAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKyA9vv48TD-QT4eA6vF7pwlOrQAFgUc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 27003
Cc: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>,
 27003 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


Building on my system is taking a long time. I'll need some more time to
properly test these patches. But, if I understand correctly, these
patches still wrap binaries with paths of native-inputs. That problem
remains to be solved.
=




Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 27 May 2017 19:04:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 27 15:04:41 2017
Received: from localhost ([127.0.0.1]:41061 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dEh0z-00086W-KG
	for submit <at> debbugs.gnu.org; Sat, 27 May 2017 15:04:41 -0400
Received: from o144.p8.mailjet.com ([87.253.233.144]:38202)
 by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from
 <2703649c.AEUAKjf8hTsAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKc3G@HIDDEN>)
 id 1dEh0x-00086O-Er
 for 27003 <at> debbugs.gnu.org; Sat, 27 May 2017 15:04:39 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; q=dns/txt;
 d=bnc3.mailjet.com; i=arunisaac=3Dsystemreboot.net@HIDDEN; s=mailjet;
 h=message-id:mime-version:from:to:subject:date:list-unsubscribe:cc:in-reply-to:
 references:x-csa-complaints:x-mj-mid:content-type:content-transfer-encoding;
 bh=xSf/btLA0y47I3g8s7tEdCW+pmo=;
 b=hOqQYhokPjC3FBfDCpLz6kpMgsc0qdNtlyoTcSvgouBVl7MCs9VkBHnHz
 JfIZozp2pNz9j6ilO8XOmLFOevy5Yi53hRLssyhkAP1YfCfhQAXLsnS5kkRE
 LUPiemu9PARZWIBhKpC1QythPLhBOMUNNrP4LrsmtzmAAAcL3t4RCg=
Message-Id: <2703649c.AEUAKjf8hTsAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKc3G@HIDDEN>
MIME-Version: 1.0
From: Arun Isaac <arunisaac@HIDDEN>
To: Marius Bakke <mbakke@HIDDEN>
Subject: Re: bug#27003: [PATCH 0/3] Generalized wrap phase for perl, python.
Date: Sun, 28 May 2017 00:34:32 +0530
In-reply-to: <87pof35lc6.fsf@HIDDEN>
References: <20170520093742.2115-1-alex@HIDDEN> <87pof35lc6.fsf@HIDDEN>
X-CSA-Complaints: whitelist-complaints@HIDDEN
X-MJ-Mid: AEUAKjf8hTsAAAAAAAAAAAPFd4YAAAACwQwAAAAAAAW9WABZKc3GXkZgvfd1T5C5M84TOAPC_QAFgUc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 27003
Cc: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>,
 27003 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


>> It implements a general `wrap` phase that can be used in individual buil=
d
>> systems to make sure binaries in those languages have access to all thei=
r
>> propagated inputs at runtime, by setting an appropriate environment vari=
able.
>
> CCing Arun who was working on something similar.

I haven't actually worked on this problem for a long while. I'll test
Alex's patches, and get back to you soon.

> AFAICT this is also subject to <https://bugs.gnu.org/25235>. Can you
> have a look at it?

Yes, that's the python wrap phase bug report. And this is the one for
perl: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D26275
=




Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 20 May 2017 20:23:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 20 16:23:25 2017
Received: from localhost ([127.0.0.1]:57312 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dCAuL-0004h5-7d
	for submit <at> debbugs.gnu.org; Sat, 20 May 2017 16:23:25 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53229)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1dCAuJ-0004gx-ND
 for 27003 <at> debbugs.gnu.org; Sat, 20 May 2017 16:23:24 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 38137207A2;
 Sat, 20 May 2017 16:23:23 -0400 (EDT)
Received: from frontend1 ([10.202.2.160])
 by compute5.internal (MEProxy); Sat, 20 May 2017 16:23:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 cc:content-type:date:from:in-reply-to:message-id:mime-version
 :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc
 :x-sasl-enc; s=fm1; bh=VZ6tDmgakUUitZHeLSM4W5QtfB+auCHGdz7PrsqXz
 cY=; b=egNTd2wDYYsO9k6/2SDrbSxHHJktmcTmgGOvcpr0gr4hAlRxQQJ3dHzMa
 KzNMsCFm4mXQbr7xkB+JRrn2wil6V/OZXJiejCoYfAp7o05YWI2Ho7+LDd8t7Pk/
 41ibQa7x9qZzFEtjn1hGXxmPPTfmjteZXvqYB9XxkYXqOWj8+Wo+R26dI67Yy6Jk
 Vg6wIcZk6a2WfTiN6FsSsqtOEoZn2JsR9r1p/3leCoF1+BkR8+SK+qas/5x0GpGY
 ziml6Z5/dw7tZ3SS0/WaDm8IYP4kvW1EUOqG0BoH98jLvgd4PlkIdYiT1X8wZfFn
 +C2BNOduA+FBOFMOKP6yjfKTsuxug==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=VZ6tDmgakUUitZHeLS
 M4W5QtfB+auCHGdz7PrsqXzcY=; b=ZqHzn52wy1ijwCnRolDXON5s1LXnTjontX
 9/QAPacwO/338Dj6Bx9K7gG4oIqw8kGO4eVCox08+1Y3ORb567h82SR+udvDBmk6
 PIdi8nTGns7h/CWnw/XaL1XA0c/uIkpIa1HTRRPrzXMLBDQMi1UZQAZ2hKjm35wK
 UyeNesegCgPMxVCzXlJN+mUE/hEu+VZPPb+ubDxPcaMetyB1h51K/Kwh4tDmoHOO
 meoag9ZsNBbozZeDJq70WeUmWIrILLo3PcoLu8CQjaYpBIQ9zFwHgU9LlZGSKjgt
 t/ZlP5dLnFSgo4xI1s9bay2+v2hcezgq0pa+1Ky2Du59b5gC/wPg==
X-ME-Sender: <xms:u6UgWQXdOpnMzqesXeA732KpcC3W93NvD3XwE4RB5tb0AtNYeFEamw>
X-Sasl-enc: bnMO7rZdv9FvX08GNWqbKGdl3V4IUe7h3kpygoFdvImG 1495311802
Received: from localhost (unknown [188.113.81.93])
 by mail.messagingengine.com (Postfix) with ESMTPA id C13E57E545;
 Sat, 20 May 2017 16:23:22 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>,
 27003 <at> debbugs.gnu.org
Subject: Re: bug#27003: [PATCH 0/3] Generalized wrap phase for perl, python.
In-Reply-To: <20170520093742.2115-1-alex@HIDDEN>
References: <20170520093742.2115-1-alex@HIDDEN>
User-Agent: Notmuch/0.24.1 (https://notmuchmail.org) Emacs/25.2.1
 (x86_64-unknown-linux-gnu)
Date: Sat, 20 May 2017 22:23:21 +0200
Message-ID: <87pof35lc6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 27003
Cc: Arun Isaac <arunisaac@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--=-=-=
Content-Type: text/plain

Alex Sassmannshausen <alex.sassmannshausen@HIDDEN> writes:

> Hello,
>
> This patch series goes back some time, but the need for it has not
> disappeared.
>
> It implements a general `wrap` phase that can be used in individual build
> systems to make sure binaries in those languages have access to all their
> propagated inputs at runtime, by setting an appropriate environment variable.

Cool, thanks a lot for working on this. CCing Arun who was working on
something similar.

AFAICT this is also subject to <https://bugs.gnu.org/25235>. Can you
have a look at it?

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlkgpbkACgkQoqBt8qM6
VPob1ggAqdMQUyi8DyP1wrgs5r5PpFBgO7Lp5hIsSxuzhrO/h8D9Aw5r5twfxmSn
KUJ9hbEMSP0MQROy5yYj+v2ZVJ5W1n1Q9emAvmoNs5HJvC9cz03ygoXbz/AWlGJr
t6iJfW2p8hUuQ6KF7WnYSpPN5aILwLPLAygdy2FLLT6sRByuUgGQpATS6wKPTTqg
porcDqHReYbRmVVfKdnS3/BSVFQ/GM8tnYTw+g6N0J/RWtNcPn/36yTQZt4l7e66
045dqu7BMHsQsgDAGU1jkI2RhIiKjH5m2gb3O8rldZdyAu3AyknSfuGJKt/4/47E
9CE2qzTZExUv3DsW3oHENukOVIvRMw==
=9coi
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 20 May 2017 09:40:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 20 05:40:54 2017
Received: from localhost ([127.0.0.1]:56007 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dC0sY-00036b-72
	for submit <at> debbugs.gnu.org; Sat, 20 May 2017 05:40:54 -0400
Received: from mail-wr0-f193.google.com ([209.85.128.193]:34489)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.sassmannshausen@HIDDEN>) id 1dC0sV-00035z-2W
 for 27003 <at> debbugs.gnu.org; Sat, 20 May 2017 05:40:51 -0400
Received: by mail-wr0-f193.google.com with SMTP id 6so4769628wrb.1
 for <27003 <at> debbugs.gnu.org>; Sat, 20 May 2017 02:40:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=0I5MBxZx3aY8dtp42+dvPMlEf2fOWYX59PBdPlLYoTI=;
 b=hFa9J45Alz9bXI+pxX+hAegsrqzeqsCFcCMm0fIapnkI0lJa3y6+shhLC45Cm2Hz8u
 WDhK8Kxba0uOiIb1oGAULnCcYzdptIqxSIiPCGN6lJcUCXXkCyuTKPZmSo+BkyEYbnFB
 HtkDFKj6GzQ7yZnKnig0PBFNRhEEkMQRceCcMTYjyh4Y3JU+fhk3X4QOSSbcKy3rRZ4K
 kjeVZfZx6TphOrdbhIfIwp6UVPsU+d9pxUbYLjc3MAtQN7Fzd3qYGPl1e/pDM+Qfh4GG
 cssy9aS68uH+7E4cSB8eBCR/74ogv3mDKNDbK1FNoyczJ6JFljN3ZT2/XQgK/xqb0+dj
 mLsg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=0I5MBxZx3aY8dtp42+dvPMlEf2fOWYX59PBdPlLYoTI=;
 b=Zl3M26GXWXH0AsbgSb/I144QABJVzph+q5ewaY3xCLvUaVxChiFIMpegNbadf6HjP3
 d+sgJh867Hupel1BnrzSaYoEQssBY0jq1Ul1WCN870DoJ8tFqCzjC+Yqgg19xmHuZ7LN
 ttEMWnL3U8BrJPmey+NFLroIfJ7fOnRTOC/bPk3xzc7rZwz3I81zLUUu2NTM+kA5H1si
 9UUsryO6zv/ws4GQaCSwiJgczAr0zpq2iIgg4+y8Zd/chEJcdEsSYm2ZlCgBjcHgxAUh
 uLR6BhhdnHKV/nkxRHPZrtnxROou9u+iDbCZ0cZdg2iai77A1PHyTeNrl26H+C4icrtb
 3ijQ==
X-Gm-Message-State: AODbwcB2wZkpnDOBQ8Qt9YdgKYzY6sGJRPD6Bpfw21AGk5OGgB+Vo5ZY
 tO4kdJkq5qz8UA==
X-Received: by 10.223.135.187 with SMTP id b56mr5627100wrb.170.1495273245496; 
 Sat, 20 May 2017 02:40:45 -0700 (PDT)
Received: from localhost.localdomain ([109.131.46.35])
 by smtp.gmail.com with ESMTPSA id u88sm4267950wrc.20.2017.05.20.02.40.44
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 20 May 2017 02:40:44 -0700 (PDT)
From: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>
X-Google-Original-From: Alex Sassmannshausen <alex@HIDDEN>
To: 27003 <at> debbugs.gnu.org
Subject: [PATCH 3/3] build/python-build-system: Refactor 'wrap'.
Date: Sat, 20 May 2017 11:40:30 +0200
Message-Id: <20170520094030.2471-3-alex@HIDDEN>
X-Mailer: git-send-email 2.12.2
In-Reply-To: <20170520094030.2471-1-alex@HIDDEN>
References: <20170520094030.2471-1-alex@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 27003
Cc: Alex Sassmannshausen <alex@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* guix/build/python-build-system.scm (wrap): Use
  'wrap-language-program'.
---
 guix/build/python-build-system.scm | 36 ++++++++----------------------------
 1 file changed, 8 insertions(+), 28 deletions(-)

diff --git a/guix/build/python-build-system.scm b/guix/build/python-build-system.scm
index dd07986b9..30d01f8cb 100644
--- a/guix/build/python-build-system.scm
+++ b/guix/build/python-build-system.scm
@@ -184,34 +184,14 @@ when running checks after installing the package."
                          configure-flags)))
     (call-setuppy "install" params use-setuptools?)))
 
-(define* (wrap #:key inputs outputs #:allow-other-keys)
-  (define (list-of-files dir)
-    (map (cut string-append dir "/" <>)
-         (or (scandir dir (lambda (f)
-                            (let ((s (stat (string-append dir "/" f))))
-                              (eq? 'regular (stat:type s)))))
-             '())))
-
-  (define bindirs
-    (append-map (match-lambda
-                 ((_ . dir)
-                  (list (string-append dir "/bin")
-                        (string-append dir "/sbin"))))
-                outputs))
-
-  (let* ((out  (assoc-ref outputs "out"))
-         (python (assoc-ref inputs "python"))
-         (var `("PYTHONPATH" prefix
-                ,(cons (string-append out "/lib/python"
-                                      (get-python-version python)
-                                      "/site-packages")
-                       (search-path-as-string->list
-                        (or (getenv "PYTHONPATH") ""))))))
-    (for-each (lambda (dir)
-                (let ((files (list-of-files dir)))
-                  (for-each (cut wrap-program <> var)
-                            files)))
-              bindirs)))
+;; Use 'program-wrapper' to return an executable wrapper for python.
+(define wrap
+  (program-wrapper
+   (lambda (inputs outputs)
+     (string-append (assoc-ref outputs "out") "/lib/python"
+                    (get-python-version (assoc-ref inputs "python"))
+                    "/site-packages"))
+   "PYTHONPATH"))
 
 (define* (rename-pth-file #:key name inputs outputs #:allow-other-keys)
   "Rename easy-install.pth to NAME.pth to avoid conflicts between packages
-- 
2.12.2





Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 20 May 2017 09:40:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 20 05:40:52 2017
Received: from localhost ([127.0.0.1]:56005 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dC0sV-00036R-Vm
	for submit <at> debbugs.gnu.org; Sat, 20 May 2017 05:40:52 -0400
Received: from mail-wr0-f194.google.com ([209.85.128.194]:34484)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.sassmannshausen@HIDDEN>) id 1dC0sT-00035x-Si
 for 27003 <at> debbugs.gnu.org; Sat, 20 May 2017 05:40:50 -0400
Received: by mail-wr0-f194.google.com with SMTP id 6so4769595wrb.1
 for <27003 <at> debbugs.gnu.org>; Sat, 20 May 2017 02:40:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=9jM3IlmDNF0n7nJksPC+FilOAQy+cLIeYl3ofdeCVP8=;
 b=SmY4DylcstehEDjLRTtZW5xxkpxNnIlGmOXReUnfJVuis2sr2Zup8WWvGCC3YX90hH
 Kv2FbxI4UdrP7z5TQZZn5aMqGGBc3ZjmXRCHTnaXgFrMLqcX+uvXQiyB4aOVWfbwfsju
 beSTz/oIbiainLFyza4m2vjYm9LweFn9LLf48B0mX3oeMJ0dY3ZV/2RxtldALaRF+mx4
 Fl9him0s8ftW6lrAcASrI7+954KG31NnKf+enBsM9G++lTy0odOpslMd5FDuYF9U42X+
 1JJnhVNQLSrTwyTS39WYTevGSHTOROMOoN4NCM/AhXFG12jVQbSsfRJE6PXZ9Bph5DOx
 d+/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=9jM3IlmDNF0n7nJksPC+FilOAQy+cLIeYl3ofdeCVP8=;
 b=nRSzd9LdIDapYWuX/Ju38tL9BrmRfCHOo0YXZ/Q5bM97JaP87JVvQq2wRUyHr/k/pN
 nUMMHV6AQGMwGBTU4r63eXahpsaGGutSP2VghHK5tNHxRmQa6jkMjCs+hQZ9nu1egIK1
 OT5gpCxXMVpv1R7FCaYcgxi/o0TZG0qYsmpgTXBkI3AeKD3AMIU81XhzOpcZTlRzqVNX
 N4No6optVxeHboN4ZKhHTedLsPSfS1No2iJbB0T2qlw2Nss0Qe78ChVEr/F32ptZ98W0
 3l/BblfRBb5fUlBzCIQ4yTxbRJ6KE44vV0OvlcdBLhtu5kHX/noVNDP888lmIjuVuHTd
 lVLA==
X-Gm-Message-State: AODbwcADNZ5MlM3QEpa2Y7u/4KArzGG1eJOKaIkCfy7SVq6LB1LvSIWv
 LcjKrUI7NHrXNYG4
X-Received: by 10.223.154.226 with SMTP id a89mr5757331wrc.192.1495273244134; 
 Sat, 20 May 2017 02:40:44 -0700 (PDT)
Received: from localhost.localdomain ([109.131.46.35])
 by smtp.gmail.com with ESMTPSA id u88sm4267950wrc.20.2017.05.20.02.40.42
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 20 May 2017 02:40:42 -0700 (PDT)
From: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>
X-Google-Original-From: Alex Sassmannshausen <alex@HIDDEN>
To: 27003 <at> debbugs.gnu.org
Subject: [PATCH 2/3] build/perl-build-system: Add 'wrap' phase.
Date: Sat, 20 May 2017 11:40:29 +0200
Message-Id: <20170520094030.2471-2-alex@HIDDEN>
X-Mailer: git-send-email 2.12.2
In-Reply-To: <20170520094030.2471-1-alex@HIDDEN>
References: <20170520094030.2471-1-alex@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 27003
Cc: Alex Sassmannshausen <alex@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* guix/build/perl-build-system.scm (wrap): New procedure.
  (%standard-phases): Add 'wrap' phase.
---
 guix/build/perl-build-system.scm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/guix/build/perl-build-system.scm b/guix/build/perl-build-system.scm
index b2024e440..5bf5b2523 100644
--- a/guix/build/perl-build-system.scm
+++ b/guix/build/perl-build-system.scm
@@ -19,7 +19,7 @@
 (define-module (guix build perl-build-system)
   #:use-module ((guix build gnu-build-system) #:prefix gnu:)
   #:use-module (guix build utils)
-  #:use-module (ice-9 match)
+  #:use-module (srfi srfi-1)
   #:export (%standard-phases
             perl-build))
 
@@ -51,6 +51,15 @@
     (format #t "running `perl' with arguments ~s~%" args)
     (zero? (apply system* "perl" args))))
 
+;; Use 'program-wrapper' to return an executable wrapper for perl.
+(define wrap
+  (program-wrapper
+   (lambda (inputs outputs)
+     (string-append (assoc-ref outputs "out") "/lib/perl5/site_perl/"
+                    ;; As in python, assume version at end of `perl' string.
+                    (last (string-split (assoc-ref inputs "perl") #\-))))
+   "PERL5LIB"))
+
 (define-syntax-rule (define-w/gnu-fallback* (name args ...) body ...)
   (define* (name args ... #:rest rest)
     (if (access? "Build" X_OK)
@@ -74,9 +83,11 @@
 
 (define %standard-phases
   ;; Everything is as with the GNU Build System except for the `configure',
-  ;; `build', `check', and `install' phases.
+  ;; `build', `check', and `install' phases.  We also add a `wrap' phase to
+  ;; wrap perl binaries with a complete PERL5LIB path.
   (modify-phases gnu:%standard-phases
     (replace 'install install)
+    (add-after 'install 'wrap wrap)
     (replace 'check check)
     (replace 'build build)
     (replace 'configure configure)))
-- 
2.12.2





Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at 27003 <at> debbugs.gnu.org:


Received: (at 27003) by debbugs.gnu.org; 20 May 2017 09:40:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 20 05:40:50 2017
Received: from localhost ([127.0.0.1]:56001 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dC0sT-000368-Ol
	for submit <at> debbugs.gnu.org; Sat, 20 May 2017 05:40:49 -0400
Received: from mail-wm0-f66.google.com ([74.125.82.66]:34153)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.sassmannshausen@HIDDEN>) id 1dC0sS-00035u-B0
 for 27003 <at> debbugs.gnu.org; Sat, 20 May 2017 05:40:48 -0400
Received: by mail-wm0-f66.google.com with SMTP id d127so22289165wmf.1
 for <27003 <at> debbugs.gnu.org>; Sat, 20 May 2017 02:40:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id;
 bh=/egORowByzS98oiKj10v9yoA8povdP6IQr+WO2yUYR4=;
 b=YogET/ZosphuSkgjmokln1a1kv7O5VNnKgm3JZwGiRdll/LgWskILGoKebp3DTyZBf
 3vyPnebUOkjfMGAnvck/VmTr+bfG/Tx1B1lCeDpZGF3nQHpgHAhYSUgxURD0Nr9bOUga
 LBe1JNOsQ9QwLtmIYr7s57HFhFufl8mxMhKjDY6BVcm7+qfReUiKx/CqXG4vjJCChmWd
 LFTjqq194jwc+hGzGK1zCDqNPoQ9EoCEgNzdbR29IAAsiZh7ai6YFf+PNs37N/37819/
 hEkz3ZqQZTufFvTj2Ez4VSZu7478I3rGDCVRMyU6g5AuIG7GFuOpeCRqQaJ5c5+PhGVe
 cWxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id;
 bh=/egORowByzS98oiKj10v9yoA8povdP6IQr+WO2yUYR4=;
 b=XR/Foq7ePACO1sFGb2V/UHnpRniAU/qklTsk7VucXo7D6GsmFy/SSlEwv9WxJlNSKL
 H+M60uLS54nYndyMKm/azvbKi+a00MH8a+iLPjMlFljlgZMyBskvQ8XLBl0+fc1MuadO
 SfAA4VDYkc2UChaKbxeVnghUQXKHVY5V3AeZ9mjMHty4aaxeg0KKaSAylmy5iVs4cOD/
 8hRujXQu6CoImf2yowQ7YwWlJ34y0AnLVTn52zwC1C5g7YHqOCpnaPWMRclvcQ79VlAV
 Ia0ORW8MjZpBUFzrgs/ttSF7xg2eGE3jCPO4CI8KK50hfYKGhzlnnwmiiV7pJD8Ke0Z8
 yK5g==
X-Gm-Message-State: AODbwcAdJi2qsc68hwd5eH6Jx/c6ot35n9OHOI6/wVjg8UZLXFc4THGX
 zNb9k605QhF6Fq3Y
X-Received: by 10.28.65.213 with SMTP id o204mr21281520wma.43.1495273242535;
 Sat, 20 May 2017 02:40:42 -0700 (PDT)
Received: from localhost.localdomain ([109.131.46.35])
 by smtp.gmail.com with ESMTPSA id u88sm4267950wrc.20.2017.05.20.02.40.41
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 20 May 2017 02:40:41 -0700 (PDT)
From: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>
X-Google-Original-From: Alex Sassmannshausen <alex@HIDDEN>
To: 27003 <at> debbugs.gnu.org
Subject: [PATCH 1/3] build/utils: Add 'program-wrapper'.
Date: Sat, 20 May 2017 11:40:28 +0200
Message-Id: <20170520094030.2471-1-alex@HIDDEN>
X-Mailer: git-send-email 2.12.2
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 27003
Cc: Alex Sassmannshausen <alex@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

* guix/build/utils.scm (program-wrapper): New procedure.
---
 guix/build/utils.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index e8efb0653..af5583651 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -78,6 +78,7 @@
             patch-/usr/bin/file
             fold-port-matches
             remove-store-references
+            program-wrapper
             wrap-program
 
             locale-category->string))
@@ -956,6 +957,41 @@ known as `nuke-refs' in Nixpkgs."
                              (put-u8 out (char->integer char))
                              result))))))
 
+(define (program-wrapper path-proc env-var)
+  "Return a procedure, which, invoked as part of a 'wrap' phase, is capable of
+wrapping executables inside an environment in which ENV-VAR is correctly set.
+
+The string ENV-VAR is the name of the environmental variable we are setting
+for the executable we are wrapping.  PATH-PROC is a procedure of 2 arguments,
+'inputs' and 'outputs', returning the value that we should set ENV-VAR to.
+
+This is a specialized version of 'wrap-program' below, intended specifically
+to grant all executables that are part of our output access to all libraries
+that were declared in our inputs.  This is of use for languages such as Perl,
+Python and Guile."
+  (define (list-of-files dir)
+    (map (cut string-append dir "/" <>)
+         (or (scandir dir (lambda (f)
+                            (let ((s (stat (string-append dir "/" f))))
+                              (eq? 'regular (stat:type s)))))
+             '())))
+  (lambda* (#:key inputs outputs #:allow-other-keys)
+    (define bindirs
+      (append-map (match-lambda
+                    ((_ . dir)
+                     (list (string-append dir "/bin")
+                           (string-append dir "/sbin"))))
+                  outputs))
+    (define vars
+      `(,env-var prefix ,(cons (path-proc inputs outputs)
+                               (search-path-as-string->list
+                                (or (getenv env-var) "")))))
+    (for-each (lambda (dir)
+                (let ((files (list-of-files dir)))
+                  (for-each (cut wrap-program <> vars)
+                            files)))
+              bindirs)))
+
 (define* (wrap-program prog #:rest vars)
   "Make a wrapper for PROG.  VARS should look like this:
 
-- 
2.12.2





Information forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 May 2017 09:38:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 20 05:38:21 2017
Received: from localhost ([127.0.0.1]:55996 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dC0q5-00032P-B2
	for submit <at> debbugs.gnu.org; Sat, 20 May 2017 05:38:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52384)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.sassmannshausen@HIDDEN>) id 1dC0q3-00032D-NE
 for submit <at> debbugs.gnu.org; Sat, 20 May 2017 05:38:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alex.sassmannshausen@HIDDEN>) id 1dC0px-0007ro-Oh
 for submit <at> debbugs.gnu.org; Sat, 20 May 2017 05:38:14 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37442)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <alex.sassmannshausen@HIDDEN>)
 id 1dC0px-0007rf-M5
 for submit <at> debbugs.gnu.org; Sat, 20 May 2017 05:38:13 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43344)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <alex.sassmannshausen@HIDDEN>) id 1dC0pw-0008Qy-Ns
 for bug-guix@HIDDEN; Sat, 20 May 2017 05:38:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alex.sassmannshausen@HIDDEN>) id 1dC0pr-0007pG-P7
 for bug-guix@HIDDEN; Sat, 20 May 2017 05:38:12 -0400
Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35052)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <alex.sassmannshausen@HIDDEN>)
 id 1dC0pr-0007p7-Ic
 for bug-guix@HIDDEN; Sat, 20 May 2017 05:38:07 -0400
Received: by mail-wm0-x244.google.com with SMTP id g15so2655885wmc.2
 for <bug-guix@HIDDEN>; Sat, 20 May 2017 02:38:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id;
 bh=aYHFR0mz0dhEKiHvPRCjD5k8L4w+QguXqV7DnIYqwbE=;
 b=k0wNOB5MpL2bdFlylM3Fq6QtCDKkoLU095kTqXGTkB+4TRHJaCvDGQuL575L9OAyol
 1qVrLBxKiqV37LNAdf6RjWex3/g/2i872LSpVhZsoGNUGAIUbTW06Z04xD8rBILdgOD9
 NeRsQVo8olpIUPoHBoXnWVAqccUuFIReaIzj2jJqkR/OujiqFdyFYf4UtpYSjsxLfmpE
 6r3CkCwWlSuzmRyfVPEPx6tM2b2Se42cSHGlGSKfs5lYkKMD+kl2qPKu8DkdkwmxXLnL
 msb9SGbZDnLdsSIm9djm8zi4ntBSjo2o4T1gfB+dMHam9Au0m445VVtAfsHwZIZVUrTX
 p4MA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id;
 bh=aYHFR0mz0dhEKiHvPRCjD5k8L4w+QguXqV7DnIYqwbE=;
 b=RGwV4uU4jPnimKRQGdXU40o+8VSaYKBwjBSVhclm7bHYoYs4i8sFKXTfMOU7jmpen6
 ogc31NRvocezSUiXkAxw/Lbdgjkp/GLl8Rx0I2aR5kKq+0YQ/wx0rmvSdYjgyjl3ZJ2u
 Uqm5+s9+OJLdWIoASW2UZlPVU3PCFPXtBC8+RlEosvmv6njXKO5E/woP5+Kv/cG11oji
 gZ0HzinBNI9pGFO+p2KBionTXrcg6wm11SBPtgvX6zsKRZMdTNdBJnXlLOa1706ZnXF6
 xtq9FFD9SjejiNFjU0C0sbFqAQFfAW9WcvcRu5yrkq3WZv6JXHbAtjIfntlsf921j7J5
 qzLw==
X-Gm-Message-State: AODbwcCTTnTsxc5s2LqcIf0Z/DBjXjtdg99/ZOhlKRBqpB9bnlBGptFi
 ZkIYeBQGQ63w7Q==
X-Received: by 10.28.220.86 with SMTP id t83mr21983133wmg.66.1495273086556;
 Sat, 20 May 2017 02:38:06 -0700 (PDT)
Received: from localhost.localdomain ([109.131.46.35])
 by smtp.gmail.com with ESMTPSA id a73sm6055960wrc.58.2017.05.20.02.38.05
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 20 May 2017 02:38:05 -0700 (PDT)
From: Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>
X-Google-Original-From: Alex Sassmannshausen <alex@HIDDEN>
To: bug-guix@HIDDEN
Subject: [PATCH 0/3] Generalized wrap phase for perl, python.
Date: Sat, 20 May 2017 11:37:42 +0200
Message-Id: <20170520093742.2115-1-alex@HIDDEN>
X-Mailer: git-send-email 2.12.2
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
Cc: Alex Sassmannshausen <alex@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Hello,

This patch series goes back some time, but the need for it has not
disappeared.

It implements a general `wrap` phase that can be used in individual build
systems to make sure binaries in those languages have access to all their
propagated inputs at runtime, by setting an appropriate environment variable.

I tested it against perl and python packages.

It will need to go in core-updates due to the number of packages that will
need to be rebuilt.

Best wishes,

Alex

Alex Sassmannshausen (3):
  build/utils: Add 'program-wrapper'.
  build/perl-build-system: Add 'wrap' phase.
  build/python-build-system: Refactor 'wrap'.

 guix/build/perl-build-system.scm   | 15 +++++++++++++--
 guix/build/python-build-system.scm | 36 ++++++++----------------------------
 guix/build/utils.scm               | 36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+), 30 deletions(-)

-- 
2.12.2





Acknowledgement sent to Alex Sassmannshausen <alex.sassmannshausen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#27003; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 30 May 2017 14:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.