From: Rosen Penev Date: Fri, 23 Aug 2019 20:41:20 +0000 (-0700) Subject: xmlrpc-c: Update to 1.51.03 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F9813%2Fhead;p=feed%2Fpackages.git xmlrpc-c: Update to 1.51.03 Small Makefile reorganization. Switch BUILD_PARALLEL to 1. Seems to work now. Added nanosleep patch that replaces usleep usage. Signed-off-by: Rosen Penev --- diff --git a/libs/xmlrpc-c/Makefile b/libs/xmlrpc-c/Makefile index d9bc8ed0ef..665c697208 100644 --- a/libs/xmlrpc-c/Makefile +++ b/libs/xmlrpc-c/Makefile @@ -8,22 +8,20 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xmlrpc-c -PKG_VERSION:=1.43.08 +PKG_VERSION:=1.51.03 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=@SF/xmlrpc-c/Xmlrpc-c%20Super%20Stable/$(PKG_VERSION) -PKG_HASH:=c9f5b584a42493877ae0f09ed680d94e035ab389e8fa1873b1ec42118d5cfca3 +PKG_HASH:=82f9a4f6dee03f6a58921d75a65949dd4f0036a4c268bce6a4343338932ec065 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) PKG_MAINTAINER:=Ted Hess PKG_LICENSE:=VARIOUS PKG_LICENSE_FILES:=doc/COPYING -PKG_FIXUP:=autoreconf PKG_INSTALL:=1 -PKG_BUILD_PARALLEL:=0 - -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk diff --git a/libs/xmlrpc-c/patches/001-config.mk.in.patch b/libs/xmlrpc-c/patches/001-config.mk.in.patch deleted file mode 100644 index 165c3eed80..0000000000 --- a/libs/xmlrpc-c/patches/001-config.mk.in.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/config.mk.in -+++ b/config.mk.in -@@ -176,7 +176,7 @@ ifeq ($(patsubst linux-gnu%,linux-gnu,$( - shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN)) - shliblefn = $(1:%=%.$(SHLIB_SUFFIX)) - # SHLIB_CLIB = -lc -- LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB) -+ LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB) $(LDFLAGS) - CFLAGS_SHLIB=-fPIC - endif - diff --git a/libs/xmlrpc-c/patches/002-automake-compat.patch b/libs/xmlrpc-c/patches/002-automake-compat.patch deleted file mode 100644 index d5a25750ed..0000000000 --- a/libs/xmlrpc-c/patches/002-automake-compat.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/configure.in -+++ b/configure.in -@@ -223,9 +223,7 @@ dnl Checks for programs. - dnl ======================================================================= - - AC_PROG_CC --if test x"$enable_cplusplus" != xno; then -- AC_PROG_CXX --fi -+AC_PROG_CXX - - - dnl ======================================================================= diff --git a/libs/xmlrpc-c/patches/010-nanosleep.patch b/libs/xmlrpc-c/patches/010-nanosleep.patch new file mode 100644 index 0000000000..a40ceef9bf --- /dev/null +++ b/libs/xmlrpc-c/patches/010-nanosleep.patch @@ -0,0 +1,20 @@ +--- a/lib/libutil/sleep.c ++++ b/lib/libutil/sleep.c +@@ -8,7 +8,7 @@ + # include + # include + #else +-# include ++# include + #endif + + +@@ -18,6 +18,7 @@ xmlrpc_millisecond_sleep(unsigned int const milliseconds) { + #if MSVCRT + SleepEx(milliseconds, true); + #else +- usleep(milliseconds * 1000); ++ const struct timespec req = {0, milliseconds * 1000 * 1000}; ++ nanosleep(&req, NULL); + #endif + }