From 12e4b14aae6f4e8659030fbc868af2710903177e Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sun, 11 Aug 2019 18:07:48 +0300 Subject: [PATCH] libbsd: update to 0.10.0 --- packages/libbsd/build.sh | 5 ++--- packages/libbsd/endian.h.patch | 25 +++++++++++++------------ packages/libbsd/vis.c.patch | 20 -------------------- 3 files changed, 15 insertions(+), 35 deletions(-) delete mode 100644 packages/libbsd/vis.c.patch diff --git a/packages/libbsd/build.sh b/packages/libbsd/build.sh index c90798686..eb59160bf 100644 --- a/packages/libbsd/build.sh +++ b/packages/libbsd/build.sh @@ -1,10 +1,9 @@ TERMUX_PKG_HOMEPAGE=https://libbsd.freedesktop.org TERMUX_PKG_DESCRIPTION="utility functions from BSD systems" TERMUX_PKG_LICENSE="BSD 3-Clause" -TERMUX_PKG_VERSION=0.9.1 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_VERSION=0.10.0 TERMUX_PKG_SRCURL=https://libbsd.freedesktop.org/releases/libbsd-$TERMUX_PKG_VERSION.tar.xz -TERMUX_PKG_SHA256=56d835742327d69faccd16955a60b6dcf30684a8da518c4eca0ac713b9e0a7a4 +TERMUX_PKG_SHA256=34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887 TERMUX_PKG_BREAKS="libbsd-dev" TERMUX_PKG_REPLACES="libbsd-dev" TERMUX_PKG_BUILD_IN_SRC=yes diff --git a/packages/libbsd/endian.h.patch b/packages/libbsd/endian.h.patch index 4dd9adc3d..54ffb1a34 100644 --- a/packages/libbsd/endian.h.patch +++ b/packages/libbsd/endian.h.patch @@ -1,17 +1,18 @@ ---- ../cache/libbsd-0.9.1/include/bsd/sys/endian.h 2017-06-06 02:21:05.000000000 +0000 -+++ ./include/bsd/sys/endian.h 2018-10-16 02:59:14.582440259 +0000 -@@ -25,12 +25,13 @@ - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ -- -+#if !defined(__ANDROID__) +diff -uNr libbsd-0.10.0/include/bsd/sys/endian.h libbsd-0.10.0.mod/include/bsd/sys/endian.h +--- libbsd-0.10.0/include/bsd/sys/endian.h 2019-08-08 01:00:44.000000000 +0300 ++++ libbsd-0.10.0.mod/include/bsd/sys/endian.h 2019-08-11 20:23:57.120370524 +0300 +@@ -28,12 +28,12 @@ + #ifdef LIBBSD_OVERLAY + #include +-#if __has_include_next() ++#if __has_include_next() && !defined(__ANDROID__) #include_next + #endif #else + #include +-#if __has_include() ++#if __has_include() && !defined(__ANDROID__) #include #endif -+#endif - - #ifndef LIBBSD_SYS_ENDIAN_H - #define LIBBSD_SYS_ENDIAN_H + #endif diff --git a/packages/libbsd/vis.c.patch b/packages/libbsd/vis.c.patch deleted file mode 100644 index 8cadac256..000000000 --- a/packages/libbsd/vis.c.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- ../cache/libbsd-0.9.1/src/vis.c 2018-05-22 14:07:42.000000000 +0000 -+++ ./src/vis.c 2018-10-16 03:14:02.997723611 +0000 -@@ -305,7 +305,7 @@ - /* See comment in istrsenvisx() output loop, below. */ - wmsk = 0; - for (i = sizeof(wmsk) - 1; i >= 0; i--) { -- shft = i * NBBY; -+ shft = i * CHAR_BIT; - bmsk = (uint64_t)0xffLL << shft; - wmsk |= bmsk; - if ((c & wmsk) || i == 0) -@@ -536,7 +536,7 @@ - clen = 0; - wmsk = 0; - for (i = sizeof(wmsk) - 1; i >= 0; i--) { -- shft = i * NBBY; -+ shft = i * CHAR_BIT; - bmsk = (uint64_t)0xffLL << shft; - wmsk |= bmsk; - if ((*dst & wmsk) || i == 0)