GNU bug report logs -
#59726
[PATCH 0/2] gnu: g-wrap: Build with Guile 3.0.
Previous Next
Reported by: Z572 <873216071 <at> qq.com>
Date: Wed, 30 Nov 2022 16:28:01 UTC
Severity: normal
Tags: patch
Done: Z572 <873216071 <at> qq.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59726 in the body.
You can then email your comments to 59726 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#59726
; Package
guix-patches
.
(Wed, 30 Nov 2022 16:28:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Z572 <873216071 <at> qq.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 30 Nov 2022 16:28:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
this patchs make g-wrap build with guile-3.0 and use gexp.
Zheng Junjie (2):
gnu: g-wrap: Build with Guile 3.0.
gnu: g-wrap: Use gexp.
gnu/packages/guile-xyz.scm | 51 ++++++++++++++++++++++++++------------
1 file changed, 35 insertions(+), 16 deletions(-)
base-commit: f0ee77a17ea328e9909570bc72ab1f6bae363dab
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59726
; Package
guix-patches
.
(Wed, 30 Nov 2022 16:30:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 59726 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/guile-xyz.scm (g-wrap): Use gexp.
---
gnu/packages/guile-xyz.scm | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index a0b5964072..5560f3a98d 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -2162,17 +2162,17 @@ (define-public g-wrap
libffi))
(inputs (list libffi indent guile-3.0))
(arguments
- `(#:parallel-build? #f ;not supported
- ;; TODO: compile go files.
- #:make-flags '("GUILE_AUTO_COMPILE=0")
- #:phases (modify-phases %standard-phases
- (add-after 'unpack 'set-indent-program-path
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "g-wrap/util.scm"
- (("indent \\~S")
- (string-append (search-input-file inputs
- "/bin/indent")
- " ~S"))))))))
+ (list #:parallel-build? #f ;not supported
+ ;; TODO: compile go files.
+ #:make-flags #~'("GUILE_AUTO_COMPILE=0")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-indent-program-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "g-wrap/util.scm"
+ (("indent \\~S")
+ (string-append (search-input-file inputs
+ "/bin/indent")
+ " ~S"))))))))
(synopsis "Generate C bindings for Guile")
(description "G-Wrap is a tool and Guile library for generating function
wrappers for inter-language calls. It currently only supports generating Guile
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59726
; Package
guix-patches
.
(Wed, 30 Nov 2022 16:30:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 59726 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/guile-xyz.scm(g-wrap)[source]: Modify configure to add Guile
3.0 support. move Modify configure guilemoduledir to it. dons't use removed
api.
[inputs]: add Guile 3.0, indent.
[native-inputs]: add Guile 3.0.
[propagated-inputs]: add libffi, remove guile-2.2.
[arguments]:
<#:configure-flags>: remove it.
<#:parallel-build?>: set it to #f.
<#:make-flags>: set it to '("GUILE_AUTO_COMPILE=0)".
<#:phases>: add set-indent-program-path phase, remove pre-configure phase.
---
gnu/packages/guile-xyz.scm | 51 ++++++++++++++++++++++++++------------
1 file changed, 35 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index b1620618eb..a0b5964072 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -71,6 +71,7 @@ (define-module (gnu packages guile-xyz)
#:use-module (gnu packages avahi)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
+ #:use-module (gnu packages code)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages databases)
@@ -2135,25 +2136,43 @@ (define-public g-wrap
version ".tar.gz"))
(sha256
(base32
- "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
+ "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; allow guile 3.0
+ (substitute* "configure"
+ (("2\\.2 2\\.0")
+ "3.0 2.2 2.0"))
+ (substitute* (find-files "." "^Makefile.in$")
+ (("guilemoduledir =.*guile/site" all)
+ (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
+ ;; don't use removed api
+ (substitute* "guile/g-wrap/guile-runtime.c"
+ (("scm_class_([a-z]+)" all first)
+ (string-append
+ "scm_c_public_ref(\"oop goops\",\"<"
+ first ">\")"))
+ (("scm_memory_error\\(func_name\\)")
+ "scm_report_out_of_memory()"))))))
(build-system gnu-build-system)
- (native-inputs
- (list pkg-config))
+ (native-inputs (list pkg-config guile-3.0))
(propagated-inputs
- (list guile-2.2 guile-lib))
- (inputs
- (list libffi))
+ (list guile-lib
+ ;; Required by pc file
+ libffi))
+ (inputs (list libffi indent guile-3.0))
(arguments
- `(#:configure-flags '("--disable-Werror")
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'pre-configure
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (substitute* (find-files "." "^Makefile.in$")
- (("guilemoduledir =.*guile/site" all)
- (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
- #t))))))
+ `(#:parallel-build? #f ;not supported
+ ;; TODO: compile go files.
+ #:make-flags '("GUILE_AUTO_COMPILE=0")
+ #:phases (modify-phases %standard-phases
+ (add-after 'unpack 'set-indent-program-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "g-wrap/util.scm"
+ (("indent \\~S")
+ (string-append (search-input-file inputs
+ "/bin/indent")
+ " ~S"))))))))
(synopsis "Generate C bindings for Guile")
(description "G-Wrap is a tool and Guile library for generating function
wrappers for inter-language calls. It currently only supports generating Guile
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59726
; Package
guix-patches
.
(Fri, 02 Dec 2022 22:04:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 59726 <at> debbugs.gnu.org (full text, mbox):
Hi,
Z572 <873216071 <at> qq.com> skribis:
> * gnu/packages/guile-xyz.scm(g-wrap)[source]: Modify configure to add Guile
> 3.0 support. move Modify configure guilemoduledir to it. dons't use removed
> api.
>
> [inputs]: add Guile 3.0, indent.
> [native-inputs]: add Guile 3.0.
> [propagated-inputs]: add libffi, remove guile-2.2.
> [arguments]:
> <#:configure-flags>: remove it.
> <#:parallel-build?>: set it to #f.
> <#:make-flags>: set it to '("GUILE_AUTO_COMPILE=0)".
> <#:phases>: add set-indent-program-path phase, remove pre-configure phase.
G-Wrap has only one user, Guile-GNOME, which is stuck on Guile 2.2.
Thus I think G-Wrap has to remain on 2.2.
Besides, G-Wrap has been unmaintained for some time and there are other,
more convenient ways to write bindings these days. I think we can leave
it as is.
Thoughts?
Ludo’.
Reply sent
to
Z572 <873216071 <at> qq.com>
:
You have taken responsibility.
(Sat, 03 Dec 2022 09:06:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Z572 <873216071 <at> qq.com>
:
bug acknowledged by developer.
(Sat, 03 Dec 2022 09:06:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 59726-done <at> debbugs.gnu.org (full text, mbox):
ok. close.
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi,
>
> Z572 <873216071 <at> qq.com> skribis:
>
>> * gnu/packages/guile-xyz.scm(g-wrap)[source]: Modify configure to add Guile
>> 3.0 support. move Modify configure guilemoduledir to it. dons't use removed
>> api.
>>
>> [inputs]: add Guile 3.0, indent.
>> [native-inputs]: add Guile 3.0.
>> [propagated-inputs]: add libffi, remove guile-2.2.
>> [arguments]:
>> <#:configure-flags>: remove it.
>> <#:parallel-build?>: set it to #f.
>> <#:make-flags>: set it to '("GUILE_AUTO_COMPILE=0)".
>> <#:phases>: add set-indent-program-path phase, remove pre-configure phase.
>
> G-Wrap has only one user, Guile-GNOME, which is stuck on Guile 2.2.
> Thus I think G-Wrap has to remain on 2.2.
>
> Besides, G-Wrap has been unmaintained for some time and there are other,
> more convenient ways to write bindings these days. I think we can leave
> it as is.
>
> Thoughts?
>
> Ludo’.
--
over
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 31 Dec 2022 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.