From unknown Sun Aug 17 06:57:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65366 <65366@debbugs.gnu.org> To: bug#65366 <65366@debbugs.gnu.org> Subject: Status: texlive-scheme-basic: chktex: Could not find global resource file. Reply-To: bug#65366 <65366@debbugs.gnu.org> Date: Sun, 17 Aug 2025 13:57:24 +0000 retitle 65366 texlive-scheme-basic: chktex: Could not find global resource = file. reassign 65366 guix submitter 65366 Chloe Brown severity 65366 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 18 11:21:51 2023 Received: (at submit) by debbugs.gnu.org; 18 Aug 2023 15:21:52 +0000 Received: from localhost ([127.0.0.1]:48522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX1IN-0006uv-0V for submit@debbugs.gnu.org; Fri, 18 Aug 2023 11:21:51 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWxy5-0003Vg-89 for submit@debbugs.gnu.org; Fri, 18 Aug 2023 07:48:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWxxx-0002ZF-OH for bug-guix@gnu.org; Fri, 18 Aug 2023 07:48:35 -0400 Received: from s1-b514.socketlabs.email-od.com ([142.0.181.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWxxv-0002Po-AS for bug-guix@gnu.org; Fri, 18 Aug 2023 07:48:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1692359311; x=1692618511; h=content-disposition:content-type:mime-version:message-id:subject:to:from:date:x-thread-info:subject:to:from:cc:reply-to; bh=OUUemigroISh0ScyOwz181WtG9vZZq5Gx9+zkjnFlaU=; b=aEzjFcUNchY+ozOG+E15KU813prSUg5Qpz1LD277459P8v8s10GaRfT3P9txu8o4+04VgXa0n+Ikddyx7zlizZiPmtgiDtGdefHSbIELkIDTXB4ay5lufhqLUy38mhXWRRHeNgi+shSX+ZmUL1x0hxHVF6o8GkC6xFax6boc1+8= X-Thread-Info: YjA5NC4xMi5jM2FlMDAwMDRiNTQ4Mi5idWctZ3VpeD1nbnUub3Jn Received: from r2.us-west-2.aws.in.socketlabs.com (r2.us-west-2.aws.in.socketlabs.com [142.0.190.2]) by mxh4.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 18 Aug 2023 06:27:56 -0400 Received: from yellowsquid.uk (cpc117742-basf14-2-0-cust16.12-3.cable.virginm.net [81.101.64.17]) by r2.us-west-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 18 Aug 2023 06:27:55 -0400 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=yellowsquid.uk; s=20230814_ed25519; h=Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OUUemigroISh0ScyOwz181WtG9vZZq5Gx9+zkjnFlaU=; b=EDGMwQ2CVtoyaadgELxYBcs0rH tfZOIdLoJshKgVUfznL633+r3DMHbw0eueqoFh6HXW7vKFLDP5d7ToROvqAw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=yellowsquid.uk; s=20230814_rsa; h=Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OUUemigroISh0ScyOwz181WtG9vZZq5Gx9+zkjnFlaU=; b=ZrMXICEUZ9E44L5YjFtzsI/due mqB6TvxbT+zJfjxZK8ATUhPFjc3QvR2RhuCJH2hgizPMtUgAhxn0isSaGMcIk9xvSy1txrAILa8IA bCi9VJXMsFumU9oArExxG3PLfJXaNRLKryMD9WYTorbuYOHIqTnaVumep2fWQ2ZMAWkgXgCRPfikz OsMh/x3SYlYmeEz6bpw8ms3Ke7CWV/TwSUVSB3Q8JFw7CAymjygCRP2shGfSgRd1XgybjFwWC4J3B ZTlrNeu2KzvcWHOg0yJgw8WTFTphAy2xz0nrYM46b0ztILvw9A6kMxf2pZ+JbhMn34lor/Wtdw7IR t6XQuVWw==; Authentication-Results: yellowsquid.uk; iprev=pass (vpn-fn-224.net.ed.ac.uk) smtp.remote-ip=192.41.114.224; auth=pass (PLAIN) smtp.auth=chloe; dmarc=skipped Received: from vpn-fn-224.net.ed.ac.uk ([192.41.114.224]:60664 helo=chloe-laptop.yellowsquid.uk) by yellowsquid.uk with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qWwhs-0007Fe-1V for bug-guix@gnu.org; Fri, 18 Aug 2023 11:27:52 +0100 Date: Fri, 18 Aug 2023 11:27:44 +0100 From: Chloe Brown To: bug-guix@gnu.org Subject: texlive-scheme-basic: chktex: Could not find global resource file. Message-ID: <20230818102744.4tax4v3yrsp3cn2b@chloe-laptop.yellowsquid.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=142.0.181.20; envelope-from=b094.82.c3ae00004b5482.d709de66ff5816e1447f063252edc3c5@bounce.yellowsquid.uk; helo=s1-b514.socketlabs.email-od.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 18 Aug 2023 11:21:49 -0400 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: -0.1 (/) * Description Trying to run the chktex binary results in a permanent warning. When trying to run ~chktex -v~ (as done by Emacs) it escalates to an error. It appears the binary cannot find a necessary configuration file. * Expected Behaviour Running ~chktex -v~ would not give an error. * Actual Behaviour The following error message is produced and the program exits. WARNING -- Could not find global resource file. ERROR -- Illegal verbosity level. * Steps to Reproduce - Run the following command: guix shell -C texlive-bin -- chktex -v - Observe the error * Guix Details Observed on commit 78f080e25bfc02abd9a8fa88c8ad8d5854f54743 * Other Notes - Also including the texlive-chktex package does not resolve the error. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 02 15:22:05 2023 Received: (at 65366) by debbugs.gnu.org; 2 Sep 2023 19:22:05 +0000 Received: from localhost ([127.0.0.1]:38699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcWC4-0005Pm-Kh for submit@debbugs.gnu.org; Sat, 02 Sep 2023 15:22:05 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]:44531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcWC0-0005PF-24 for 65366@debbugs.gnu.org; Sat, 02 Sep 2023 15:22:03 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6D1FC1C0003 for <65366@debbugs.gnu.org>; Sat, 2 Sep 2023 19:21:43 +0000 (UTC) From: Nicolas Goaziou To: 65366@debbugs.gnu.org Subject: [PATCH] gnu: texlive-chktex: Fix runtime error. Date: Sat, 2 Sep 2023 21:18:13 +0200 Message-ID: <716deb42f01f583e34c9b7257592a7e4021f109e.1693682293.git.mail@nicolasgoaziou.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Debbugs-Cc: Andreas Enge , Ricardo Wurmus Content-Transfer-Encoding: 8bit X-GND-Sasl: admin@nicolasgoaziou.fr X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65366 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 (-) This fixes . * gnu/packages/tex.scm (texlive-source): New variable. (texlive-chktex)[source]: Build binary from source. [build-system]: Use GNU-BUILD-SYSTEM. [arguments]<#:phases>: Make sure the `chktex' executable can locate a global configuration file. [native-inputs]: Add PKG-CONFIG and TEXLIVE-LIBKPATHSEA. --- The following patch should (partly) fix the issue with chktex. Because both `texlive-bin' and `texlive-chktex' provide the `chktex' executable, one just has to make sure the binary from `texlive-chktex' is used. The next step will be to remove it from `texlive-bin', but this need to go in a separate branch due to the sheer number of rebuilds this will entail. Also, the patch paves the way towards more executables being removed from `texlive-bin', by defining a common `texlive-source' macro. gnu/packages/tex.scm | 79 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 63 insertions(+), 16 deletions(-) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 9ac9105342..af276cfbdc 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -162,6 +162,17 @@ (define-syntax-rule (define-deprecated-package old-name name) (define-deprecated/public old-name name (deprecated-package (symbol->string 'old-name) name))) +(define texlive-source + (let ((version "20230313")) + (origin + (method url-fetch) + (uri (string-append "ftp://tug.org/historic/systems/texlive/" + (string-take version 4) "/" + "texlive-" version "-source.tar.xz")) + (sha256 + (base32 + "1fbrkv7g9j6ipmwjx27l8l9l974rmply8bhf7c2iqc6h3q7aly1q"))))) + (define-public texlive-libkpathsea (package (name "texlive-libkpathsea") @@ -33358,22 +33369,58 @@ (define-public texlive-chktex (package (name "texlive-chktex") (version (number->string %texlive-revision)) - (source (texlive-origin - name version - (list "chktex/" - "doc/chktex/" - "doc/man/man1/chktex.1" - "doc/man/man1/chktex.man1.pdf" - "doc/man/man1/chkweb.1" - "doc/man/man1/chkweb.man1.pdf" - "doc/man/man1/deweb.1" - "doc/man/man1/deweb.man1.pdf" - "scripts/chktex/") - (base32 - "0qyrllxvcymmr1a4sq9c88fw5zchcx0n6yac69s61fg6xypk18bq"))) - (outputs '("out" "doc")) - (build-system texlive-build-system) - (arguments (list #:link-scripts #~(list "chkweb.sh" "deweb.pl"))) + (source + (origin + (inherit texlive-source) + (modules '((guix build utils) + (ice-9 ftw))) + (snippet + #~(begin + (with-directory-excursion "libs" + (for-each + delete-file-recursively + (scandir "." + (lambda (file) + (and (not (member file '("." ".."))) + (eq? 'directory (stat:type (stat file)))))))) + (with-directory-excursion "texk" + (let ((preserved-directories '("." ".." "chktex"))) + (for-each + delete-file-recursively + (scandir "." + (lambda (file) + (and (not (member file preserved-directories)) + (eq? 'directory + (stat:type (stat file))))))))))))) + (build-system gnu-build-system) + (arguments + (list + #:out-of-source? #true + #:configure-flags + #~(list "--disable-native-texlive-build" + "--disable-all-pkgs" + "--enable-chktex") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'locate-global-configuration-file + ;; `chktex' needs to know where its global configuration file is. + ;; However, it cannot understand our convoluted TEXMFMAIN value. + ;; This phase forces configuration file name. + (lambda _ + (substitute* "texk/chktex/chktex-src/OpSys.c" + (("kpse_var_value\\(\"TEXMFMAIN\"\\)") + (string-append "strdup(\"" #$output "/share/texmf-dist\")"))))) + (add-after 'install 'post-install + (lambda _ + (with-directory-excursion "texk/chktex" + (invoke "make" "install")))) + ;; Compilation forces a "/usr/bin/env perl" shebang. Change it. + (add-after 'post-install 'patch-shebang + (lambda _ + (patch-shebang + (string-append #$output + "/share/texmf-dist/scripts/chktex/deweb.pl"))))))) + (native-inputs (list pkg-config texlive-libkpathsea)) (inputs (list perl)) (home-page "https://ctan.org/pkg/chktex") (synopsis "Check for errors in LaTeX documents") base-commit: f6cf746938d29ab3d0888a5e58cad97ce634766a -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 31 19:16:35 2024 Received: (at submit) by debbugs.gnu.org; 31 Aug 2024 23:16:35 +0000 Received: from localhost ([127.0.0.1]:58430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skXKc-0008QJ-PL for submit@debbugs.gnu.org; Sat, 31 Aug 2024 19:16:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:51448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skXKa-0008Q9-NQ for submit@debbugs.gnu.org; Sat, 31 Aug 2024 19:16:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1skXJd-0002b8-5O for bug-guix@gnu.org; Sat, 31 Aug 2024 19:15:33 -0400 Received: from msg-4.mailo.com ([213.182.54.15] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1skXJa-0002Nu-Hl for bug-guix@gnu.org; Sat, 31 Aug 2024 19:15:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolasgoaziou.fr; s=mailo; t=1725146125; bh=xMCQ+97NWsSDR5kkz9mGl5aGmL4oGg9KzqxeFDYRfSA=; h=X-EA-Auth:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type; b=EGEQXesjdU1wDnarL1zHnjO+jyk97IW5QDjmB+YvKlhhRmjW6TcIOR2XlFKetPw46 F17dx3ZElQXa09ps5Fqo0JRd3ur69tRHi6f+RCDoetiNbHYxn1oAoA6NteAKb49VBF EThTRfhFoDR9AjZPb0HnXPcLiiGchSwMgLf4I2FY= Received: by b221-2.in.mailobj.net [192.168.90.22] with ESMTP via ip-20.mailobj.net [213.182.54.20] Sun, 1 Sep 2024 01:15:25 +0200 (CEST) X-EA-Auth: UkRA84NTYMPxhyCzZ89j9LwrRG5A7sIOpIh6L+VtYOjpXFbMQGWWBX5DxEcBrYDHQ3RGuhmRdG7z22PVmQKF4BDpSZzqYyBtpa17MIGYO0Q= From: Nicolas Goaziou To: Chloe Brown via Bug reports for GNU Guix Subject: Re: bug#65366: texlive-scheme-basic: chktex: Could not find global resource file. In-Reply-To: <20230818102744.4tax4v3yrsp3cn2b@chloe-laptop.yellowsquid.uk> (Chloe Brown via Bug reports for's message of "Fri, 18 Aug 2023 11:27:44 +0100") References: <20230818102744.4tax4v3yrsp3cn2b@chloe-laptop.yellowsquid.uk> Date: Sun, 01 Sep 2024 01:15:09 +0200 Message-ID: <877cbw8ete.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=213.182.54.15; envelope-from=mail@nicolasgoaziou.fr; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Chloe Brown , 65366-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: -2.4 (--) Hello, Chloe Brown via Bug reports for GNU Guix writes: > * Description > > Trying to run the chktex binary results in a permanent warning. When trying to > run ~chktex -v~ (as done by Emacs) it escalates to an error. It appears the > binary cannot find a necessary configuration file. > > * Expected Behaviour > > Running ~chktex -v~ would not give an error. > > * Actual Behaviour > > The following error message is produced and the program exits. > > WARNING -- Could not find global resource file. > ERROR -- Illegal verbosity level. > > * Steps to Reproduce > > - Run the following command: > > guix shell -C texlive-bin -- chktex -v > > - Observe the error > > * Guix Details > > Observed on commit 78f080e25bfc02abd9a8fa88c8ad8d5854f54743 > > * Other Notes > > - Also including the texlive-chktex package does not resolve the > error. This issue is fixed since last core-updates merge: guix shell texlive-chktex -- chktex -v does not give any error. Regards, -- Nicolas Goaziou From unknown Sun Aug 17 06:57:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 29 Sep 2024 11:24:12 +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