David Pirotte | 21 Jul 02:36 2015

G-Wrap 1.9.15 released


We are pleased to announce G-Wrap 1.9.15, the next maintenance release
for the 1.9 series.

G-Wrap Homepage: 


G-Wrap 1.9.15 release tarball GPG signature [*]:


About G-Wrap:

        G-Wrap is a tool (and Guile library) for generating function wrappers for
        inter-language calls. It currently only supports generating Guile wrappers
        for C functions.

Changes since 1.9.14:

        -] G-Wrap now requires Guile 2.0, allows Guile 2.2;
        -] Requires autoconf >= 2.61, automake >= 1.12, adding /build-aux
        -] We no longer update Changelog, see G-Wrap's git logs instead
        -] No free/mark on WCT objects, and remove use of scm_gc_free
        -] Use scm_module_variable instead of the deprecated scm_sym2var
        -] The documentation has been restructured, updated and fixed to work with
            texinfo >= 5.2; Removing doc/version.texi - it is generated/updated

(Continue reading)

David Pirotte | 22 Sep 07:23 2014

g-wrap: devel branch added, 2 patches puched


I created a devel branch and pushed a very slightly modified [white spaces, empty
line before EOF] version of the 2 previously sent manual pages patches [attached].

Within the next few days, hopefully, I'll have uploaded this new version of the
manual on g-wrap's web site, will report when done.

g-wrap-dev mailing list
g-wrap-dev <at> nongnu.org
David Pirotte | 23 Jun 21:51 2014

Re: g-wrap: reference manual updated

Hello Ludovic,

> Congrats for all this work.  ;-)

Thanks.  This manual still need a review, related to garbage collection [and
smob maybe?]: all occurrences in this manual still refer to the previous garbage

> I think this should go to G-Wrap’s mailing list:
>   https://lists.nongnu.org/mailman/listinfo/g-wrap-dev


> And I think you should ask for commit access for Guile-GNOME & co.

I have write access to guile-gnome[clutter] already, thanks, and sent a [pending]
request for guile-cairo.  I don't pretend to work on guile-cairo right now, it's
fine as it is [we bind 1.10.2] and cairo 1.12.x does not bring anything reaaaaallly

I am almost done with the actual binding for guile-gnome: this is _not_ an update of
the bindings per se: the idea is [while learning] to release a guile-gnome
[platform] 2.16.3 version which strictly depends on guile 2, fixing tips and bits
and if possible getting rid of all [or almost all] warnings  <at>  compile time [because
it scares end users :)].  Then as time allows _and_ as requested along the way by
guile-clutter binding updates, I'd like to slowly update guile-gnome glib and gobject
bindings [from 2.16 to 2.40 for glib...]

I am almost done with guile-clutter 1.12.2, but has you all know by now, I still
have to properly understand a couple of things related to g-wrap... hence this
(Continue reading)

David Pirotte | 23 Jun 21:08 2014

g-wrap: reference manual updated


	  master: reference manual updated

it all started because I wanted to get acces to modern procedure and type/class
indexes, as produced by texinfo 5.2.  then I realized that, appart from having to
solve raised bugs compiling with texinfo 5.2, it really could live with a serious
lifting :).  I did my best to improve the presentation and access to the great
material the previous g-wrap manual already had, mainly by restructuring it: it is
now almost identical, in structure, to the guile reference manual.

i would be happy to push this patch and also do the house keeping of the website so
that online html manual pages are actualized, if it's fine, give me write access
[savannah group request pending already].

of course review and comments are welcome.

Happu hacking,
g-wrap-dev mailing list
g-wrap-dev <at> nongnu.org
Noah Lavine | 13 Jan 18:51 2013

Build Issue with Latest Git Guile


I just tried to build g-wrap with the latest development guile, and got a build error. It seems that scm_sym2var and scm_module_lookup_closure (used on line 346 of guile-runtime.c in g-wrap 1.9.14) will be gone in guile 2.2.

I would be more than happy to write a patch that replaces these with equivalent calls, but I don't know how to modify the build system to make it detect guile 2.2. If someone could tell me how to do that, I would be glad to do the rest. (I'm not sure it's necessary to detect 2.2., but it might be if we need to have different versions of the code that apply in different guile versions.)

Noah Lavine

g-wrap-dev mailing list
g-wrap-dev <at> nongnu.org
Dale Smith | 11 Jul 00:48 2012

Guile 2.0.6

Howdy g-wrappers,

G-wrap doesn't like the new Guile 2.0.6 as scm_sym2var and
scm_module_lookup_closure are now deprecated.  And since the default
is to compile with -Werror, that ends in a failed build.  Configuring
with --disable-Werror seems to work fine.

Here is an attempt to use a the newer non-deprecated replacements.

