Package: gauche-gtk
Version: 0.4.1-13
Severity: serious
Tags: experimental patch
Justification: fails to build from source (but built successfully in the past)

It appears that if built against gdk-pixbuf as it is in experimental
(basically with gdk-pixbuf headers separate from the gtk2.0 files),
gauche-gtk does not complete build as it fails to analyze headers.

Passing on the patch that was applied on Ubuntu to fix the problem, since
you may want to apply it once past the current release cycle.

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 
'maverick')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-22-generic (SMP w/4 CPU cores)
Locale: LANG=fr_CA.utf8, LC_CTYPE=fr_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- Begin Message ---
Index: gauche-gtk-0.4.1/src/h2stub.scm
===================================================================
--- gauche-gtk-0.4.1.orig/src/h2stub.scm        2010-10-04 16:48:03.671800269 
-0400
+++ gauche-gtk-0.4.1/src/h2stub.scm     2010-10-04 16:49:16.551800273 -0400
@@ -33,6 +33,7 @@
 
 ;; Gtk and Pango version (major.minor) we're dealing with
 (define gtk-version   (make-parameter "2.0"))
+(define gdk-pixbuf-version   (make-parameter "2.0"))
 (define pango-version (make-parameter "1.0"))
 
 ;; Directories to search input header files.
@@ -44,6 +45,9 @@
                #`"pkg-config --variable=includedir gtk+-,(gtk-version)"
              (cut port->string-list <>))
            (call-with-input-process
+               #`"pkg-config --variable=includedir 
gdk-pixbuf-,(gdk-pixbuf-version)"
+             (cut port->string-list <>))
+           (call-with-input-process
                #`"pkg-config --variable=includedir pango"
              (cut port->string-list <>))
            '("/usr/include" "/usr/local/include"))
@@ -60,6 +64,9 @@
 (define gtk-directory
   (make-parameter (find-header-dir #`"gtk-,(gtk-version)/gtk/gtk.h"
                                    *header-search-paths* )))
+(define gdk-pixbuf-directory
+  (make-parameter (find-header-dir 
#`"gdk-pixbuf-,(gdk-pixbuf-version)/gdk-pixbuf/gdk-pixbuf.h"
+                                   *header-search-paths* )))
 (define pango-directory
   (make-parameter (find-header-dir #`"pango-,(pango-version)/pango/pango.h"
                                    *header-search-paths*)))
@@ -1283,7 +1290,7 @@
                  (call-with-input-file "GDKFILES" port->string-list)))
 
 (define (parse-gdk-pixbuf)
-  (parse-headers #`",(gtk-directory)/gdk-pixbuf"
+  (parse-headers #`",(gdk-pixbuf-directory)/gdk-pixbuf"
                  (call-with-input-file "GDKPIXBUFFILES" port->string-list)))
 
 (define (parse-gtk)

--- End Message ---

Reply via email to