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 ms0.migadu.com with LMTPS id qbyLAGZ/mWF2DgAAgWs5BA (envelope-from ) for ; Sun, 21 Nov 2021 00:06:14 +0100 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 yG4jN2V/mWFBKgAAB5/wlQ (envelope-from ) for ; Sat, 20 Nov 2021 23:06:13 +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 522016974 for ; Sun, 21 Nov 2021 00:06:13 +0100 (CET) Received: from localhost ([::1]:45570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moZQy-00083n-F0 for larch@yhetil.org; Sat, 20 Nov 2021 18:06:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moZQp-00082C-47 for guix-patches@gnu.org; Sat, 20 Nov 2021 18:06:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moZQo-0007Rj-Rh for guix-patches@gnu.org; Sat, 20 Nov 2021 18:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moZQo-0005aO-GQ for guix-patches@gnu.org; Sat, 20 Nov 2021 18:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52009] [PATCH core-updates-frozen] openresolv: Wrap it. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Nov 2021 23:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52009 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52009@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163744951421397 (code B ref -1); Sat, 20 Nov 2021 23:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Nov 2021 23:05:14 +0000 Received: from localhost ([127.0.0.1]:43828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moZQ2-0005Z2-Gs for submit@debbugs.gnu.org; Sat, 20 Nov 2021 18:05:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:47142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moZPy-0005Yo-3t for submit@debbugs.gnu.org; Sat, 20 Nov 2021 18:05:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moZPx-0007wk-Ax for guix-patches@gnu.org; Sat, 20 Nov 2021 18:05:09 -0500 Received: from [2a00:5881:4008:2810::309] (port=48540 helo=planete-kraus.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1moZPu-0007DF-Tx for guix-patches@gnu.org; Sat, 20 Nov 2021 18:05:08 -0500 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 76394dbf for ; Sat, 20 Nov 2021 23:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h=from :to:subject:date:message-id:mime-version:content-type; s=dkim; bh=tF1UReLZhzgC0CfsSz/sa/vgXSc=; b=Va1U1jQmwMuZ7NvUa7IbepleyTNB TDX7l5iIWkwwT4M6/3c7BIvIUxQKspKSbJy946PXpnHJyKloqrrB0N9Tn+/hSArw gqxoFDwBc+7POXEezqzY2UAI2gKp3lIOnAOth19rZIauXcvIBa38FhRGxbZp/Iir kBxG8N/tOFXN9Ro= Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id bd5590bd (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Sat, 20 Nov 2021 23:04:56 +0000 (UTC) Date: Sun, 21 Nov 2021 00:04:49 +0100 Message-ID: <8735nq5sz2.fsf@planete-kraus.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:5881:4008:2810::309 (failed) Received-SPF: pass client-ip=2a00:5881:4008:2810::309; envelope-from=vivien@planete-kraus.eu; helo=planete-kraus.eu X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Reply-to: Vivien Kraus X-ACL-Warn: , Vivien Kraus via Guix-patches From: Vivien Kraus via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637449573; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=J1vSFnLJLgSnMpN3iNmqcySK4IsnyTxjOMx/LDtbrE0=; b=ag1nZYW6Kn2ghL00SQeT/SVzHl03S3FD0NoRoy+gRfJWLXfcPh43CsXRVRxJKleQi62bnP NeE/FAXpFUGuWBka/2Gn9+SJWZbYXKxNUmYJSRL8JxShggbxdXRDbS8DK5asprcCp9LYxj ry9ZD2fsHhyVe13eBVOYqe4/8f7pQc02bBgwZ1pb0McUUqDZW6jmcoacnEA8OU/kjQJnSW coAy/l0BWnHdsXQ0lvb+ZWDXHz4nuIhip+x8DI3W36w5HWgmXLIK0sx5QdWpAGMdDN0iAs 39ezBejPmvPgQYMZkYMeSB+YTaL/DfOgP6UF/laEtuyuwaSQuAW7yI1f42Bt3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637449573; a=rsa-sha256; cv=none; b=ia/yoyIsOAqxGJj8U1rwXmynBGVZXXIqQ9cRaT0ARZ8dTfzTGblg1zz6ntYwA+MNoH8abe IYtHDd/fJzWeXDbuHjDQITbP31xnJKnXKGJRaRMmb7ivLoI52kQFU0ztf8Fe0nJVR7euQq MYuuCQU50ERqJGPHPmFotnB5RzrqSqXE5YASXOvIBWDtwzhC9anjAM0ygLW2/yXtISpzR9 V+itQhY0n+KPpuNxo6LGgW7nCkcpe+v77GM+OmgQ7w9zvxwjU2GUmZBKp/gYlov2XysSYL ykaWdH47hiA3wcrobF+jYHixKyyJvlIyw4D6h4JPaqpBWZ6jFGVPPUBMhzyhkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b=Va1U1jQm; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -5.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b=Va1U1jQm; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 522016974 X-Spam-Score: -5.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: LzaZyB8hTnOz --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear guix, When I boot my system on core-updates-frozen, I get an error message: /gnu/store/xxx-openresolv-3.12.0/sbin/resolvconf: line 824: mkdir: command = not found Failed to create needed directory /var/run/resolvconf I didn=E2=80=99t experience any DNS issue, but my network is simple on that machine. In any case, I think it would do no harm to wrap resolvconf to set its path to the coreutils so that it can find mkdir and rm. I didn=E2= =80=99t find resolvconf to invoke any other program. What do you think? Best regards, Vivien --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-openresolv-Wrap-resolvconf.patch Content-Transfer-Encoding: quoted-printable Content-Description: Wrap resolvconf (openresolv) to set its path From=20426c613e226b5c7e041d6a8476c09abfeffe151c Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sat, 20 Nov 2021 23:48:17 +0100 Subject: [PATCH] gnu: openresolv: Wrap resolvconf. * gnu/packages/dns.scm (openresolv) [phases]: Wrap resolvconf to set PATH, = for coreutils programs mkdir and rm. * gnu/packages/dns.scm (openresolv) [inputs]: Add coreutils, and bash-minim= al to run the wrapper and the wrapped script. =2D-- gnu/packages/dns.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index b289aa999e..55c6c0d82d 100644 =2D-- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -1417,7 +1417,18 @@ (define-public openresolv #:configure-flags (list (string-append "--sysconfdir=3D/etc")) #:make-flags =2D (list (string-append "SYSCONFDIR=3D/" (assoc-ref %outputs "out") = "/etc")))) + (list (string-append "SYSCONFDIR=3D/" (assoc-ref %outputs "out") "/= etc")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (coreutils (assoc-ref inputs "coreutils"))) + (wrap-program (string-append out "/sbin/resolvconf") + `("PATH" ":" =3D (,(string-append coreutils "/bin")))))))= ))) + (inputs + `(("bash-minimal" ,bash-minimal) + ("coreutils" ,coreutils))) (home-page "https://roy.marples.name/projects/openresolv/") (synopsis "Resolvconf POSIX compliant implementation, a middleman for = resolv.conf") (description "openresolv is an implementation of @command{resolvconf},= the =2D-=20 2.34.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAEBCAAdFiEEq4yIHjMvkliPpwQnO7C8EjLYuCwFAmGZfxIACgkQO7C8EjLY uCywHAwArRad4xqQm169UWQ46b2zxkLJhU2IVK7pUXRnYr9Af5/pLz6RfN+do84R 3/lkxWDvYbAreAfe1caosfrLMxqS4HrvaNsiprIe+wwzD8+H4A0+RaiMYnU/z/qZ /jlZsjVDfI9NOGB6Vf9aLdozQfsumpRp/LuxgvDPVZjrAS4A53I2Xw2NSS15PXN9 9C2ljG6+z4LOA4Dnk4b/Ma7o+a+tLDzlSkw8FoclPZpxywPEBpplHUgj0sefAOpv YPUOWxgP4lBbN5LOvrLvDBVW4durP2/Wh1oyAzahGtQLZe9DgmQtJBxOEUdLh4X4 VnuulkuZ/onGF0wx1rWoNRF6msL/+QfrNSzthCPLMxyQn8KbhbGu3FjUO9WOUqPd yMd+vDmwMVmcfxgZFSFkAquME1N7Fk4AKjqGDQMVxTo2fCxpteOZCHxcFKSZ7g34 cgMZ204KG2ylN4F0LGLzBUALiMCmUY3uwdP++/RW3IhMIE5mm11gHaVZPJPt/+7x GhUwSwqJ =xR6T -----END PGP SIGNATURE----- --==-=-=--