From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mKwVI/WrRGF0WAEAgWs5BA (envelope-from ) for ; Fri, 17 Sep 2021 16:53:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UHy6HvWrRGFAZgAAbx9fmQ (envelope-from ) for ; Fri, 17 Sep 2021 14:53:41 +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 B74E51571C for ; Fri, 17 Sep 2021 16:53:40 +0200 (CEST) Received: from localhost ([::1]:57166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRFFC-0003Rq-Tm for larch@yhetil.org; Fri, 17 Sep 2021 10:53:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRF7q-0007sa-MC for bug-guix@gnu.org; Fri, 17 Sep 2021 10:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRF7q-0002oW-Cy for bug-guix@gnu.org; Fri, 17 Sep 2021 10:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRF7q-0006i2-AI for bug-guix@gnu.org; Fri, 17 Sep 2021 10:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50625: ghostscript shell scripts refer to unqualified external commands Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 17 Sep 2021 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50625 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jack Hill Received: via spool by 50625-submit@debbugs.gnu.org id=B50625.163188991322825 (code B ref 50625); Fri, 17 Sep 2021 14:46:02 +0000 Received: (at 50625) by debbugs.gnu.org; 17 Sep 2021 14:45:13 +0000 Received: from localhost ([127.0.0.1]:60876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRF73-0005vm-Fx for submit@debbugs.gnu.org; Fri, 17 Sep 2021 10:45:13 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:41599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRF71-0005o0-5m for 50625@debbugs.gnu.org; Fri, 17 Sep 2021 10:45:12 -0400 Received: by mail-qt1-f180.google.com with SMTP id u21so8931116qtw.8 for <50625@debbugs.gnu.org>; Fri, 17 Sep 2021 07:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aTpARAlgz7Gbw3yUKCRy6ZdI4oxgXd7di6inTrHnmCc=; b=G+A8gNk9TvvDzE979Wz3Fk7yI2OYud1PfcKhYFw2C0Hqj/wnpMt/rIayaCnDBcpwxK CU8mNulqb89l8/nJHxXYP0UeYq+ywwHXWnQNHiJQOlaNW/6X5MM5efSv+MU9CXtFw33Q qcF/buCt6LdQBkuAZmGz385vNG/tpbjb8Eip7UN5Hh8oNuCgyWuJQwTym2LKRyP/Yp+c 2aqXX+uD3AMOdGrb/n7lih1xZMVfBiDPOBDazWpa9nIRcrzVGQhbr4y57vPjrD0IiBoR n8NZEpwjEiseoOVoPmBDsIDN268m24zaOfnt33SqDJzakOf8PxuA8a/S9UWKg2J6SP62 6S1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aTpARAlgz7Gbw3yUKCRy6ZdI4oxgXd7di6inTrHnmCc=; b=cLD37Q7DowQ7GSpocV14SSTet4AXNiSLgIhtgWtYTj+WdfoesHAKcwfvvhbeXEMvPr /WJW6QwfVMq2FeLSLnjeOeDrwIzeCZ3ILXgHNKAuFwij5ciBouBOFhWjOzmOzicP+sH1 /loGxvYgDSXrcwlWSOjGqausero9guiiKUnMdoUhQOTn7LP6PBJhhqryiBXr1uZ+H2d/ foDvhfDxUMVP2NJ+MA0AhVZmvjL5+Cgp35zEW9JU+116XrfxvPfwaA7cLRdA9S+PA6n/ rEkuvCMCvuA8NqPL3Si/qjg7rtucs+U/s9QOITtd4ZYlDpDYQtZSn6owkB6UJJwqs3kf xOVA== X-Gm-Message-State: AOAM5306wmoKATkq1m2abaiUQBiGFr5CNZVTCSOS/OqSsXVOONMnkwp7 X+ZX9DWdv1eUU5/Cv5SJqy1eb7tXgcy2idkwykV69674LGk= X-Google-Smtp-Source: ABdhPJxdNkyWASLqNW6kVnj5sztIyelsaXskfq+BRbQiLGREC6ML8i3kLIqNsA+sD0yogNXJNtpxnmqXdEYZs8PThk4= X-Received: by 2002:ac8:570f:: with SMTP id 15mr10902616qtw.335.1631889905548; Fri, 17 Sep 2021 07:45:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Fri, 17 Sep 2021 16:44:54 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 50625@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631890420; 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: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=aTpARAlgz7Gbw3yUKCRy6ZdI4oxgXd7di6inTrHnmCc=; b=IAWYCzF56SF+ExkaokaR7KYiJPA10EDFuB1HeuTeBgwTpZLRtUlTsawGlL1BDFdrnsFV6x xOvNQJncnS/DHHjYuD6y7+Vhk6YfYc76uHz8zXTObxSL4i1mNl4bAncRrHtYCj2QwlnGCv vo+pbcTLtEVF246QpjeAf+z5EWeOAKJ1aAvFh1LcQsB22MZvAxiN4KgRUqCoXSeVcBvp6C wmEV1OIMQdu+cCYt+Wz5j8bLzvtaO46YkXyDX6aKXdMdcDGpHhlFwNomkHC6zLA+fMxHZN jo2ijY2NTWbucoON2NPvE0a4CcKOjxFm1MS2zxfJbK4Jp89xLdfMnf19HFt/dg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631890420; a=rsa-sha256; cv=none; b=HcRJgK7dK2uz7FQWI12sEDEizpTLkSgCiRnh1wtcAwQdL9KlLMHQDigcZPBX1mxe+CZwrS Jy5sVQdI9Dz24AxvNv5x6+2FHdkl0N6qF84gs6BIi7WflaeEDa+RKz0wBE88NVS9idYTeM HoV8NiUNHcPQnKYTnGue2mgvgUAkHdkmgOHyHcfSTkPcUzV0ELbqi65v/lJJzG4Ld10hKL tXQpQ0/jLPD9lPLhw2GysOIk3C+5KcPwHpCCW6tDN9xFROMuqsly8mgGTGyW4H8ma7lgML BH8holBJzH77At9aVVL14pAHpY9cA3vZHLhkzqouz3ZcD5Qn21TFgJQPrylzUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=G+A8gNk9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=G+A8gNk9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B74E51571C X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: JRiQV2XMcRod Hi, On Thu, 16 Sept 2021 at 17:29, Jack Hill wrote: > Many of the commands, e.g. ps2pdf, provided by the ghostscript package are > implemented as shell scripts that do some argument or file name processing > before invoking the main gs binary. These scripts invoke external commands > like basename, awk, dirname, and even gs by dynamically looking them up > PATH. Instead, they should refer to a specific path in the store so that > the behavior of ghostscript doesn't depend on the environment and so that > Guix can see these references. Indeed. --8<---------------cut here---------------start------------->8--- $ guix environment -C --ad-hoc ghostscript [env]$ ps2pdf --version /gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdf: line 8: dirname: command not found /gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdf14: line 3: dirname: command not found /gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdfwr: line 7: dirname: command not found /gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdfwr: line 24: basename: command not found Usage: [options...] (input.[e]ps|-) [output.pdf|-] --8<---------------cut here---------------end--------------->8--- The fix would to add these external commands as 'inputs' and then let 'wrap-program'. Do you want to give a try? Cheers, simon