On 2006-07-11 14:25:56 +0200, Julien Danjou wrote:
> Actually I think this is caused by bashisms in clean target:
> 
>  $(RM) $$i/*.{o,so,a,la,lo,slo} core; \
> 
> This fails with /bin/sh linked to dash.

I used the attached dpatch to get this package build on Ubuntu (which
uses dash as /bin/sh).
The patch splits this line into several lines to fix the FTBFS.

Michael
#! /bin/sh /usr/share/dpatch/dpatch-run
## 04_remove_bashism.dpatch by Michael Bienia <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad libapache-mod-auth-kerb-5.3~/Makefile 
libapache-mod-auth-kerb-5.3/Makefile
--- libapache-mod-auth-kerb-5.3~/Makefile       2007-01-19 13:32:35.000000000 
+0100
+++ libapache-mod-auth-kerb-5.3/Makefile        2007-01-19 16:54:17.000000000 
+0100
@@ -23,9 +23,15 @@
 
 clean:
        for i in . src spnegokrb5; do \
-               $(RM) $$i/*.{o,so,a,la,lo,slo} core; \
+               $(RM) $$i/*.o; \
+               $(RM) $$i/*.so; \
+               $(RM) $$i/*.a; \
+               $(RM) $$i/*.la; \
+               $(RM) $$i/*.lo; \
+               $(RM) $$i/*.slo; \
                $(RM) -rf $$i/.libs; \
        done
+       $(RM) core
 
 distclean: clean
        $(RM) config.h config.status Makefile config.log
diff -urNad libapache-mod-auth-kerb-5.3~/Makefile.in 
libapache-mod-auth-kerb-5.3/Makefile.in
--- libapache-mod-auth-kerb-5.3~/Makefile.in    2006-11-06 16:36:08.000000000 
+0100
+++ libapache-mod-auth-kerb-5.3/Makefile.in     2007-01-19 16:55:38.000000000 
+0100
@@ -27,9 +27,15 @@
 
 clean:
        for i in . src spnegokrb5; do \
-               $(RM) $$i/*.{o,so,a,la,lo,slo} core; \
+               $(RM) $$i/*.o; \
+               $(RM) $$i/*.so; \
+               $(RM) $$i/*.a; \
+               $(RM) $$i/*.la; \
+               $(RM) $$i/*.lo; \
+               $(RM) $$i/*.slo; \
                $(RM) -rf $$i/.libs; \
        done
+       $(RM) core
 
 distclean: clean
        $(RM) config.h config.status Makefile config.log

Reply via email to