emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
blob 0c3c44a2e37c99b9ee3549f9f8b7b55ca3e70572 964 bytes (raw)
name: gnu/packages/patches/emacs-fix-odt-export.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
Files inside the guix store are read only. "styles.xml" is copied from the
store (/share/emacs/26.3/etc/org/OrgOdtStyles.xml), so it's read only too.
ox-odt needs this file, so if it's not writable it will fail. This patch
adjust the permissions.

---
 lisp/org/ox-odt.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/org/ox-odt.el b/lisp/org/ox-odt.el
index f9c4a93cc8..61988ffcc4 100644
--- a/lisp/org/ox-odt.el
+++ b/lisp/org/ox-odt.el
@@ -1384,6 +1384,8 @@ original parsed data.  INFO is a plist holding export options."
     ;; create a manifest entry for styles.xml
     (org-odt-create-manifest-file-entry "text/xml" "styles.xml")
 
+    ;; guix store files are ro. This file need to be modified, make it rw
+    (set-file-modes (concat org-odt-zip-dir "styles.xml") #o600)
     ;; FIXME: Who is opening an empty styles.xml before this point?
     (with-current-buffer
 	(find-file-noselect (concat org-odt-zip-dir "styles.xml") t)
-- 
2.24.0


debug log:

solving 0c3c44a2e3 ...
found 0c3c44a2e3 in https://list.orgmode.org/orgmode/87bls9eif6.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me/

applying [1/1] https://list.orgmode.org/orgmode/87bls9eif6.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me/
diff --git a/gnu/packages/patches/emacs-fix-odt-export.patch b/gnu/packages/patches/emacs-fix-odt-export.patch
new file mode 100644
index 0000000000..0c3c44a2e3

1:23: trailing whitespace.
 
1:28: space before tab in indent.
 	(find-file-noselect (concat org-odt-zip-dir "styles.xml") t)
1:29: trailing whitespace.
-- 
Checking patch gnu/packages/patches/emacs-fix-odt-export.patch...
1:31: new blank line at EOF.
+
Applied patch gnu/packages/patches/emacs-fix-odt-export.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 0c3c44a2e37c99b9ee3549f9f8b7b55ca3e70572	gnu/packages/patches/emacs-fix-odt-export.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).