From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Y9kFKsbweWD1fwAAgWs5BA (envelope-from ) for ; Fri, 16 Apr 2021 22:17:10 +0200 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 +HxEI8bweWAdYQAA1q6Kng (envelope-from ) for ; Fri, 16 Apr 2021 20:17:10 +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 4202C1F420 for ; Fri, 16 Apr 2021 22:17:10 +0200 (CEST) Received: from localhost ([::1]:53284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXUtp-0002Fi-BW for larch@yhetil.org; Fri, 16 Apr 2021 16:17:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXUti-0002FK-4Y for guix-patches@gnu.org; Fri, 16 Apr 2021 16:17:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXUth-0007S2-TV for guix-patches@gnu.org; Fri, 16 Apr 2021 16:17:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXUth-00033q-Ma for guix-patches@gnu.org; Fri, 16 Apr 2021 16:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47180] [PATCH] gnu: racket: Don't inject store paths into Racket files. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Apr 2021 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: jackhill@trilug.org, 47180@debbugs.gnu.org Received: via spool by 47180-submit@debbugs.gnu.org id=B47180.16186041839816 (code B ref 47180); Fri, 16 Apr 2021 20:17:01 +0000 Received: (at 47180) by debbugs.gnu.org; 16 Apr 2021 20:16:23 +0000 Received: from localhost ([127.0.0.1]:41761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXUt4-0002Xy-V9 for submit@debbugs.gnu.org; Fri, 16 Apr 2021 16:16:23 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]:36467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXUt0-0002P6-7W for 47180@debbugs.gnu.org; Fri, 16 Apr 2021 16:16:22 -0400 Received: by mail-qv1-f45.google.com with SMTP id i9so13889172qvo.3 for <47180@debbugs.gnu.org>; Fri, 16 Apr 2021 13:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1cebKuR+FwSj+zb9myXg+ynbyGW85KLQw54p7yIfSfg=; b=PBB0Q/le4z14eyOoEIfJTytJCzLTZBp0Lq36lJmTGauwEUIU3Y4tPLsouHOetwxyvq h9HNSy14lS8cQitqB7gVwAT5wLoSlLQvbA4NW9GYoWJ8+2YWgYydcTW5trz7adi4F9x+ VJIcs8BAFp1tc831TIt26VfJIPL1mSo/KrQA3LivtIKjWYAVixwp6UDyNnd67l2gZPAK iTOHGwuCFzJO1ZltTY65XW84pfxIxeqxCgtT9XWrXqtHuUgvQcV1zy1ZKeJeGIeqeIcY PHIgoR2ehG7ERLEhzE27PSwSJPS1XeX9PFJwx2I6EmEy/vEvJ9+HbNuAqiVGL+vfJI4a 0Czg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1cebKuR+FwSj+zb9myXg+ynbyGW85KLQw54p7yIfSfg=; b=NRfzrAP6zsXZFT+rP9gVy2t6SQ9hnhUpffAGtyUWpNvuHX5cX6VBzIJEYgKay7URCJ TxsxL4VAcwfn6Xt+daBQCq/t+wmbyBN4SUZKKMUd2rI/0BMsyrK+d/7EnO2klUSvy7mR irouiKpi7+ZUY+b3LT+fF8Iigl7/JOjnANEBeMLOtN838OwvInPrDPe0IWJa9sV3wte2 vww/Uq1MCGNmn9RrbOobrW4TDNZzUBIE0nRUDSOzyWINfNSa4yh+KQmgCrz8zNwLvwAe aYMWVnTkvf7T7ilg4NG+tv9gxXJhFTGsaU1yLYPvPuffSrKiLp9H/WvRQ4xpsQ37MdlB zj7Q== X-Gm-Message-State: AOAM530mBRufPOf0Zfsu5VCVdnSK5cj3eSB3JtOMxpmm/cuurTXOufQq KeGlt1LlhS+SFYYUe1RThnikEbFpFx55aDwR6p0= X-Google-Smtp-Source: ABdhPJwMHZX5YHb+tmxsYIBmaXxiO7Shy4ehyYXzshk2uVhvCM1TDiGwyMJ4cj8uxa/MlnZN5yBfNw== X-Received: by 2002:a05:6214:12d3:: with SMTP id s19mr10530749qvv.26.1618604172745; Fri, 16 Apr 2021 13:16:12 -0700 (PDT) Received: from Sapientia.local (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id 198sm16117qkf.20.2021.04.16.13.16.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Apr 2021 13:16:12 -0700 (PDT) References: <20210316025632.9767-1-philip@philipmcgrath.com> <87wnt9zwix.fsf@gnu.org> <877dl7psqc.fsf@gnu.org> From: Philip McGrath Message-ID: <397f0533-1be0-aab8-d3e5-fd81d59ae1ce@philipmcgrath.com> Date: Fri, 16 Apr 2021 16:16:04 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <877dl7psqc.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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=1618604230; 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=1cebKuR+FwSj+zb9myXg+ynbyGW85KLQw54p7yIfSfg=; b=SoEzH0raYceZEbSl2E12Z2ikw5Mu8K3WUVi/0GvUI+DdJneJfhZ5p48qH3J2A68BDKqQSB tn2YfZBzEfYyLlg06QlXOuFIQyLcSbxSgb9OCVkEcwA4/mCpYtvbtznm6G8khfOBgj2VkR s/2XUCqSGWoajR74QnvxaLx90/Y3yeonBFk75SwkdVniGYs6Iqm5C3ewHn4gqsd5erPqxJ jsKOo3gf3hfEMZA1ijuy/IWUQc4e1Y642/XDlmVD7Sx89r/CBDe0qgRcps2nGKkB+drW2l +Y0NUOAhFO8tKbBWXky9d6TDSS7y7Zlwi3xqrM5bVgPtb7NC887PR9BWSkXgAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618604230; a=rsa-sha256; cv=none; b=Qs/WiF7qAraSRLCfOAU3ECbSTj2NUYdCEHm14KOIQwFkELE/kkgJJgKaf5icmpQk61ggqh 6Z/CtvgFNr12kyldrLeADxdHTWji+480A/twVE8lqZU1lYr2Lr7Jh/Ua0YeAr1NB+YoTnV Pp5yLmkD60By9sSMDWU/0FP64niT13jd1nNOfBU8lXPUsVDtlKm5vM/kBHZzEjtUkkIw1p O4qZB2E3RxHNL/3V96pLZI2/os160k1ERnk1xSn1J174pkT9wb85EHVLd8HFw+CxQQv/gD jr+jvu6fZwVVyysNQ26TrNh0rT+5JnqkyAzVX7cHUAIFH5qYitgAGGzbAnkfFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="PBB0Q/le"; dmarc=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-Spam-Score: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="PBB0Q/le"; dmarc=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: 4202C1F420 X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: kW97PVpSUYhJ Hi, On 4/12/21 8:55 AM, Ludovic Courtès wrote: > Philip McGrath skribis: >> Rather than using "config.rktd", an alternative approach would be to >> set things up so that `dlopen` would find the foreign libraries, >> perhaps via `LD_LIBRARY_PATH`. This has some intriguing possibilities: >> I could imagine Guix providing an alternate `dlopen` implementation >> that might be useful beyond Racket. > > What would that alternate dlopen do? It still has to know where to look > for things, somehow. This was a very fuzzy thought with a lot of reliance on "somehow"—I'm not certain it would actually make sense or even be possible—but what I had in mind is that `dlopen`, together with the dynamic linker and its various configuration and cache files, has some places it will search for shared libraries, e.g. in "/lib" and "/usr/lib". If `gnu-build-system` could somehow communicate with those mechanisms, then packages doing things like `dlopen("libm.so.6", RTLD_LAZY)` wouldn't need to have their source code rewritten to include store files: Guix would arrange for `dlopen` to find "libm.so.6" among the package inputs. Then Guix would only need to know how to graft whatever mechanism it used to configure things for `dlopen`, rather than having to worry about all of the strange things compilers might do with string literals. But I don't have much of an idea of what "somehow" might be, and I'm not really a C hacker when I can avoid it :) -Philip