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 GPIiMsk+3V/LRAAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 23:44:09 +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 YHcOLsk+3V9QJgAA1q6Kng (envelope-from ) for ; Fri, 18 Dec 2020 23:44:09 +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 916129402D4 for ; Fri, 18 Dec 2020 23:44:09 +0000 (UTC) Received: from localhost ([::1]:59462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqPPs-0002PH-JP for larch@yhetil.org; Fri, 18 Dec 2020 18:44:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqPPm-0002P9-9m for guix-patches@gnu.org; Fri, 18 Dec 2020 18:44:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqPPm-00034k-2a for guix-patches@gnu.org; Fri, 18 Dec 2020 18:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqPPm-0004fF-0L for guix-patches@gnu.org; Fri, 18 Dec 2020 18:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#42338] [PATCH 03/34] guix: Add composer-build-system. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Dec 2020 23:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42338 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42338-submit@debbugs.gnu.org id=B42338.160833501017873 (code B ref 42338); Fri, 18 Dec 2020 23:44:01 +0000 Received: (at 42338) by debbugs.gnu.org; 18 Dec 2020 23:43:30 +0000 Received: from localhost ([127.0.0.1]:40502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqPPG-0004eD-8k for submit@debbugs.gnu.org; Fri, 18 Dec 2020 18:43:30 -0500 Received: from lepiller.eu ([89.234.186.109]:57722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqPPD-0004e3-Td for 42338@debbugs.gnu.org; Fri, 18 Dec 2020 18:43:28 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id b0d3dc51; Fri, 18 Dec 2020 23:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=gtadFR5dm4Ky Oz25cU5hrjEkb1yBJ99ji6FE1fsStnc=; b=Q+USl78HUv1oUSu5WZC/HVAKAQaS 65jal/pbYFv13vvga09FpYxMy42xf//vGqCWuw3ZAZBX3buLTKKuguf2sPKkKmWS 9wYt6YnVvq26khfAOt8XxWJzLf8uQcVQfcR/h/JaxnrQZPaydz3T24vmytfA+Yz+ S4FtKC1A9vHB/KZdw+10vnN7KMATD/Hq94ny/WHDCzXhA4K6QrCdfX1wK4sQQEEP Dsqj+TSQUjMD51kbbjzwcAxRfikCGDQwERPfSMHZR/oEX5ESvd6mPgsOhrLqcj9f 6mFSAPzoX3BtOvo/4EuFazk2lU4A6JKPatCHzP/etWZj+6vjDrJss2plmQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id cfacdb7c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 18 Dec 2020 23:43:24 +0000 (UTC) Date: Sat, 19 Dec 2020 00:43:18 +0100 From: Julien Lepiller Message-ID: <20201219004318.2c94830d@tachikoma.lepiller.eu> In-Reply-To: <87blhn39dz.fsf@gnu.org> References: <20200713002055.1553f136@tachikoma.lepiller.eu> <20200712222538.18092-1-julien@lepiller.eu> <20200712222538.18092-3-julien@lepiller.eu> <87imcphe6a.fsf@gnu.org> <20200918004403.0d755d60@tachikoma.lepiller.eu> <87eemz1nib.fsf@gnu.org> <20200919012420.301201e8@tachikoma.lepiller.eu> <87eemq16y3.fsf@gnu.org> <20200929164920.0684be42@tachikoma.lepiller.eu> <87blhn39dz.fsf@gnu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42338@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.22 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=Q+USl78H; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 916129402D4 X-Spam-Score: -1.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9JQDgHuQWK7Y Le Wed, 30 Sep 2020 11:24:08 +0200, Ludovic Court=C3=A8s a =C3=A9crit : >=20 > To bring in Guile-JSON, you need to do something similar to what > =E2=80=98gexp->file=E2=80=99 does with =E2=80=98load-path-expression=E2= =80=99, along these lines > (untested): >=20 > (define guile-json-drv > (package-derivation store > (module-ref (resolve-interface '(gnu packages > guile)) 'guile-json) > system)) >=20 > (define builder > `(begin > (add-to-load-path (string-append ,(derivation->output-path > guile-json-drv) "/share/guile/site/" > (effective-version))) > (use-modules ,@modules) > =E2=80=A6)) >=20 > ;; =E2=80=A6 >=20 > (build-expression->derivation store name builder > ;; =E2=80=A6 > #:inputs (append inputs > `(("guile-json" > ,guile-json-drv)))) >=20 > I guess clunkiness is the reason why we didn=E2=80=99t do it last time=E2= =80=A6 >=20 > HTH! >=20 > Ludo=E2=80=99. Hi Ludo, sorry for the delay! I tried that (replacing 'guile-json with 'guile-json-4), but it doesn't work: when building the package, guix first builds a modules-compiled that fails because it can't find (json). It seems to be related to the compilation of (guix build composer-build-system) which uses the (json) module: when removing the import, it's modules-compiled works (with a lot of warnings), but obviously guix can't build the php package.