From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YB/FC6SrPl8CCwAA0tVLHw (envelope-from ) for ; Thu, 20 Aug 2020 16:58:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MDPbB6SrPl+gQAAA1q6Kng (envelope-from ) for ; Thu, 20 Aug 2020 16:58:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8348F94036A for ; Thu, 20 Aug 2020 16:58:11 +0000 (UTC) Received: from localhost ([::1]:44380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8ntB-0002M2-He for larch@yhetil.org; Thu, 20 Aug 2020 12:58:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8nt4-0002JN-7P for bug-guix@gnu.org; Thu, 20 Aug 2020 12:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8nt3-00062o-T0 for bug-guix@gnu.org; Thu, 20 Aug 2020 12:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k8nt3-00015G-MX for bug-guix@gnu.org; Thu, 20 Aug 2020 12:58:01 -0400 Subject: bug#42948: (wrap-program) bug Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 20 Aug 2020 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 42948 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Prafulla Giri ,42948-close@debbugs.gnu.org Mail-Followup-To: 42948@debbugs.gnu.org, julien@lepiller.eu, pratheblackdiamond@gmail.com Received: via spool by 42948-done@debbugs.gnu.org id=D42948.15979426514103 (code D ref 42948); Thu, 20 Aug 2020 16:58:01 +0000 Received: (at 42948-close) by debbugs.gnu.org; 20 Aug 2020 16:57:31 +0000 Received: from localhost ([127.0.0.1]:43847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8nsY-000146-Sn for submit@debbugs.gnu.org; Thu, 20 Aug 2020 12:57:31 -0400 Received: from lepiller.eu ([89.234.186.109]:41390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8nsX-00013t-4m for 42948-close@debbugs.gnu.org; Thu, 20 Aug 2020 12:57:30 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id ce3c92bb; Thu, 20 Aug 2020 16:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=aXKrQhYy1uPsAEDBrRK19CdM2K/k5heloTBvjMp4Z04=; b=hJy1U92fxj2U zoYv0e5ADnNewKxgkGec2l5l7OXKFNByt2hMltannOXH5EyV8ZUORzfRq9YY2JZm lqKGq/orx7CSs3xkArgIsT6puJfl36tR9dOjCAwOqSB9qDuZw1CCN2UcN75s2687 xHYjXou0aSScnUVW+qCnC0JyZKIYMacmtei5nx913jZCtS3nFZkp1GRz52tvZ7Dd NnmXoh3lw7wPyYHQSS2cUpcc3IWRL1U8/KyCqJZ06E4himzl3QlhPnim18oI6qdC vtqme/S8udzC48HXJZ0KYgpOsm2XQd1wVREAWW6EAeIgKFNGi+Kh2i9e5xsKp/WS yCf+q2c1HA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id a8f09f67 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 20 Aug 2020 16:57:26 +0000 (UTC) Date: Thu, 20 Aug 2020 12:57:15 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----D29NBFNYBDZ79U6GEHNWR1UV5BP5T7" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: <5ECBDDD2-2FDC-4386-9564-8DF12218D0DB@lepiller.eu> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=hJy1U92f; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: 1deMvPhtmYuS ------D29NBFNYBDZ79U6GEHNWR1UV5BP5T7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I see you've posted your patch in another thread, so I'm closing this one a= s it was a false alarm=2E Thank you! On 2020=E5=B9=B48=E6=9C=8820=E6=97=A5 7:59:01 GMT-04:00, Prafulla Giri wrote: >Esteemed maintainers, > >It seems that (wrap-program =2E=2E=2E) over-writes the previous wrapping = of a >package done by the build system=2E > >This does not happen for many (wrap-programs) called in the >modify-phases >section of the package definition itself=2E > >Attached is a package definition for ruby-ronn-ng, that demonstrates >this >issue=2E The custom (wrap-program)-s >called from the package definition seem to over-write the definitions >of >GEM_ENV as made by the 'wrap %standard-phase >of the ruby-build system=2E >The wrappings made by 'wrap %standard-phase can be seen during the >custom >'DEBUG phase=2E The subsequent 'wrap-program1 >and 'wrap-program2 add more environment variables to the wrapping, but >on >checking the contents of `which ronn`, once >it is installed (using `less $(which ronn)`), it can be verified that >the >GEM_ENV package definitions have been overwritten=2E > >This may just be a ruby-build-system issue=2E Or perhaps it might be >something that permeates over a few more build systems=2E >That still remains to be tested=2E > >Attached are a few different versions of the package definitions for >ruby-ronn-ng for the ease of those who would like to >verify this=2E >1=2E ruby-ronn-ng-standalone=2Escm : To be tested using `guix time-machin= e >-- >build --verbosity=3D2 --file=3Druby-ronn-ng-standalone=2Escm`[1] >2=2E ruby-ronn-ng=2Escm : To be appended to the end of the >gnu/packages/ruby=2Escm file in local guix checkout, and be tested using >the >local version >3=2E ruby-ronn-ng=2Epatch : To be applied to local guix checkout > >[1] - This package definition needs ruby-mustache, which has only >recently >been added to guix=2E Hence, the time-machine=2E > >NOTE: `ronn` does not work even with `propagated-inputs`=2E See this >patch as >to why: >https://aur=2Earchlinux=2Eorg/cgit/aur=2Egit/tree/0001-allow-mustache-1= =2E0=2Epatch?h=3Druby-ronn-ng ------D29NBFNYBDZ79U6GEHNWR1UV5BP5T7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I see you've posted your patch in another thread, = so I'm closing this one as it was a false alarm=2E Thank you!

On 2020=E5=B9=B48=E6=9C=8820=E6=97=A5 7:59:01 GMT-04:0= 0, Prafulla Giri <pratheblackdiamond@gmail=2Ecom> wrote:
Esteemed maintainers,

It seems that (wrap-program = =2E=2E=2E) over-writes the previous wrapping of a package done by the build= system=2E

This does not happen for many (wrap-programs) called in t= he modify-phases section of the package definition itself=2E

Attache= d is a package definition for ruby-ronn-ng, that demonstrates this issue=2E= The custom (wrap-program)-s
called from the package definition seem to = over-write the definitions of GEM_ENV as made by the 'wrap %standard-phase<= br>of the ruby-build system=2E
The wrappings made by 'wrap %standard-pha= se can be seen during the custom 'DEBUG phase=2E The subsequent 'wrap-progr= am1
and 'wrap-program2 add more environment variables to the wrapping, b= ut on checking the contents of `which ronn`, once
it is installed (using= `less $(which ronn)`), it can be verified that the GEM_ENV package definit= ions have been overwritten=2E

This may just be a ruby-build-system i= ssue=2E Or perhaps it might be something that permeates over a few more bui= ld systems=2E
That still remains to be tested=2E

Attached are a f= ew different versions of the package definitions for ruby-ronn-ng for the e= ase of those who would like to
verify this=2E
1=2E ruby-ronn-ng-= standalone=2Escm : To be tested using `guix time-machine -- build --verbosi= ty=3D2 --file=3Druby-ronn-ng-standalone=2Escm`[1]
2=2E ruby-ronn-ng=2E= scm : To be appended to the end of the gnu/packages/ruby=2Escm file in loca= l guix checkout, and be tested using the local version
3=2E ruby-ronn-ng= =2Epatch : To be applied to local guix checkout

[1] - This package d= efinition needs ruby-mustache, which has only recently been added to guix= =2E Hence, the time-machine=2E

NOTE: `ronn` does not work even = with `propagated-inputs`=2E See this patch as to why: https://aur=2Earchlinux=2Eorg/cgit/aur= =2Egit/tree/0001-allow-mustache-1=2E0=2Epatch?h=3Druby-ronn-ng
------D29NBFNYBDZ79U6GEHNWR1UV5BP5T7--