unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64146] [PATCH] gnu: recutils: Symlink bash loadables.
@ 2023-06-18  7:20 Liliana Marie Prikler
  2023-06-25 12:43 ` bug#64146: " Liliana Marie Prikler
  0 siblings, 1 reply; 2+ messages in thread
From: Liliana Marie Prikler @ 2023-06-18  7:20 UTC (permalink / raw)
  To: 64146; +Cc: Tobias Geerinckx-Rice, Maxime Devos

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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#64146: [PATCH] gnu: recutils: Symlink bash loadables.
  2023-06-18  7:20 [bug#64146] [PATCH] gnu: recutils: Symlink bash loadables Liliana Marie Prikler
@ 2023-06-25 12:43 ` Liliana Marie Prikler
  0 siblings, 0 replies; 2+ messages in thread
From: Liliana Marie Prikler @ 2023-06-25 12:43 UTC (permalink / raw)
  To: 64146-done; +Cc: Tobias Geerinckx-Rice, Maxime Devos

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-25 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-18  7:20 [bug#64146] [PATCH] gnu: recutils: Symlink bash loadables Liliana Marie Prikler
2023-06-25 12:43 ` bug#64146: " Liliana Marie Prikler

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

	https://git.savannah.gnu.org/cgit/guix.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).