emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64146: closed ([PATCH] gnu: recutils: Symlink bash loadables.)


From: GNU bug Tracking System
Subject: bug#64146: closed ([PATCH] gnu: recutils: Symlink bash loadables.)
Date: Sun, 25 Jun 2023 12:44:02 +0000

Your message dated Sun, 25 Jun 2023 14:43:37 +0200
with message-id <57423781291a74c109071f9a5b30ff5113f8bd6b.camel@gmail.com>
and subject line Re: [PATCH] gnu: recutils: Symlink bash loadables.
has caused the debbugs.gnu.org bug report #64146,
regarding [PATCH] gnu: recutils: Symlink bash loadables.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
64146: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64146
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: recutils: Symlink bash loadables. Date: Sun, 18 Jun 2023 09:20:22 +0200
This makes it so that the "enable" builtin finds readrec and testrec without
having to supply the full store path.

* gnu/packages/databases.scm (recutils)[#:phases]: Add
‘symlink-bash-loadables’.
---
 gnu/packages/databases.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 9928ede40e..36d4b65039 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1559,7 +1559,22 @@ (define-public recutils
            #~(list "--disable-static"
                    (string-append "--with-bash-headers="
                                   (search-input-directory %build-inputs
-                                                          "include/bash")))))
+                                                          "include/bash")))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'install 'symlink-bash-loadables
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (with-directory-excursion (string-append
+                                              (assoc-ref outputs "out")
+                                              "/lib")
+                     (mkdir "bash")
+                     (for-each
+                      (compose symlink
+                               (lambda (loadable)
+                                 (values
+                                  (string-append (getcwd) "/" loadable ".so")
+                                  (string-append "bash/" loadable))))
+                      '("readrec" "testrec"))))))))
     (native-inputs
      (list bc check-0.14 pkg-config))
     (inputs

base-commit: e4087930f3ad60918689be5f4bca4ce3e22429f5
-- 
2.40.1




--- End Message ---
--- Begin Message --- Subject: Re: [PATCH] gnu: recutils: Symlink bash loadables. Date: Sun, 25 Jun 2023 14:43:37 +0200 User-agent: Evolution 3.46.4
Am Sonntag, dem 18.06.2023 um 09:20 +0200 schrieb Liliana Marie
Prikler:
> This makes it so that the "enable" builtin finds readrec and testrec
> without having to supply the full store path.
> 
> * gnu/packages/databases.scm (recutils)[#:phases]: Add
> ‘symlink-bash-loadables’.
Aaaand it's pushed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]