Hi
On 23/04/2014 12:41, Hideki Yamane wrote:
I've made a patch for this FTBFS issue, just ignoring config.mk
in Makefile and build fine. Please check and consider to apply it.
From the dh_auto_clean man page:
This is intended to work for about 90% of packages. If it doesn’t
work,
or tries to use the wrong clean target, you’re encouraged to skip
using
dh_auto_clean at all, and just run make clean manually.
So why can we just skip dh_auto_clean?
I'm loath to accept that patch as it's GNU make only.
Attached is a patch applied upstream which allows it to work with GNU
make and BSD make.
Roy
Index: Makefile
==================================================================
--- Makefile
+++ Makefile
@@ -1,6 +1,19 @@
-include config.mk
+# Nasty hack so that make clean works without configure being run
+_CONFIG_MK_SH= test -e config.mk && echo config.mk || echo config-null.mk
+_CONFIG_MK!= ${_CONFIG_MK_SH}
+CONFIG_MK= ${_CONFIG_MK}$(shell ${_CONFIG_MK_SH})
+include ${CONFIG_MK}
+
+SBINDIR?= /sbin
+SYSCONFDIR?= /etc
+LIBEXECDIR?= /libexec/resolvconf
+VARDIR?= /var/run/resolvconf
+RCDIR?= /etc/rc.d
+RESTARTCMD?= if ${RCDIR}/\1 status >/dev/null 2>\&1; then \
+ ${RCDIR}/\1 restart; \
+ fi
NAME= openresolv
VERSION= 3.5.6
PKG= ${NAME}-${VERSION}
ADDED config-null.mk
Index: config-null.mk
==================================================================
--- config-null.mk
+++ config-null.mk
@@ -0,0 +1,1 @@
+# This space left intentionally blank