mk: Prevent search local id: db when building manuals

* mk/org-fixup.el (org-make-manual):
(org-make-guide):
(org-make-manuals): Disable local ID db when building Org
documentation.  This makes sure that local IDs on the build machine
can never influence the build process.

Reported-by: Eli Zaretskii <eliz@gnu.org>
Link: https://yhetil.org/emacs-devel/868qzd9hjg.fsf@gnu.org/
This commit is contained in:
Ihor Radchenko 2024-06-14 11:40:20 +02:00
parent d7b5c19daa
commit 13fdbf73ff
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 9 additions and 3 deletions

View File

@ -30,14 +30,18 @@
"Generate the Texinfo file out of the Org manual."
(require 'ox-texinfo)
(find-file "../doc/org-manual.org")
(let ((org-confirm-babel-evaluate nil))
(let ((org-confirm-babel-evaluate nil)
;; We do not want to search local user files when building manuals.
(org-id-track-globally nil))
(org-texinfo-export-to-texinfo)))
(defun org-make-guide ()
"Generate the Texinfo file out of the Org guide."
(require 'ox-texinfo)
(find-file "../doc/org-guide.org")
(let ((org-confirm-babel-evaluate nil))
(let ((org-confirm-babel-evaluate nil)
;; We do not want to search local user files when building manuals.
(org-id-track-globally nil))
(org-texinfo-export-to-texinfo)))
(make-obsolete 'org-make-manuals
@ -48,7 +52,9 @@
(require 'ox-texinfo)
(dolist (manual '("../doc/org-manual.org" "../doc/org-guide.org"))
(find-file manual)
(let ((org-confirm-babel-evaluate nil))
(let ((org-confirm-babel-evaluate nil)
;; We do not want to search local user files when building manuals.
(org-id-track-globally nil))
(org-texinfo-export-to-texinfo))))
(defun org-make-org-version (org-release org-git-version)