From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SljXE7jON2EQlgAAgWs5BA (envelope-from ) for ; Tue, 07 Sep 2021 22:42:32 +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 91DrDrjON2FZPQAAbx9fmQ (envelope-from ) for ; Tue, 07 Sep 2021 20:42:32 +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 A3DC3D99F for ; Tue, 7 Sep 2021 22:42:31 +0200 (CEST) Received: from localhost ([::1]:53610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNhvK-0007EK-Lh for larch@yhetil.org; Tue, 07 Sep 2021 16:42:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNhud-0007Du-Kk for guix-devel@gnu.org; Tue, 07 Sep 2021 16:41:47 -0400 Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]:40078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNhua-0003J9-Fg for guix-devel@gnu.org; Tue, 07 Sep 2021 16:41:47 -0400 Received: from butterfly.local ([188.188.3.227]) by xavier.telenet-ops.be with bizsmtp id r8hg250024tskic018hg8x; Tue, 07 Sep 2021 22:41:40 +0200 Message-ID: Subject: Re: avoid wrapper scripts when possible From: Maxime Devos To: Attila Lendvai , "guix-devel@gnu.org" Date: Tue, 07 Sep 2021 22:41:35 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-ZbjQFo/EPrWlEi27r6Wt" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1631047300; bh=qRi98m1LWc+ftvN8s8wkyw5X4+BDcjMuQp10ZPoC5io=; h=Subject:From:To:Date:In-Reply-To:References; b=abSM8BEiK4m6lXjWTQfba0O7s9i9piSSWBFtsTzzcn/A72sTCgscQE5TzVb/GD9s6 XMFs2e4arzjhZnrNXg4DAS+O1jRPsDX6aoJX5cwxeOmqCEOaF2Fe573PmosL9yXZ8f gcLeUb+/xgijjoFYirEBSNJ02b3fyOYE27cH0HUYGjA7gGHSbCCkBcsAJyDrFiJi6m c0LZmGhSH34zR8llFSkMAslEwNtxX8dADm9O5Js8KjJvIVvBg7yEZUGuvNtBQSum6q cdyvhQ8IZ/HAWjw6qt+J8Apvf2g0iigz5f66SNMNvu2M5D2sxeX7f11u+VY3EB4HHf lnOIUiH0UX3MA== Received-SPF: pass client-ip=2a02:1800:120:4::f00:14; envelope-from=maximedevos@telenet.be; helo=xavier.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631047352; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qRi98m1LWc+ftvN8s8wkyw5X4+BDcjMuQp10ZPoC5io=; b=lhn2VN6NKST4vTx62XF0SHieSlOkU+AZYa5vm9AzuEX8JoRybqI1u5qE8bbtUujpceowYi 1ngGSwqonLy5KZwAP5JDl6SJRkTCL7Bnz1UNbxsWRRifPk2xkpy0MGC3G9KK1xi9WeO0KN ghyYms99MAIX9FnZMwVn+DfLrVVPJSz63J/hlVcfbm45ufAJ4lriogmglVP1BcXZ45QEUJ h4bVAfJDXJAtXwt0nwirKnp34TxrK6VL07eMRzw+xo6iornsSjTcesFaQvYCSYRc4iYGoY no9b7HGyHkkLHJ4QUYOjVQJqyLBf6s3YgGLqHav2GBUWmyO/das1ZjUBB3s6Ww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631047352; a=rsa-sha256; cv=none; b=krrVSBHgoXipS4AxFnICJpBkVLVEzZ4xa1g228b9dHdSIrAQ005tz7o/g+QmwsNQ67DEkX Y/CgBhvDhW8nBrwd9PvYAn7mwSCwbibctqZPKkwyUUEYa8w1WGqIbtxZtIy6GK70Y/pF6k fSZJbH26G22tZtSkdxS/TSuhgsbimD5gDaGdntgZLBf+uphycXxx7qIqxSSVVjJnCtd3FZ /HsX0UzBQK5M02aPfLWDjF/6ce40tBW5Hc+a7DaEKDC1H/sOUINaFhAi4sdtyiA/zAnBHM 08svwbRc/ruRA/zVgN/JVYCCEQZbPRb82qH9Qmf+7xJ8zoSwyPUMvYCil2El2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r21 header.b=abSM8BEi; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r21 header.b=abSM8BEi; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: A3DC3D99F X-Spam-Score: -3.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: VUbYyyLTknc0 --=-ZbjQFo/EPrWlEi27r6Wt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Attila Lendvai schreef op di 07-09-2021 om 18:52 [+0000]: > pardon me for reviving a years old discussion, but i'm facing the same pr= oblem once again. >=20 > i have updated trezor support, and i wanted to test generating a new gpg = key: >=20 > $ trezor-gpg init "foobar " >=20 > leading to: OSError: Cannot find '.trezor-gpg-gpg-agent' in $PATH >=20 > upstream relies on sys.argv[0] in a non-trivial way: >=20 > https://github.com/romanz/trezor-agent/blob/338a075ed500f210a707cb3adf901= 04602e35c48/libagent/gpg/__init__.py#L124 You could patch trezor-agent with something like # Python syntax might be incorrect if sys.argv[0] =3D=3D ".trezor-gpg' sys.argv[0] =3D "trezor-gpg" device_name =3D os.path.basename(sys.argv[0]).rsplit('-',1)[0] Would that work? > is there any chance to revive this effort? >=20 > original discussion: https://lists.gnu.org/archive/html/guix-devel/2017-1= 1/msg00017.html >=20 > shall i open an issue? for this specific problem, or the wider situation = discussed in the mailing list thread? FWIW, there's 'wrap-program' and there is 'wrap-script'. wrap-script is less likely to cause errors here (it doesn't rename the exec= utable) but less general. Maybe wrap-script can be used instead of wrap-program? Greetings, Maime --=-ZbjQFo/EPrWlEi27r6Wt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYTfOfxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ndDAP47ooTi5Mmwj66N5oQiUR3z+cjL NUtiRjk0VxNE3O4vCQEAlRSss/GT1XQXtrp+9frtc7ocMAF0sWBXzME5g/leDw8= =FZHP -----END PGP SIGNATURE----- --=-ZbjQFo/EPrWlEi27r6Wt--