GNU bug report logs -
#76863
[PATCH] gnu: guile-libyaml: Improve packaging.
Previous Next
To reply to this bug, email your comments to 76863 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#76863
; Package
guix-patches
.
(Sat, 08 Mar 2025 11:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Evgeny Pisemsky <mail <at> pisemsky.site>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 08 Mar 2025 11:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/guile-xyz.scm (guile-libyaml): Run guix style.
[version]: Specify semantic version.
[source]: Use version tag, add deletion snippet.
[build-system]: Use guile-build-system.
[arguments]: Use gexps, clean up phases, disable auto compile.
[native-inputs]: Add gcc, guile-3.0, nyacc.
[inputs]: Remove guile-3.0.
Change-Id: Id064f0cde60606a8f2bad8c903e840a9fa50376d
---
gnu/packages/guile-xyz.scm | 88 ++++++++++++++++----------------------
1 file changed, 37 insertions(+), 51 deletions(-)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index e220f897ad..cc74591604 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -88,6 +88,7 @@ (define-module (gnu packages guile-xyz)
#:use-module (gnu packages emacs)
#:use-module (gnu packages emacs-xyz)
#:use-module (gnu packages gawk)
+ #:use-module (gnu packages gcc)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
@@ -6218,57 +6219,42 @@ (define-public guile-drmaa
(license license:gpl3+)))
(define-public guile-libyaml
- (let ((commit "2bdacb72a65ab63264b2edc9dac9692df7ec9b3e")
- (revision "2"))
- (package
- (name "guile-libyaml")
- (version (git-version "0" revision commit))
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/mwette/guile-libyaml")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1bssby1ri1vjll2rvi8b33xr2ghwjyxsd4yc15najj3h8n2ss87i"))))
- (build-system gnu-build-system)
- (arguments
- `(#:modules (((guix build guile-build-system)
- #:prefix guile:)
- ,@%default-gnu-modules)
- #:imported-modules ((guix build guile-build-system)
- ,@%default-gnu-imported-modules)
- #:tests? #false ; there are none
- #:phases
- (modify-phases %standard-phases
- (delete 'configure)
- (add-after 'unpack 'remove-unused-files
- (lambda* (#:key inputs #:allow-other-keys)
- (for-each delete-file '("guix.scm" "demo1.yml" "demo1.scm"))))
- (add-before 'build 'build-ffi
- (lambda* (#:key inputs #:allow-other-keys)
- (invoke "guild" "compile-ffi"
- "--no-exec" ; allow us to patch the generated file
- "yaml/libyaml.ffi")
- (substitute* "yaml/libyaml.scm"
- (("dynamic-link \"libyaml\"")
- (format #false "dynamic-link \"~a/lib/libyaml\""
- (assoc-ref inputs "libyaml"))))))
- (replace 'build
- (assoc-ref guile:%standard-phases 'build))
- (delete 'install))))
- (inputs
- (list guile-3.0 libyaml))
- (propagated-inputs
- (list guile-bytestructures nyacc))
- (home-page "https://github.com/mwette/guile-libyaml")
- (synopsis "Guile wrapper for libyaml")
- (description
- "This package provides a simple yaml module for Guile using the
-ffi-helper from nyacc.")
- (license license:lgpl3+))))
+ (package
+ (name "guile-libyaml")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mwette/guile-libyaml")
+ (commit (string-append "V" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bssby1ri1vjll2rvi8b33xr2ghwjyxsd4yc15najj3h8n2ss87i"))
+ (snippet #~(for-each delete-file
+ '("guix.scm" "demo1.yml" "demo1.scm")))))
+ (build-system guile-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'build-ffi
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "GUILE_AUTO_COMPILE" "0")
+ (invoke "guild" "compile-ffi" "--no-exec" "yaml/libyaml.ffi")
+ (substitute* "yaml/libyaml.scm"
+ (("dynamic-link \"libyaml\"")
+ (format #f "dynamic-link \"~a/lib/libyaml\""
+ (assoc-ref inputs "libyaml")))))))))
+ (native-inputs (list gcc guile-3.0 nyacc))
+ (inputs (list libyaml))
+ (propagated-inputs (list guile-bytestructures nyacc))
+ (home-page "https://github.com/mwette/guile-libyaml")
+ (synopsis "Guile wrapper for libyaml")
+ (description
+ "This package provides a simple yaml module for Guile using the ffi-helper from
+nyacc.")
+ (license license:lgpl3+)))
(define-public schmutz
(let ((commit "f8043e6c258d2e29d153bc37cb17b130fee0579f")
base-commit: 42bc94adbd1114771ef14a8e19563829ae355e87
--
2.48.1
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Sun, 09 Mar 2025 21:37:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Evgeny Pisemsky <mail <at> pisemsky.site>
:
bug acknowledged by developer.
(Sun, 09 Mar 2025 21:37:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 76863-done <at> debbugs.gnu.org (full text, mbox):
Evgeny Pisemsky <mail <at> pisemsky.site> skribis:
> * gnu/packages/guile-xyz.scm (guile-libyaml): Run guix style.
> [version]: Specify semantic version.
> [source]: Use version tag, add deletion snippet.
> [build-system]: Use guile-build-system.
> [arguments]: Use gexps, clean up phases, disable auto compile.
> [native-inputs]: Add gcc, guile-3.0, nyacc.
> [inputs]: Remove guile-3.0.
>
> Change-Id: Id064f0cde60606a8f2bad8c903e840a9fa50376d
Applied, thanks!
This bug report was last modified 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.