From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QKFfMj+222UWIQEAqHPOHw:P1 (envelope-from ) for ; Sun, 25 Feb 2024 22:50:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QKFfMj+222UWIQEAqHPOHw (envelope-from ) for ; Sun, 25 Feb 2024 22:50:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=eUlO1mUX; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708897855; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0+oLKGMvXkgHyk5ldtzmmWKdcmxjQFV6SKlnWPpJjFU=; b=kd9YeILQxgjy+8KdDJj8h6QiUJV+H30IkUUaO1Z+vT+Bxm8GweQFng8Lx7Ca/QSHBCWY6J sZ2X43nRcsz/r4SQTUC92UdUAncLZVfZYXTEPwpCyKmjsrOf/dErZuaSvqe2BO1P50Go16 36kiz4nisoGIxz5JF6xt/Nve9m7iSMjnrRsi2ZMSNGPPJh9/eWJZKlJ7aktto3uAPd53m9 qVuaQGaof4DgR2yigQRAEKdwZxVyxqNFXtvnd5bfY7eSgiWoL6aSKnzXDiqXC3g2jNDUoz qhx+9EtJIigEsSbgDICV82KtWF6DiTdSZ/zAwLM3NmcVCz3TcemiJy0w9/NFbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=eUlO1mUX; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708897855; a=rsa-sha256; cv=none; b=o6XNtbYlI8FL36b2DemNNF/BZ1X/W1GERVIuxE9qomY+E8J9pO3X4YMVzQoA51IATuUKIw 0GG+dH7HOueLIiuAWgxy0aqsOpPEdUkftM1ywebHdrZf3TFgVIY8aePIONor54JyyTGrXX dhct5jZ+7nuoqXTP92AhnhNe5I0yZrCM3sqQ7fylmPiTfNApvNZy+L4enaybWCwMI1F9ah d1bpfaqkK9eYuGhOM7u58Vteq6FqcbIyx5CCuYAevDa3SBqIPk5oxjV12QBwztVFJQVB5c oC109d/t/l29Ei1ySTpb2Bu6UPC3cLpe3vt5p/b0g5oYRs+zJ2Ws61wmcbI7WQ== 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 AC988D171 for ; Sun, 25 Feb 2024 22:50:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reMOP-0002q4-C0; Sun, 25 Feb 2024 16:50:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reMOM-0002pn-2i for guix-patches@gnu.org; Sun, 25 Feb 2024 16:50:38 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reMOL-00058O-NJ for guix-patches@gnu.org; Sun, 25 Feb 2024 16:50:37 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reMOk-0005DS-2g for guix-patches@gnu.org; Sun, 25 Feb 2024 16:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69396] [PATCH core-updates] gnu: ld-wrapper: Also unset GUILE_LOAD_PATH. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Feb 2024 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 69396@debbugs.gnu.org Received: via spool by 69396-submit@debbugs.gnu.org id=B69396.170889783819979 (code B ref 69396); Sun, 25 Feb 2024 21:51:02 +0000 Received: (at 69396) by debbugs.gnu.org; 25 Feb 2024 21:50:38 +0000 Received: from localhost ([127.0.0.1]:52353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reMOL-0005C7-UO for submit@debbugs.gnu.org; Sun, 25 Feb 2024 16:50:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reMOJ-0005Be-GN for 69396@debbugs.gnu.org; Sun, 25 Feb 2024 16:50:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reMNo-00051g-NJ; Sun, 25 Feb 2024 16:50:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=0+oLKGMvXkgHyk5ldtzmmWKdcmxjQFV6SKlnWPpJjFU=; b=eUlO1mUXzP0UL6guMQVt p/9Gjj6N+FV1TwkLt9qtj2hc4jH9HkCZfeQnh4oRE1lkSk5XvtJtQBhhzx5E83vmzbeWTaNBzY1tD XXc3w2DdIGqX2Rr0yZaM5rNgkqxhzRYOVRUUDx0jg4oktmpUYLLKtXupOKVaerirRNelmHfYtTjbJ g9uidAqFZJIlbHomfNlxGN/WSM3d+f9r42Z3xprtPxWRfTLbRBRDJI5PGGyYgV/t8ySc22ojYLpo+ FgVXoSFF+ZBIAXBGq4B29khJeWWz3YAvIPM50TMxVLYWsZtqZW6SRUlGEYFWRYjnDELLkSM8lWi5m TzABA4R6ioa3mg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Maxim Cournoyer's message of "Sun, 25 Feb 2024 16:17:49 -0500") References: Date: Sun, 25 Feb 2024 22:49:59 +0100 Message-ID: <87le7843js.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.31 X-Spam-Score: -5.31 X-Migadu-Queue-Id: AC988D171 X-TUID: Ci0nv1VtUm1d Hi, Maxim Cournoyer skribis: > The following problem was discovered while attempting to configure Guix t= o use > a locally built Guile tree, via its meta/uninstalled-env script, which wo= uld > attempt to use the newer Guile source files and fail with: > > Pre-boot error; key: unbound-variable, args: (#f "Unbound variable: > ~S" (error) #f)collect2: fatal error: ld terminated with signal 6 [Abor= ted] > > With the following change, a Guix user may now configure their build to u= se a > locally built Guile with e.g.: > > ~/src/guile/meta/uninstalled-env ./configure --localstatedir=3D/var \ > --sysconfdir=3D/etc > > * gnu/packages/ld-wrapper.in: Unset GUILE_LOAD_PATH. Also unset > GUILE_SYSTEM_PATH, for symmetry. Streamline exec call, using the now fix= ed > '-l' option. > (ld-wrapper): Fix args being a nested list, and strip its arg0. [...] > -# XXX: We have to go through Bash because there's no command-line switch= to > -# augment %load-compiled-path, and because of the silly 127-byte limit f= or > -# the shebang line in Linux. > -# Use `load-compiled' because `load' (and `-l') doesn't otherwise load o= ur > -# .go file (see ). > -# Unset 'GUILE_LOAD_COMPILED_PATH' to make sure we do not stumble upon > -# incompatible .go files. See > -# . > +# XXX: We have to go through Bash because there's no Guile command-line = switch to > +# ignore the various Guile load path related environment variables. >=20=20 > +# Unset 'GUILE_LOAD_PATH' to make sure we do not stumble upon > +# incompatible Guile files (see > +# = ). > + > +unset GUILE_LOAD_PATH > unset GUILE_LOAD_COMPILED_PATH > +unset GUILE_SYSTEM_PATH > unset GUILE_SYSTEM_COMPILED_PATH OK for this part (I guess nobody tried that before!). > -main=3D"(@ (gnu build-support ld-wrapper) ld-wrapper)" > -exec @GUILE@ -c "(load-compiled \"@SELF@.go\") (apply $main (cdr (comman= d-line)))" "$@" > + > +exec @GUILE@ \ > +-l @SELF@ \ > +-e '(@ (gnu build-support ld-wrapper) ld-wrapper)' -s "$0" "$@" @SELF@ might need to be enclosed in double quotes for good measure. Can you check through =E2=80=98strace=E2=80=99 how loading with =E2=80=98-l= =E2=80=99 compares to (load-compiled =E2=80=A6)? Otherwise LGTM, thanks! Ludo=E2=80=99.