Control: unblock 924973 by 670796
Control: unblock 1049821 by 670796

On Sunday, 29 April 2012 06:08:02 CEST Russ Allbery wrote:
> I have a package (gnubg) which uses mkinstalldirs.  After the first
> build and clean cycle, mkinstalldirs has been deleted by
> dh_autoreconf_clean.  But then running autoreconf doesn't bring it
> back, which means that the build fails.
> 
> As near as I can tell, autoreconf updates mkinstalldirs if it exists,
> but if it's been deleted, it doesn't copy it into the source tree,
> which leads to build failures when the package is built twice in
> sequence.

As workaround, I am currently using following in g3dviewer:

diff --git a/debian/rules b/debian/rules
index 
0ef8b15b5613ea736ecaaa72bc6b4b000de38017..a99803c6f7db41b04f40585e8095213a46da4850
 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,11 @@ export DEB_CPPFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64
 binary binary-arch binary-indep build build-arch build-indep clean install 
install-arch install-indep:
        dh $@
 
+override_dh_autoreconf:
+       dh_autoreconf -Xmkinstalldirs
+
 override_dh_installdocs:
        dh_installdocs -A README NEWS TODO AUTHORS
 
 .PHONY: binary binary-arch binary-indep build build-arch build-indep clean 
install install-arch install-indep \
-       override_dh_installdocs
+       override_dh_installdocs override_dh_autoreconf
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 
0000000000000000000000000000000000000000..039409ebff7151490cbd46057186153e1be682e4
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore = "(^|/)mkinstalldirs$"

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to