Subject: [bug#48205] [PATCH] gnu: emacs-org: Preserve version information

From: [email-masked]
Date: Thu, 2 Dec 2021 12:38:02 -0500

From: Morgan Smith <[email-masked]>

* gnu/packages/emacs-xyz.scm (emacs-org)[#:phases]: Prevent install phase from
deleting the version information
---

Fixed it!

 gnu/packages/emacs-xyz.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1d4c682482..9ced8198c7 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -12463,6 +12463,10 @@ (define-public emacs-org
                (("^lispdir.*")
                 (string-append "lispdir = "
                                (elpa-directory (assoc-ref outputs "out")))))
+             ;; The dependent targets for install perform cleanup that
+             ;; partially undoes our make phase
+             (substitute* "lisp/Makefile"
+               (("^install:.*") "install:\n"))
              (invoke "make" "install")))
          (add-after 'unpack 'fix-tests
            (lambda* (#:key inputs #:allow-other-keys)
-- 
2.34.0