From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 12 07:08:45 2022 Received: (at submit) by debbugs.gnu.org; 12 Jan 2022 12:08:45 +0000 Received: from localhost ([127.0.0.1]:56395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7cQm-0001kD-OC for submit@debbugs.gnu.org; Wed, 12 Jan 2022 07:08:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:37044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7cQj-0001k4-Rx for submit@debbugs.gnu.org; Wed, 12 Jan 2022 07:08:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7cQj-0004ZR-Ji for guix-patches@gnu.org; Wed, 12 Jan 2022 07:08:41 -0500 Received: from [2a02:1800:110:4::f00:18] (port=37336 helo=michel.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7cQh-0001Cv-0H for guix-patches@gnu.org; Wed, 12 Jan 2022 07:08:41 -0500 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id ho8a2600c4UW6Th06o8aGH; Wed, 12 Jan 2022 13:08:35 +0100 From: Maxime Devos To: guix-patches@gnu.org Subject: [PATCH] gnu: info-reader: Reference gzip by absolute path. Date: Wed, 12 Jan 2022 12:08:34 +0000 Message-Id: <20220112120834.208761-1-maximedevos@telenet.be> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1641989315; bh=nvMxyG5tdw7PPzNFk/iVPasJJJj/5LE61aVNnVwCqi4=; h=From:To:Cc:Subject:Date; b=enEjhOMPqGEth5EEIRBNd7+Totc3AN2aOV/vg/Unk9nJOaVXdJ/meishpzlWZDHkd CQmxbV6nqSTY1p3/jqCYyp/7J92Rwh45OeCK1L6OPWmjcWtqK9fO7eD8D4yk7k7TjQ iUFxfsyYvU+YwIC+UiTgy8idib+RLow1hBsDIzmxYlWJVlhxuszNM7QCF5Ewa2g6gU jmk20FHMwh0X+IifBowwkgLsvdjNJvOcFS1vc1GAtvqWRlYRvu7hXpA8amWqLn9Zcv nheaI6462okWRPdKJMfnONSgomdIsm9TBOXy6X5mlRw4Nv/4INUobbuZEFQrBYFNYD 6epndqPl14lbA== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:18 (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:18; envelope-from=maximedevos@telenet.be; helo=michel.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit Cc: Maxime Devos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This allows doing "guix shell --pure info-reader guile -- info guile". * gnu/packages/texinfo.scm (info-reader)[arguments]: Add 'absolute-binary-path' phase to refer to gzip by the absolute store file name. [inputs]: Add 'gzip'. --- gnu/packages/texinfo.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm index 13fb92d14a..fc1dac9df9 100644 --- a/gnu/packages/texinfo.scm +++ b/gnu/packages/texinfo.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2019, 2020 Mathieu Othacehe ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen +;;; Copyright © 2021 Maxime Devos ;;; ;;; This file is part of GNU Guix. ;;; @@ -156,6 +157,17 @@ is on expressing the content semantically, avoiding physical markup commands.") `(,@(substitute-keyword-arguments (package-arguments texinfo) ((#:phases phases) `(modify-phases ,phases + ;; Make sure 'info-reader' can read compressed info files + ;; in a pure environment. There are also a few other + ;; uncompressors listed in this file (lzip, unxz, bunzip2, ...) + ;; but let's not include them because info manuals in Guix + ;; are always compressed with 'gzip'. + ;; TODO(core-updates): maybe move to the 'texinfo' package. + (add-after 'unpack 'absolute-binary-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "info/filesys.c" + (("gunzip") (search-input-file inputs "/bin/gunzip")) + (("gzip") (search-input-file inputs "/bin/gzip"))))) (add-after 'install 'keep-only-info-reader (lambda* (#:key outputs #:allow-other-keys) ;; Remove everything but 'bin/info' and associated @@ -179,7 +191,9 @@ is on expressing the content semantically, avoiding physical markup commands.") "perl") #:modules ((ice-9 ftw) (srfi srfi-1) ,@%gnu-build-system-modules))) - (synopsis "Standalone Info documentation reader"))) + (synopsis "Standalone Info documentation reader") + (inputs (modify-inputs (package-inputs texinfo) + (prepend gzip))))) (define-public texi2html (package base-commit: 9fd4f4b09cc0495d6b1418f171ff738a1086cc00 prerequisite-patch-id: 9e070819096a5b3df220706866de3f9a24700add prerequisite-patch-id: 9e081caf6df1e9b7fa4ecf0e816089cb65897d7b prerequisite-patch-id: 8fa14cb2d1fcc4b4d5be227bf8a2691a912500c0 prerequisite-patch-id: 3d4bf2cbd36e29a031c6ccd13fdf4edd51b67652 prerequisite-patch-id: b740911b2fab6e87f003e13ce21d3c726d7ffeb6 prerequisite-patch-id: 2495e12d0efbf42fe847e7411a9c7abbf6b09c38 prerequisite-patch-id: f281231d96059179b6b891d999dda798b099e2fb prerequisite-patch-id: c60b330f96721da1f7790dd29b5d428e312e7b2e prerequisite-patch-id: a3ab55eaf0dece586c513fa5671414ff902eb1cd prerequisite-patch-id: ff47ed0086837f18293d67e5edd01ca14c6f84c9 prerequisite-patch-id: 2c805f40c37fed3eb8e69456d4c90c0a75b643be prerequisite-patch-id: dfc9534307fd4365205bcd22cea57c3e196b29e8 prerequisite-patch-id: 5035d75f6463dbcc8d7e29782ba9b1f7a5867c42 prerequisite-patch-id: 25bcba14a4fe703d4e09169e2741526781ae3372 -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 12 16:24:05 2022 Received: (at 53206-done) by debbugs.gnu.org; 12 Jan 2022 21:24:05 +0000 Received: from localhost ([127.0.0.1]:59297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7l6D-00075H-8O for submit@debbugs.gnu.org; Wed, 12 Jan 2022 16:24:05 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:33263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7l68-00074Y-0U for 53206-done@debbugs.gnu.org; Wed, 12 Jan 2022 16:24:04 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 6AD9A60005; Wed, 12 Jan 2022 21:23:53 +0000 (UTC) From: Nicolas Goaziou To: Maxime Devos Subject: Re: [bug#53206] [PATCH] gnu: info-reader: Reference gzip by absolute path. References: <20220112120834.208761-1-maximedevos@telenet.be> Date: Wed, 12 Jan 2022 22:23:52 +0100 In-Reply-To: <20220112120834.208761-1-maximedevos@telenet.be> (Maxime Devos's message of "Wed, 12 Jan 2022 12:08:34 +0000") Message-ID: <87k0f4642f.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53206-done Cc: 53206-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Maxime Devos writes: > This allows doing "guix shell --pure info-reader guile -- info guile". > > * gnu/packages/texinfo.scm (info-reader)[arguments]: Add > 'absolute-binary-path' phase to refer to gzip by the absolute store > file name. > [inputs]: Add 'gzip'. Applied. Thank you. Regards, -- Nicolas Goaziou From unknown Sun Jun 15 08:39:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Feb 2022 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator