From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QNw0OxS8ul72QwAA0tVLHw (envelope-from ) for ; Tue, 12 May 2020 15:09:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EESMFSO8ul7oRgAAB5/wlQ (envelope-from ) for ; Tue, 12 May 2020 15:09:23 +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 CFC66940609 for ; Tue, 12 May 2020 15:09:20 +0000 (UTC) Received: from localhost ([::1]:52978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYWX3-0000d9-Ow for larch@yhetil.org; Tue, 12 May 2020 11:09:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYWN5-0007yj-HJ for guix-patches@gnu.org; Tue, 12 May 2020 10:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYWN5-0007gj-4i for guix-patches@gnu.org; Tue, 12 May 2020 10:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYWN5-0004S6-47 for guix-patches@gnu.org; Tue, 12 May 2020 10:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR' Resent-From: Carlos O'Donell Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 May 2020 14:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41189 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 41189@debbugs.gnu.org Received: via spool by 41189-submit@debbugs.gnu.org id=B41189.158929551317054 (code B ref 41189); Tue, 12 May 2020 14:59:03 +0000 Received: (at 41189) by debbugs.gnu.org; 12 May 2020 14:58:33 +0000 Received: from localhost ([127.0.0.1]:56333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYWMb-0004Qv-2C for submit@debbugs.gnu.org; Tue, 12 May 2020 10:58:33 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:40849 helo=us-smtp-delivery-1.mimecast.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYTjV-0003q5-60 for 41189@debbugs.gnu.org; Tue, 12 May 2020 08:10:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589285400; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=MzQgWKgdcz2E91AN0YylVPXaEZIDov321tC6PZEHeXg=; b=Bll1gP49KqqpUnF4jZGXDvI6/BcC6TeP5X5wEPYP8P75KhUBdcRMeP0M4MPCpijEelRf7V n1tfDeAMK9z/3EURAPeh5dpD+bF16YyOqxY77eHFMBDvWWPJJGb7ENGBqkau/QatsOlMXQ 7mzhoIpjmnY37DdQoYKA3mo19srtcNc= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-125-t3PV57xgNDK-EvjeeGivEg-1; Tue, 12 May 2020 08:09:56 -0400 X-MC-Unique: t3PV57xgNDK-EvjeeGivEg-1 Received: by mail-qv1-f69.google.com with SMTP id y60so11091880qvy.13 for <41189@debbugs.gnu.org>; Tue, 12 May 2020 05:09:56 -0700 (PDT) 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:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=MzQgWKgdcz2E91AN0YylVPXaEZIDov321tC6PZEHeXg=; b=PfmtIB7gLXsbF2UirGwYIoM8WXgJ5XnDFjvx5cj5lg0CpKyJ84prnXuUDgo49Y4rO2 KLUxxcTjWXtjTqOPyzoz2aGcz1OzPWwH9FEUVNwa1NODDI16GbXay2yeCZ6c7kaLoo37 XLo5jYG6Yh10Cbi8OFjcL2vPK1GI70KXET+wFaYTzjt1d0ncWOsthcZpsgf/Ohh8hxLD YKc8fJSBzTIuFCgndcvK3yphdZy9FPSSUz5oN9gf6p3atkpP6amC9j3cqQzfaOaOxYF9 FPgd0b6w70v5BGENusfxDotS2+xdyFEGt59IXcN5esUwqdueB/bvkVf7EcNeGt2QKAAh Ciww== X-Gm-Message-State: AGi0PuZfZcO0x25+ynm+wPr9hBVs4fmQQjSJhH3J++PFneiCtaHi3CW0 X2xz+WdEpTuDIF4cQZX/GBdkklGrp0QeruV2jNc3P0TFGMOgkt+7LBn/e+ccMKEEgW2vVRz6Q+L y/yIHZ4cGl2nDocQ= X-Received: by 2002:a37:b185:: with SMTP id a127mr19961690qkf.87.1589285396044; Tue, 12 May 2020 05:09:56 -0700 (PDT) X-Google-Smtp-Source: APiQypIurnbGhaVNjQQMw1Voo0oPHb4uk/cWWGyarxEpwngFl8mfhzCqtxqLrJ8srmuF0ReP8+V1uw== X-Received: by 2002:a37:b185:: with SMTP id a127mr19961665qkf.87.1589285395788; Tue, 12 May 2020 05:09:55 -0700 (PDT) Received: from [192.168.1.4] (198-84-170-103.cpe.teksavvy.com. [198.84.170.103]) by smtp.gmail.com with ESMTPSA id d82sm10979637qke.81.2020.05.12.05.09.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 May 2020 05:09:55 -0700 (PDT) References: <20200511170554.22916-1-ludo@gnu.org> <28e3ffa2-b565-3052-e0c7-7208fab25a11@redhat.com> <87r1vpbhce.fsf@gnu.org> From: Carlos O'Donell Organization: Red Hat Message-ID: Date: Tue, 12 May 2020 08:09:53 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <87r1vpbhce.fsf@gnu.org> Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Tue, 12 May 2020 10:58:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Scanner: scn0 X-Spam-Score: 0.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=redhat.com header.s=mimecast20190719 header.b=Bll1gP49; dmarc=fail reason="SPF not aligned (relaxed)" header.from=redhat.com (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-Scan-Result: default: False [0.09 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53994745372541]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.06), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; R_DKIM_REJECT(1.00)[redhat.com:s=mimecast20190719]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[redhat.com:-]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; FROM_NEQ_ENVFROM(0.00)[carlos@redhat.com,guix-patches-bounces@gnu.org]; TAGGED_FROM(0.00)[larch=yhetil.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; URIBL_BLOCKED(0.00)[guile-readline.so:url,libreadline.so:url]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[41189@debbugs.gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[10]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[redhat.com : SPF not aligned (relaxed),none] X-TUID: 3h7nTTKqNsAp On 5/12/20 6:03 AM, Ludovic Courtès wrote: > One thing that won’t work is dlopen because our ‘--library-path’ > argument is computed statically based on the RUNPATH of the wrapped > program. So for instance if you try to load guile-readline.so from > Guile, it eventually fails because libreadline.so isn’t found > (libreadline.so is in the RUNPATH of guile-readline.so, but the loader > uses non-interposable calls here as well.) Probably no simple solution > to that one. There is a simple solution. You need to write a dynamic loader audit module that handles la_objsearch() and inject your lookup path. See man 7 rtld-audit. The dynamic loader audit modules allow you to alter the loader's core behaviour with a plugin. -- Cheers, Carlos.