This patch makes sure that the configure script is executed (it is in
the source dir instead of the main dir)
Furthermore, it updates the configure script itself to fix compiling

Signed-off-by: Maarten Bezemer
Index: net/samba3/patches/190-fix_configure.patch
===================================================================
--- net/samba3/patches/190-fix_configure.patch	(revision 0)
+++ net/samba3/patches/190-fix_configure.patch	(revision 0)
@@ -0,0 +1,22 @@
+Index: samba-3.0.24/source/configure
+===================================================================
+--- samba-3.0.24.orig/source/configure	2011-04-02 12:39:19.000000000 +0200
++++ samba-3.0.24/source/configure	2011-04-02 12:39:24.000000000 +0200
+@@ -23930,7 +23930,7 @@
+ case "$host_os" in
+     *linux*)
+        # glibc <= 2.3.2 has a broken getgrouplist
+-       if test "$cross_compiling" = yes; then
++       if test "false" = yes; then
+   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
+ See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run test program while cross compiling
+@@ -31165,7 +31165,7 @@
+ else
+
+ if test "$cross_compiling" = yes; then
+-  samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
++  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
+ else
+   cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h.  */
Index: net/samba3/Makefile
===================================================================
--- net/samba3/Makefile	(revision 26400)
+++ net/samba3/Makefile	(working copy)
@@ -48,6 +48,8 @@
 $(call Build/Prepare/Default)
 endef
 
+CONFIGURE_PATH:=source
+
 define Build/Configure
 	[ -f "$(PKG_BUILD_DIR)/source/include/config.h.save" ] || \
 		$(CP) $(PKG_BUILD_DIR)/source/include/config.h \
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to