[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: gnu: texlive-bin: Fix directory traversal.
From: |
guix-commits |
Subject: |
02/09: gnu: texlive-bin: Fix directory traversal. |
Date: |
Tue, 11 Jan 2022 05:29:47 -0500 (EST) |
rekado pushed a commit to branch version-1.4.0
in repository guix.
commit 2a5ed25c412e162505b2b371d00987fd158a91d4
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jan 4 15:00:32 2022 +0100
gnu: texlive-bin: Fix directory traversal.
Fixes <https://bugs.gnu.org/52979>.
* gnu/packages/tex.scm (texlive-bin)[arguments]: Add build phase
'patch-directory-traversal.
---
gnu/packages/tex.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index b0e30e3878..7f1aedaa19 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -426,6 +426,15 @@ files from LOCATIONS with expected checksum HASH. CODE is
not currently in use.
(with-fluids ((%default-port-encoding "ISO-8859-1"))
(substitute-commands iso-8859-1-encoded-scripts)))))
+ ;; When ST_NLINK_TRICK is set, kpathsea attempts to avoid work when
+ ;; searching files by assuming that a directory with exactly two
+ ;; links has no subdirectories. This assumption does not hold in our
+ ;; case, so some directories with symlinked subdirectories would not
+ ;; be traversed.
+ (add-after 'patch-scripts 'patch-directory-traversal
+ (lambda _
+ (substitute* "texk/kpathsea/config.h"
+ (("#define ST_NLINK_TRICK") ""))))
(add-after 'check 'customize-texmf.cnf
;; The default texmf.cnf is provided by this package, texlive-bin.
;; Every variable of interest is set relatively to the GUIX_TEXMF
- branch version-1.4.0 updated (b8a771d5a5 -> df77cd8968), guix-commits, 2022/01/11
- 02/09: gnu: texlive-bin: Fix directory traversal.,
guix-commits <=
- 01/09: gnu: texlive-bin: Remove trailing #T., guix-commits, 2022/01/11
- 03/09: gnu: texlive-bin: Patch references to sed and awk., guix-commits, 2022/01/11
- 06/09: gnu: Add texlive-lua-alt-getopt., guix-commits, 2022/01/11
- 05/09: gnu: texlive-latex-base: Remove trailing #T., guix-commits, 2022/01/11
- 08/09: gnu: texlive-lualibs: Take sources from TeX Live SVN., guix-commits, 2022/01/11
- 04/09: gnu: texlive-kpathsea: Patch references to sed and awk., guix-commits, 2022/01/11
- 07/09: gnu: texlive-luaotfload: Propagate texlive-lua-alt-getopt., guix-commits, 2022/01/11
- 09/09: gnu: texlive-bin: Link lualatex to luahbtex., guix-commits, 2022/01/11