From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IIBQFDd7dGCapAAAgWs5BA (envelope-from ) for ; Mon, 12 Apr 2021 18:54:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4PkcDjd7dGChbAAAbx9fmQ (envelope-from ) for ; Mon, 12 Apr 2021 16:54:15 +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 F006E26D9A for ; Mon, 12 Apr 2021 18:54:14 +0200 (CEST) Received: from localhost ([::1]:40130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVzpF-0007p0-KQ for larch@yhetil.org; Mon, 12 Apr 2021 12:54:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVzlC-0006YE-Fo for guix-patches@gnu.org; Mon, 12 Apr 2021 12:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVzlC-0008An-8F for guix-patches@gnu.org; Mon, 12 Apr 2021 12:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVzlC-0004Ls-6m for guix-patches@gnu.org; Mon, 12 Apr 2021 12:50:02 -0400 Subject: bug#47180: [PATCH] gnu: racket: Don't inject store paths into Racket files. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 12 Apr 2021 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Philip McGrath Cc: 47180-done@debbugs.gnu.org Mail-Followup-To: 47180@debbugs.gnu.org, ludo@gnu.org, philip@philipmcgrath.com Received: via spool by 47180-done@debbugs.gnu.org id=D47180.161824614316656 (code D ref 47180); Mon, 12 Apr 2021 16:50:02 +0000 Received: (at 47180-done) by debbugs.gnu.org; 12 Apr 2021 16:49:03 +0000 Received: from localhost ([127.0.0.1]:57918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVzkF-0004Ka-IF for submit@debbugs.gnu.org; Mon, 12 Apr 2021 12:49:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVzkE-0004Jd-63 for 47180-done@debbugs.gnu.org; Mon, 12 Apr 2021 12:49:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58421) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVzk5-0007bH-F6; Mon, 12 Apr 2021 12:48:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49070 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lVzk4-0004Ly-3T; Mon, 12 Apr 2021 12:48:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210319023451.3405-1-philip@philipmcgrath.com> Date: Mon, 12 Apr 2021 18:48:50 +0200 In-Reply-To: <20210319023451.3405-1-philip@philipmcgrath.com> (Philip McGrath's message of "Thu, 18 Mar 2021 22:34:51 -0400") Message-ID: <87eeffo3d9.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618246455; 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-to: 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; bh=d+6aJHcvOz1oBZBN2aMj+ALLZKhe92/BEZduRs3yVHs=; b=Vmaz5oxt99GSDUId3pQzzrYxs6/fHtwF9zEMg9iL+rkvVT+vX3lyo1MFs0bFD8kNNHaLin Bj/3gHV/Q/srkoVMnoxc8+lG2kgAj5UjsuMbFxk9coi9Es75sWRFgDKbDXz9msh4fWzBpI hi0JBi+6J03ytFiukSSuyIKz5IwkPx9GMcDziXW48mADfDXB5cIppaB9p4h1abTJOFYBi+ k6tQWcccOVQjavTaGUWQ283lSroBKFjCxzE/EPFPa+cdGNaum5tWdenC51yGJ0Rc8efJQg KYgJ1y4buelmHYUCRp9sJH3WewaPlTDFrCwKB416+rH6EBxtt8FlIscDS8KiIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618246455; a=rsa-sha256; cv=none; b=Sqy8ED0R994rMo53eBEs2KymHIy6nqesyBtd0FIfVp56mFY7Vk965mcBbe+jn7nVHYpEhE gfpYs8D+cP5fhD1QpA4ueip3glLyb7cnkkp2fePN+qn7ydqMm1z+BsXyrxtVrNiIFMkd/d CXUgLIOdbhrcrWBA3WLkiX5jEf4NeybM7Pulhj9ya+zv1b4nGNN+QyAghF23eUfixuPgdE trlhHdQLVgTwBWtwUhLh86pVIhcHv7i4UM8iIEthn7ZkgWaeRFq/mMDZf93/8lIwE1huPz f2WWyDPj3cVL9pnhii9NkSLdvWa7Tj0IQPpn/q+U1+cEMua+AYp0Hs/GTBn69w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Spam-Score: -2.94 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: F006E26D9A X-Spam-Score: -2.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: +zV0fGqGZDJA Philip McGrath skribis: > Apparently, during grafting, Guix can somehow mangle compiled > Racket CS files (.zo) such that Racket will refuse to load them. > (Maybe it has something to do with compression?) > So, we stop patching Racket sources with absolute paths to store > files (i.e. for foreign libraries to dlopen). > Instead, we put them in a data file that doesn't get compiled or, > in one case, embed it in C. > > Fixes https://issues.guix.gnu.org/47064 > > * gnu/packages/patches/racket-sh-via-rktio.patch: New file. > Adds a special case at the C level, controlled by a preprocessor macro, > to handle attempts to execute "/bin/sh". > * gnu/local.mk (dist_patch_DATA): Add it. > * gnu/packages/scheme.scm (racket)[source](patches): Apply it. > (racket)[arguments](#:configure-flags): Add the CPP flag to enable it. > (racket)[arguments](#:modules): Use srfi-1. > (racket)[arguments](#:phases): Remove 'patch-/bin/sh and 'pre-configure. > Change 'pre-configure-minimal to just change directory. > Add 'patch-config.rktd-lib-search-dirs after 'build and before 'install > to configure Racket's "lib-search-dirs". > (racket, racket-minimal)[inputs]: Add bash-minimal as an explicit input. > (racket-minimal)[source]: Adjust to inherit patches from racket. > (racket-minimal)[arguments]: Inherit from racket: changes no longer neede= d. > --- > gnu/local.mk | 2 + > .../patches/racket-sh-via-rktio.patch | 87 ++++++++ > gnu/packages/scheme.scm | 191 ++++++++---------- > 3 files changed, 176 insertions(+), 104 deletions(-) > create mode 100644 gnu/packages/patches/racket-sh-via-rktio.patch Pushed as 834aa48504a24f0c79e858fc295edbf63815a408. Thanks! Ludo=E2=80=99.