tags 643040 +patch
thanks
>The full build log is available from:
>
http://people.debian.org/~lucas/logs/2011/08/23/abcm2ps_5.9.22-1_lsid64.buildlog
<http://people.debian.org/%7Elucas/logs/2011/08/23/abcm2ps_5.9.22-1_lsid64.buildlog>
That gives a 404 for me.
When I tested it the package built fine (with plain dpkg-buildpackage)
immediately after unpacking but trying to build a second time gave
the error you report.
I've attatched a patch that backs up the makefile at the start of the
build and restores it in clean which fixes the issue.
diff -ur abcm2ps-5.9.22/debian/rules abcm2ps-5.9.22.new/debian/rules
--- abcm2ps-5.9.22/debian/rules 2010-04-23 08:10:54.000000000 +0000
+++ abcm2ps-5.9.22.new/debian/rules 2011-11-05 11:33:11.000000000 +0000
@@ -23,7 +23,10 @@
INSTALL_PROGRAM += -s
endif
-config.status: configure
+Makefile.bak:
+ cp Makefile Makefile.bak
+
+config.status: configure Makefile.bak
dh_testdir
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
[ -e config.sub ] && mv config.sub config.sub.save
@@ -56,6 +59,8 @@
if [ -e config.sub.save ]; then mv config.sub.save config.sub; fi
if [ -e config.guess.save ]; then mv config.guess.save config.guess; fi
+ if [ -e Makefile.bak ]; then mv Makefile.bak Makefile; fi
+
[ ! -f Makefile ] || $(MAKE) clean
rm -f abcm2ps abcm2ps.1