Browse Source

fix compile with uclibc

Waldemar Brodkorb 11 years ago
parent
commit
73040662a8
2 changed files with 21 additions and 2 deletions
  1. 2 2
      package/wget/Makefile
  2. 19 0
      package/wget/patches/patch-m4_spawn_h_m4

+ 2 - 2
package/wget/Makefile

@@ -4,9 +4,9 @@
 include ${TOPDIR}/rules.mk
 include ${TOPDIR}/rules.mk
 
 
 PKG_NAME:=		wget
 PKG_NAME:=		wget
-PKG_VERSION:=		1.14
+PKG_VERSION:=		1.15
 PKG_RELEASE:=		1
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		12edc291dba8127f2e9696e69f36299e
+PKG_MD5SUM:=		506df41295afc6486662cc47470b4618
 PKG_DESCR:=		retrieving files using HTTP(S) and FTP
 PKG_DESCR:=		retrieving files using HTTP(S) and FTP
 PKG_SECTION:=		www
 PKG_SECTION:=		www
 PKG_BUILDDEP:=		autotool
 PKG_BUILDDEP:=		autotool

+ 19 - 0
package/wget/patches/patch-m4_spawn_h_m4

@@ -0,0 +1,19 @@
+--- wget-1.15.orig/m4/spawn_h.m4	2014-01-19 11:00:21.000000000 +0100
++++ wget-1.15/m4/spawn_h.m4	2014-02-21 17:25:19.000000000 +0100
+@@ -64,7 +64,15 @@ AC_DEFUN([gl_HAVE_POSIX_SPAWN],
+   dnl once only, before all statements that occur in other macros.
+   AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
+ 
+-  AC_CHECK_FUNCS_ONCE([posix_spawn])
++  LIB_POSIX_SPAWN=
++  AC_SUBST([LIB_POSIX_SPAWN])
++  gl_saved_libs=$LIBS
++    AC_SEARCH_LIBS([posix_spawn], [rt],
++                   [test "$ac_cv_search_posix_spawn" = "none required" ||
++                    LIB_POSIX_SPAWN=$ac_cv_search_posix_spawn])
++    AC_CHECK_FUNCS([posix_spawn])
++  LIBS=$gl_saved_libs
++
+   if test $ac_cv_func_posix_spawn != yes; then
+     HAVE_POSIX_SPAWN=0
+   fi