The issue mentioned in the bug report was easy enough to fix, just a
matter of changing the version specified to configure in debian/rules .
Unfortunately after doing that the build failed in a different error.
cp: cannot stat
`./debian/tmp/usr/lib/epiphany-browser/2.29/extensions/': No such file
or directory
dh_install: cp -a ./debian/tmp/usr/lib/epiphany-browser/2.29/extensions/
debian/epiphany-extension-gwget//usr/lib/epiphany-browser/2.29/ returned
exit code 1
make: *** [binary-install/epiphany-extension-gwget] Error 2
That was solved with a small modification to configure.ac . Some build
system changes were made so that the autotools stuff is now generated as
part of the build processes and removed in clean.
The attatched patch makes the aforementioned changes to the package
diff -urN gwget2-1.0.4/debian/patches/fix_epiphany_2.29.patch gwget2-1.0.4.new/debian/patches/fix_epiphany_2.29.patch
--- gwget2-1.0.4/debian/patches/fix_epiphany_2.29.patch 1970-01-01 00:00:00.000000000 +0000
+++ gwget2-1.0.4.new/debian/patches/fix_epiphany_2.29.patch 2010-01-15 23:38:05.000000000 +0000
@@ -0,0 +1,15 @@
+Index: gwget2-1.0.4/configure.ac
+===================================================================
+--- gwget2-1.0.4.orig/configure.ac 2010-01-15 23:36:04.000000000 +0000
++++ gwget2-1.0.4/configure.ac 2010-01-15 23:37:25.000000000 +0000
+@@ -229,6 +229,10 @@
+ EPIPHANY_PKGCONFIG=epiphany-2.28
+ EPIPHANY_REQUIRED=2.28
+ EPIPHANY_SHORTVER=228
++elif test "x$EPHY_VER" = "x2.29"; then
++ EPIPHANY_PKGCONFIG=epiphany-2.29
++ EPIPHANY_REQUIRED=2.29
++ EPIPHANY_SHORTVER=229
+ else
+ AC_MSG_RESULT([no epiphany installed])
+ fi
diff -urN gwget2-1.0.4/debian/patches/series gwget2-1.0.4.new/debian/patches/series
--- gwget2-1.0.4/debian/patches/series 2010-01-15 23:44:26.000000000 +0000
+++ gwget2-1.0.4.new/debian/patches/series 2010-01-15 23:35:59.000000000 +0000
@@ -1 +1,2 @@
fix_glib_error_reporting.patch
+fix_epiphany_2.29.patch
diff -urN gwget2-1.0.4/debian/rules gwget2-1.0.4.new/debian/rules
--- gwget2-1.0.4/debian/rules 2010-01-15 23:44:26.000000000 +0000
+++ gwget2-1.0.4.new/debian/rules 2010-01-16 00:12:18.000000000 +0000
@@ -2,12 +2,32 @@
include /usr/share/cdbs/1/rules/debhelper.mk
+#run autoreconf to generate configure stuff
+makebuilddir::
+ aclocal
+ libtoolize
+ autoconf
+ autoheader
+ automake
+
+
# Workaround which runs ``make distclean'' before unapplying patches
cleanbuilddir::
# Invoke distclean
-$(DEB_MAKE_INVOKE) -k distclean
rm -f data/GNOME_Gwget.server.in data/GNOME_Gwget.server \
data/gwget.schemas
+ # cleanup generated autoconf files (now we want them regenerated)
+ rm -f config.h.in
+ rm -f configure
+ rm -f libtool
+ rm -f ltmain.sh
+ rm -f aclocal.m4
+ rm -f data/Makefile.in
+ rm -f epiphany-extension/Makefile.in
+ rm -f Makefile.in
+ rm -f pixmaps/Makefile.in
+ rm -f src/Makefile.in
LDFLAGS := -Wl,--as-needed
@@ -21,7 +41,7 @@
DEB_MAKE_CLEAN_TARGET :=
DEB_CONFIGURE_EXTRA_FLAGS += --enable-epiphany-extension \
- --with-epiphany-version=2.28 --disable-static
+ --with-epiphany-version=2.29 --disable-static
binary-post-install/epiphany-extension-gwget::
rm -f debian/epiphany-extension-gwget/usr/lib/epiphany-*/*/*/*.la