tags 523597 +patch
thanks

patch is attatched
diff -ur rss-glx-0.8.2/debian/rules rss-glx-0.8.2.new/debian/rules
--- rss-glx-0.8.2/debian/rules	2009-04-12 00:27:28.000000000 +0100
+++ rss-glx-0.8.2.new/debian/rules	2009-04-12 00:36:04.000000000 +0100
@@ -20,7 +20,20 @@
 	CFLAGS += -O2
 endif
 
-config.status: configure
+config.h.in.orig:
+	#backup the original config.h.in out of the way so we can put it back
+	#at the end.
+	cp config.h.in config.h.in.orig
+
+config.status: configure config.h.in.orig
+	#set the config.sub and config.guess symlinks to something that actually
+	#exists
+	rm -f config.sub config.guess
+	ln -s /usr/share/misc/config.sub config.sub
+	ln -s /usr/share/misc/config.guess config.guess
+	#put a libtool symlink in the build tree since configure seems to need it
+	ln -s /usr/bin/libtool libtool
+	
 	dh_testdir
 	# Add here commands to configure the package.
 	./configure --with-configdir=/usr/share/xscreensaver/config \
@@ -44,6 +57,15 @@
 	touch build-stamp
 
 clean:
+	#set the config.sub and config.guess symlinks the way they are in the 
+	#upstream tarball to allow dpkg-source to work
+	rm -f config.sub config.guess
+	ln -s /usr/share/libtool/config.sub config.sub
+	ln -s /usr/share/libtool/config.guess config.guess
+
+	#restore config.h.in
+	[ ! -f config.h.in.orig ] || mv config.h.in.orig config.h.in
+
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp 
@@ -56,7 +78,7 @@
 #ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 #	cp -f /usr/share/misc/config.guess config.guess
 #endif
-
+	rm -f libtool
 
 	dh_clean
 

Reply via email to