diff --git a/guile/g-wrap/guile-compatibility.c
index 8be423e..cc1fc2f 100644
--- a/guile/g-wrap/guile-compatibility.c
+++ b/guile/g-wrap/guile-compatibility.c
 <at>  <at>  -92,4 +92,10  <at>  <at>  scm_without_guile (void*(*func)(void*), void *data)
     return func(data);

+SCM scm_module_variable (SCM module, SCM sym)
+  return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
diff --git a/guile/g-wrap/guile-compatibility.h
index c875e98..5ccacdf 100644
--- a/guile/g-wrap/guile-compatibility.h
+++ b/guile/g-wrap/guile-compatibility.h
 <at>  <at>  -127,6 +127,9  <at>  <at>  size_t  scm_to_locale_stringbuf (SCM str, char
*buf, size_t buf_size);
 /* Threads. */
 void *scm_without_guile (void*(*func)(void*), void *data);

+/* Modules. */
+SCM scm_module_variable (SCM module, SCM sym);
 #else /* SCM_VERSION_17X */

diff --git a/guile/g-wrap/guile-runtime.c b/guile/g-wrap/guile-runtime.c
index a1a4f79..d04e17e 100644
--- a/guile/g-wrap/guile-runtime.c
+++ b/guile/g-wrap/guile-runtime.c
 <at>  <at>  -343,7 +343,7  <at>  <at>  allocate_generic_variable (SCM module, SCM sym)

   for (uses=SCM_MODULE_USES(module); !scm_is_null (uses); uses=scm_cdr(uses)) {
     used = scm_car (uses);
-    var = scm_sym2var (sym, scm_module_lookup_closure (used), SCM_BOOL_F);
+    var = scm_module_variable (used, sym);
     if (!scm_is_false (var))
Greg Troxel | 24 May 01:18 2012

bad link on g-wrap home page



there is a link to

g-wrap-dev mailing list
g-wrap-dev <at> nongnu.org
Greg Troxel | 24 May 01:14 2012

g-wrap and -j4

I was rebuilding packages (NetBSD, pkgsrc), and on building g-wrap
1.9.14 (with guile 1.8.8) got a mysterious error with an obviously
malformed standard.c.   By default I was using -j4.  After disabling
parallel make, g-wrap built fine.

So my question is whether g-wrap is thought to build ok with -j4?

I have marked the pkgsrc package as not safe for parallel builds, so
this is not a big deal, but it seems like a bug.

g-wrap-dev mailing list
g-wrap-dev <at> nongnu.org
Greg Troxel | 6 Dec 17:37 2011

[David Holland] Re: CVS commit: pkgsrc/devel/g-wrap

I updated g-wrap in pkgsrc to 1.9.14, and while it compiled fine on
NetBSD 5.1-stable, i386, gcc 4.1.3, it failed on NetBSD-current on gcc

Is g-wrap thought to be ok with gcc 4.5?

From: David Holland <dholland-pkgchanges <at> netbsd.org>
Subject: Re: CVS commit: pkgsrc/devel/g-wrap
Date: 2011-12-06 04:26:06 GMT
On Mon, Dec 05, 2011 at 03:34:10AM +0000, Greg Troxel wrote:
 > Modified Files:
 > 	pkgsrc/devel/g-wrap: Makefile PLIST distinfo
 > Removed Files:
 > 	pkgsrc/devel/g-wrap/patches: patch-aa
 > Log Message:
 > Update to 1.9.14.


standard.c:470:45: error: expected ')' before '(' token
standard.c:475:1: error: expected identifier or '(' before 'else'
standard.c:480:3: error: expected identifier or '(' before 'else'
standard.c:483:1: error: expected identifier or '(' before '}' token


David A. Holland
dholland <at> netbsd.org

g-wrap-dev mailing list
g-wrap-dev <at> nongnu.org
Andreas Rottmann | 5 Dec 02:22 2011

G-Wrap 1.9.14 released


I'm pleased to announce G-Wrap 1.9.14; as always, it can be downloaded
from <http://www.nongnu.org/g-wrap/>.

This release adds support for the Guile 2.0.x branch, while staying
compatible with 1.8.x.

About G-Wrap:

  G-Wrap is a tool (and Guile library) for generating function wrappers
  for inter-language calls. It currently only supports generating Guile
  wrappers for C functions.

Changes since 1.9.13:

    - Guile 2.0 is now supported.

    - G-Wrap no longer ships SRFI 34 and SRFI 35 implementations, as
      these have been both provided by Guile since 1.8.3.

Regards, Rotty

Andreas Rottmann -- <http://rotty.yi.org/>
Andy Wingo | 23 Nov 22:24 2011

g-wrap release?

Hi Andreas,

With the patch I just pushed to g-wrap, the test suites pass again on
Guile 2.0.  How about a release?  :-)