I just tried to get this building for raspbian (due to our setup I
preffer not to remove stuff from raspbian jessie until/unless it is
removed from debian sid) but even making some pretty horrible hacks I
just hit problem after problem after problem.
My final debdiff is attached . It now fails with
gcc -pthread -I/usr/include/gtk-2.0
-I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/libpng12
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include
-I/usr/include/freetype2 -pthread -I/usr/include/guile/2.0 -std=gnu99
-pthread -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/guile-gnome-2 -I/usr/include/guile/2.0
-I/usr/include/guile-cairo -DDATADIR=\"/usr/share\"
-DBINGWAVE=\"/usr/bin/gwave\" -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -lm -lm -Wl,--as-needed -o gwave cmd.o wavewin.o
draw.o gwave.o event.o gtkmisc.o pixmaps.o wavelist.o dnd.o scwm_guile.o
guile-compat.o init_scheme_string.o wavepanel.o rgeval.o xgserver.o
measurebtn.o GtkTable_indel.o ../spicefile/libspicefile.a -lgtk-x11-2.0
-lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0
-lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0
-lfontconfig -lfreetype -lguile-gnome-gobject-2 -lgobject-2.0
-lglib-2.0 -lgwrap-guile-runtime -lgwrap-core-runtime -lguile-2.0 -lgc
-lffi -lguile-cairo -lcairo -lX11
/usr/bin/ld: scwm_guile.o: undefined reference to symbol 'gh_lookup'
//usr/lib/libguile.so.17: error adding symbols: DSO missing from command
line
It seems pretty clear to me that bringing this package back to life will
require significant effort from someone with a deep understanding of guile.
Also fun it looks like theres a build-dependency loop between this and
guile-gnome-platform, so if this is removed then reintroducing it will
be fun :(
diff -Nru gwave-20090213/debian/changelog gwave-20090213/debian/changelog
--- gwave-20090213/debian/changelog 2014-09-12 07:02:54.000000000 +0000
+++ gwave-20090213/debian/changelog 2014-11-22 22:42:48.000000000 +0000
@@ -1,3 +1,14 @@
+gwave (20090213-5+rpi1) jessie-staging; urgency=medium
+
+ * Add patch from
http://anonscm.debian.org/cgit/pkg-electronics/gwave.git/commit/?id=431d303a7b99472fcc5b4281f48e0c4f6c6c817f
+ to fix include.
+ * Fix more instances of the same include issue
+ * Comment out some broken error handling code.
+ * Force linking with libm to fix missing symbols error
+ * Fix clean target
+
+ -- Peter Michael Green <plugw...@raspbian.org> Sat, 22 Nov 2014 17:05:17
+0000
+
gwave (20090213-5) unstable; urgency=medium
* debian/control:
diff -Nru gwave-20090213/debian/patches/guile2.0.diff
gwave-20090213/debian/patches/guile2.0.diff
--- gwave-20090213/debian/patches/guile2.0.diff 1970-01-01 00:00:00.000000000
+0000
+++ gwave-20090213/debian/patches/guile2.0.diff 2014-11-22 17:45:00.000000000
+0000
@@ -0,0 +1,58 @@
+Description: Update header for Guile 2.0
+Forwarded: https://sourceforge.net/p/gwave/patches/3/attachment/guile2.0.diff
+Author: Ø£ØÙ
د اÙÙ
ØÙ
Ùد٠(Ahmed El-Mahmoudy)
<aelmahmo...@users.sourceforge.net>
+Author: Peter Michael Green <plugw...@debian.org>
+Bug: https://sourceforge.net/p/gwave/patches/3/
+Bug-Debian: http://bugs.debian.org/746003
+
+Index: gwave-20090213/src/scwm_guile.h
+===================================================================
+--- gwave-20090213.orig/src/scwm_guile.h
++++ gwave-20090213/src/scwm_guile.h
+@@ -12,7 +12,7 @@
+ #define SCWM_GUILE_H__
+
+ #include "arg_unused.h"
+-#include <guile/gh.h>
++#include <libguile.h>
+ #include "validate.h"
+ #include <xsnarf.h>
+
+Index: gwave-20090213/src/scwm_guile.c
+===================================================================
+--- gwave-20090213.orig/src/scwm_guile.c
++++ gwave-20090213/src/scwm_guile.c
+@@ -31,7 +31,6 @@
+ #include <limits.h>
+ #include <assert.h>
+
+-#include <guile/gh.h>
+ #include <libguile.h>
+ #include <libguile/fluids.h>
+
+Index: gwave-20090213/src/guile-compat.c
+===================================================================
+--- gwave-20090213.orig/src/guile-compat.c
++++ gwave-20090213/src/guile-compat.c
+@@ -24,7 +24,7 @@
+ #include <config.h>
+ #endif
+ #include <string.h>
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ #include "guile-compat.h"
+
+Index: gwave-20090213/src/rgeval.c
+===================================================================
+--- gwave-20090213.orig/src/rgeval.c
++++ gwave-20090213/src/rgeval.c
+@@ -8,7 +8,7 @@
+ */
+ #include <stdio.h>
+ #include <string.h>
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
diff -Nru gwave-20090213/debian/patches/remove-broken-error-handling.diff
gwave-20090213/debian/patches/remove-broken-error-handling.diff
--- gwave-20090213/debian/patches/remove-broken-error-handling.diff
1970-01-01 00:00:00.000000000 +0000
+++ gwave-20090213/debian/patches/remove-broken-error-handling.diff
2014-11-22 17:27:12.000000000 +0000
@@ -0,0 +1,64 @@
+Description: <short summary of the patch>
+ remove broken error handling code with 15 year old fixmes,
+ not ideal but I need this to build.
+Author: Peter Michael Green <plugw...@raspbian.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+Index: gwave-20090213/src/scwm_guile.c
+===================================================================
+--- gwave-20090213.orig/src/scwm_guile.c
++++ gwave-20090213/src/scwm_guile.c
+@@ -328,27 +328,27 @@ scwm_handle_error (void *ARG_IGNORE(data
+ now? */
+ if (scm_ilength (throw_args) >= 3)
+ {
+- SCM fl;
+- fl = SCM_VARIABLE_REF (scm_the_last_stack_fluid_var);
++ //SCM fl;
++ //fl = SCM_VARIABLE_REF (scm_the_last_stack_fluid_var);
+
+ /* GJB:FIXME:MS: This is a horrible hack,
+ but DEREF_LAST_STACK macro was throwing a wrong type
+ argument at weird times, and I'm trying to avoid
+ a crash when I demo to RMS tomorrow, hence this
+ ugly hack --04/27/99 gjb */
+- if (SCM_NIMP (fl) && SCM_FLUIDP (fl)) {
+- SCM stack = DEREF_LAST_STACK;
+- SCM subr = SCM_CAR (throw_args);
+- SCM message = SCM_CADR (throw_args);
+- SCM args = SCM_CADDR (throw_args);
+-
+- scm_newline(port);
+- scm_display_backtrace (stack, port, SCM_UNDEFINED, SCM_UNDEFINED);
+- scm_newline(port);
+- scm_display_error (stack, port, subr, message, args, SCM_EOL);
+- } else {
++ //if (SCM_NIMP (fl) && SCM_FLUIDP (fl)) {
++ //SCM stack = DEREF_LAST_STACK;
++ //SCM subr = SCM_CAR (throw_args);
++ //SCM message = SCM_CADR (throw_args);
++ //SCM args = SCM_CADDR (throw_args);
++ //
++ //scm_newline(port);
++ //scm_display_backtrace (stack, port, SCM_UNDEFINED, SCM_UNDEFINED);
++ //scm_newline(port);
++ //scm_display_error (stack, port, subr, message, args, SCM_EOL);
++ //} else {
+ /* scwm_msg(ERR,"scwm_handle_error","scm_the_last_stack_fluid not
holding a fluid!"); */
+- }
++ //}
+ }
+ else
+ {
diff -Nru gwave-20090213/debian/patches/series
gwave-20090213/debian/patches/series
--- gwave-20090213/debian/patches/series 2014-09-12 07:02:54.000000000
+0000
+++ gwave-20090213/debian/patches/series 2014-11-22 17:26:36.000000000
+0000
@@ -1,3 +1,5 @@
01-fix_ascii_import_locale.diff
fix_indirect_linking.diff
fix_as-needed_linking.diff
+guile2.0.diff
+remove-broken-error-handling.diff
diff -Nru gwave-20090213/debian/rules gwave-20090213/debian/rules
--- gwave-20090213/debian/rules 2014-09-12 07:02:54.000000000 +0000
+++ gwave-20090213/debian/rules 2014-11-22 22:43:06.000000000 +0000
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+export LDFLAGS += -lm
+
%:
dh $@
@@ -8,3 +10,6 @@
override_dh_compress:
dh_compress --exclude=examples
+
+override_dh_auto_clean:
+ rm -f config.log