unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64418] [PATCH 0/1] Common Lisp local-time Postgres extension
@ 2023-07-02 11:58 Roman Scherer
  2023-07-02 12:00 ` [bug#64418] [PATCH 1/1] gnu: Add sbcl-postgres+local-time Roman Scherer
  2023-07-04  9:15 ` bug#64418: [PATCH 0/1] Common Lisp local-time Postgres extension Guillaume Le Vaillant
  0 siblings, 2 replies; 3+ messages in thread
From: Roman Scherer @ 2023-07-02 11:58 UTC (permalink / raw)
  To: 64418; +Cc: Roman Scherer

Hello Guix,

I was trying to use postmodern with the local-time library. This did not work,
because it looks like the extensions is not compiled with the local-rime time
package. When I tried loading the extension, a compilation was triggered but
ultimatly failed because it was trying to write the compiled fasl file into
the Guix store.

Since the local-time package can be used without postgresql, I created a new
package for just the extension and removed the broken system from the
local-time package in order to not add cl-postgres and postmodern to it.

Could you please review this patch?

Thanks, Roman.

Roman Scherer (1):
  gnu: Add sbcl-postgres+local-time.

 gnu/packages/lisp-xyz.scm | 54 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)

--
2.40.1




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

* [bug#64418] [PATCH 1/1] gnu: Add sbcl-postgres+local-time.
  2023-07-02 11:58 [bug#64418] [PATCH 0/1] Common Lisp local-time Postgres extension Roman Scherer
@ 2023-07-02 12:00 ` Roman Scherer
  2023-07-04  9:15 ` bug#64418: [PATCH 0/1] Common Lisp local-time Postgres extension Guillaume Le Vaillant
  1 sibling, 0 replies; 3+ messages in thread
From: Roman Scherer @ 2023-07-02 12:00 UTC (permalink / raw)
  To: 64418; +Cc: Roman Scherer

* gnu/packages/lisp-xyz.scm (sbcl-postgres+local-time): New variable.
---
 gnu/packages/lisp-xyz.scm | 54 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index d578c46b90..bd1efc2b83 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -6875,7 +6875,7 @@ (define-public ecl-cl-isaac
 
 (define-public sbcl-local-time
   (let ((commit "40169fe26d9639f3d9560ec0255789bf00b30036")
-        (revision "3"))
+        (revision "4"))
     (package
      (name "sbcl-local-time")
      (version (git-version "1.0.6" revision commit))
@@ -6889,6 +6889,14 @@ (define-public sbcl-local-time
        (sha256
         (base32 "1dbp33zmkqzzshmf5k76pxqgli285wvy0p0dhcz816fdikpwn2jg"))))
      (build-system asdf-build-system/sbcl)
+     (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           ;; Delete the extension provided by sbcl-cl-postgres+local-time
+           (add-after 'unpack 'delete-local-time
+             (lambda _
+               (delete-file "cl-postgres+local-time.asd")
+               (delete-file "src/integration/cl-postgres.lisp"))))))
      (native-inputs
       (list sbcl-hu.dwim.stefil))
      (home-page "https://common-lisp.net/project/local-time/")
@@ -6905,6 +6913,50 @@ (define-public cl-local-time
 (define-public ecl-local-time
   (sbcl-package->ecl-package sbcl-local-time))
 
+(define-public sbcl-postgres+local-time
+  (let ((commit "40169fe26d9639f3d9560ec0255789bf00b30036")
+        (revision "3"))
+    (package
+      (name "sbcl-postgres+local-time")
+      (version (git-version "1.0.6" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/dlowe-net/local-time")
+               (commit commit)))
+         (file-name (git-file-name "cl-postgres+local-time" version))
+         (sha256
+          (base32 "1dbp33zmkqzzshmf5k76pxqgli285wvy0p0dhcz816fdikpwn2jg"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs (list sbcl-local-time sbcl-postmodern))
+      (native-inputs
+       (list sbcl-hu.dwim.stefil))
+      (arguments
+       `(#:asd-systems '("cl-postgres+local-time")
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'delete-local-time
+             (lambda _
+               (delete-file "local-time.asd")
+               (delete-file "src/package.lisp")
+               (delete-file "src/local-time.lisp")
+               (delete-file-recursively "doc")
+               (delete-file-recursively "test")
+               (delete-file-recursively "zoneinfo"))))))
+      (home-page "https://common-lisp.net/project/local-time/")
+      (synopsis "Integration between cl-postgres and local-time")
+      (description
+       "This package provides the LOCAL-TIME extensions for the cl-postgres
+ASDF system of postmodern.")
+      (license license:expat))))
+
+(define-public cl-postgres+local-time
+  (sbcl-package->cl-source-package sbcl-postgres+local-time))
+
+(define-public ecl-postgres+local-time
+  (sbcl-package->ecl-package sbcl-postgres+local-time))
+
 (define-public sbcl-chronicity
   (package
     (name "sbcl-chronicity")
-- 
2.40.1





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

* bug#64418: [PATCH 0/1] Common Lisp local-time Postgres extension
  2023-07-02 11:58 [bug#64418] [PATCH 0/1] Common Lisp local-time Postgres extension Roman Scherer
  2023-07-02 12:00 ` [bug#64418] [PATCH 1/1] gnu: Add sbcl-postgres+local-time Roman Scherer
@ 2023-07-04  9:15 ` Guillaume Le Vaillant
  1 sibling, 0 replies; 3+ messages in thread
From: Guillaume Le Vaillant @ 2023-07-04  9:15 UTC (permalink / raw)
  To: Roman Scherer; +Cc: 64418-done

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

I modified your patch to make the package definition for
sbcl-cl-postgres+local-time more concise by inheriting from
sbcl-local-time, given that they have the same source repository.

Patch applied as ec2b5784abc18870c3a1031928f86131d78684ae.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

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

end of thread, other threads:[~2023-07-04  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-02 11:58 [bug#64418] [PATCH 0/1] Common Lisp local-time Postgres extension Roman Scherer
2023-07-02 12:00 ` [bug#64418] [PATCH 1/1] gnu: Add sbcl-postgres+local-time Roman Scherer
2023-07-04  9:15 ` bug#64418: [PATCH 0/1] Common Lisp local-time Postgres extension Guillaume Le Vaillant

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).