File devscripts-2.10.71-buildfix.patch of Package deb

Index: devscripts-2.10.71/Makefile
===================================================================
--- devscripts-2.10.71/Makefile.orig	2011-02-19 17:23:31.000000000 +0100
+++ devscripts-2.10.71/Makefile	2011-03-16 09:44:19.053846035 +0100
@@ -7,7 +7,7 @@
 PERL_MODULES = Devscripts
 EXAMPLES = conf.default
 
-all: version make_scripts $(EXAMPLES) translated_manpages
+all: version scripts $(EXAMPLES)
 
 version:
 	rm -f version
Index: devscripts-2.10.71/scripts/Makefile
===================================================================
--- devscripts-2.10.71/scripts/Makefile.orig	2011-02-19 17:23:31.000000000 +0100
+++ devscripts-2.10.71/scripts/Makefile	2011-03-16 13:25:20.346241960 +0100
@@ -19,7 +19,7 @@
 LIBDIR = /usr/lib/devscripts
 BIN_LIBDIR = /usr/lib/devscripts
 
-all: $(SCRIPTS) $(GEN_MAN1S) $(LIBS) $(CWRAPPERS) $(COMPLETION)
+all: $(SCRIPTS) $(GEN_MAN1S) $(LIBS) $(CWRAPPERS)
 
 $(VERSION_FILE):
 	@echo "You need to 'make' the toplevel directory first"
@@ -29,10 +29,8 @@
 
 %.tmp: %.sh $(VERSION_FILE)
 	sed -e "s/###VERSION###/$(VERSION)/" $<  > $@
-	bash -n $@
 %.tmp: %.pl $(VERSION_FILE)
 	sed -e "s/###VERSION###/$(VERSION)/" $<  > $@
-	perl -I.. -c $@
 %: %.tmp
 	cp $< $@
 	chmod +x $@
@@ -42,7 +40,7 @@
 	pod2man --utf8 --center=" " --release="Debian Utilities" $< > $@
 %.1: %.dbk
 	xsltproc --nonet -o $@ \
-	  /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+	  /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl $<
 
 # There is a slight chance this gets called twice, once here from here and once
 # from ../po4a/Makefile. Treat files with care.
@@ -66,10 +64,12 @@
 		libvfork.o libvfork.so.0 $(COMPLETION)
 
 install: all
+	mkdir -p $(DESTDIR)$(BINDIR)
+	mkdir -p $(DESTDIR)$(LIBDIR)
 	cp $(SCRIPTS) $(DESTDIR)$(BINDIR)
 	cp $(LIBS) $(DESTDIR)$(LIBDIR)
-	cp $(COMPLETION) $(DESTDIR)/etc/bash_completion.d
 	# Special treatment for debpkg
+	mkdir -p $(DESTDIR)$(PERLMOD_DIR)
 	mv $(DESTDIR)$(BINDIR)/debpkg $(DESTDIR)$(PERLMOD_DIR)
 	cp debpkg-wrapper $(DESTDIR)$(BINDIR)/debpkg
 
Index: devscripts-2.10.71/po4a/Makefile
===================================================================
--- devscripts-2.10.71/po4a/Makefile.orig	2011-02-19 17:23:31.000000000 +0100
+++ devscripts-2.10.71/po4a/Makefile	2011-03-16 13:24:55.491265642 +0100
@@ -23,7 +23,7 @@
 	pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@
 fr/%.fr.1: fr/%.fr.dbk translate
 	xsltproc --nonet -o $@ \
-	  /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+	  /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl $<
 # xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have
 # to rename the file after it's generated
 	mv fr/$*.1 $@
openSUSE Build Service is sponsored by