projects/guix·blob python-team · refs

41 lines · 1.2 KiB

1From 9434b4a36646c036db8de326158056aa3293fb82 Mon Sep 17 00:00:00 2001
2From: Philip McGrath <[email protected]>
3Date: Thu, 28 Apr 2022 22:56:20 -0400
4Subject: [PATCH] fix read-only gifs and math directories
5
6An installed copy of stex might have all write permission bits removed,
7even for the owner of the installed files: this is the case with Guix
8package of stex, for example. If such an installation is used to
9initialize the gifs or math directories (e.g. for an out-of-source
10build), tar likewise creates them without write permissions, preventing
11subdirectories from being created later. Set the user write bit
12explicitly to avoid this problem.
13 Mf-stex
14
15Related to https://github.com/racket/racket/pull/4203
16---
17
18Submitted upstream in https://github.com/dybvig/stex/pull/6
19
20 Mf-stex | 2 ++
21 1 file changed, 2 insertions(+)
22
23diff --git a/Mf-stex b/Mf-stex
24index 09ec6f3..11fb214 100644
25--- a/Mf-stex
26+++ b/Mf-stex
27@@ -112,9 +112,11 @@ $(x).mathrun: gifs $(mathfiles)
28
29 gifs:
30 (cd $(STEXLIB); tar -cf - gifs) | tar -xpf -
31+ chmod u+w gifs
32
33 math:
34 (cd $(STEXLIB); tar -cf - math) | tar -xpf -
35+ chmod u+w math
36
37 $(mathfiles): $(x).hthirdrun $(figps)
38 echo -n gifs= > $(mathfiles)
39--
402.32.0
41