File devscripts-2.11.7-buildfix.patch of Package deb
diff -urN devscripts-2.11.7.orig/Makefile devscripts-2.11.7/Makefile
--- devscripts-2.11.7.orig/Makefile 2012-05-21 11:36:59.800426916 +0800
+++ devscripts-2.11.7/Makefile 2012-05-21 11:38:41.453156082 +0800
@@ -11,7 +11,7 @@
DOCDIR ?= $(PREFIX)/share/doc/devscripts
MAN1DIR ?= $(PREFIX)/share/man/man1
-all: version make_scripts $(EXAMPLES) translated_manpages
+all: version make_scripts $(EXAMPLES)
version:
rm -f version
diff -urN devscripts-2.11.7.orig/po4a/Makefile devscripts-2.11.7/po4a/Makefile
--- devscripts-2.11.7.orig/po4a/Makefile 2012-05-21 11:36:59.800426916 +0800
+++ devscripts-2.11.7/po4a/Makefile 2012-05-21 11:41:45.313857508 +0800
@@ -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 $@
diff -urN devscripts-2.11.7.orig/scripts/Makefile devscripts-2.11.7/scripts/Makefile
--- devscripts-2.11.7.orig/scripts/Makefile 2012-05-21 11:36:59.809426803 +0800
+++ devscripts-2.11.7/scripts/Makefile 2012-05-21 11:41:19.598178997 +0800
@@ -24,7 +24,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):
$(MAKE) -C .. version
@@ -33,10 +33,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 $@
@@ -46,7 +44,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.
@@ -82,7 +80,6 @@
ln -sf edit-patch $(DESTDIR)$(BINDIR)/add-patch
cp $(LIBS) $(DESTDIR)$(LIBDIR)
install -dD $(DESTDIR)/etc/bash_completion.d
- cp $(COMPLETION) $(DESTDIR)/etc/bash_completion.d
# Special treatment for debpkg
install -dD $(DESTDIR)$(PERLMOD_DIR)
mv $(DESTDIR)$(BINDIR)/debpkg $(DESTDIR)$(PERLMOD_DIR)