Date: Friday, December 30, 2016 @ 14:44:15 Author: pierre Revision: 284981
upgpkg: xz 5.2.3-1 Modified: xz/trunk/PKGBUILD Deleted: xz/trunk/logical-op.patch ------------------+ PKGBUILD | 18 +++++------------- logical-op.patch | 50 -------------------------------------------------- 2 files changed, 5 insertions(+), 63 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-12-30 13:53:59 UTC (rev 284980) +++ PKGBUILD 2016-12-30 14:44:15 UTC (rev 284981) @@ -3,8 +3,8 @@ # Contributor: François Charette <[email protected]> pkgname=xz -pkgver=5.2.2 -pkgrel=2 +pkgver=5.2.3 +pkgrel=1 pkgdesc='Library and command line tools for XZ and LZMA compressed files' arch=('i686' 'x86_64') url='http://tukaani.org/xz/' @@ -11,19 +11,11 @@ license=('GPL' 'LGPL' 'custom') depends=('sh') source=("http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz" - "http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz.sig" - 'logical-op.patch') -md5sums=('7cf6a8544a7dae8e8106fdf7addfa28c' - 'SKIP' - '51942446b4d3264e8de2f9676ee94075') + "http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz.sig") +md5sums=('ef68674fb47a8b8e741b34e429d86e9d' + 'SKIP') validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') -prepare() { - cd ${srcdir}/${pkgname}-${pkgver} - - patch -p1 -i ${srcdir}/logical-op.patch -} - build() { cd ${srcdir}/${pkgname}-${pkgver} Deleted: logical-op.patch =================================================================== --- logical-op.patch 2016-12-30 13:53:59 UTC (rev 284980) +++ logical-op.patch 2016-12-30 14:44:15 UTC (rev 284981) @@ -1,50 +0,0 @@ -From 1b0ac0c53c761263e91e34195cb21dfdcfeac0bd Mon Sep 17 00:00:00 2001 -From: Lasse Collin <[email protected]> -Date: Thu, 16 Jun 2016 22:46:02 +0300 -Subject: [PATCH 1/1] xz: Silence warnings from -Wlogical-op. - -Thanks to Evan Nemerson. ---- - src/xz/file_io.c | 12 ++++++++++-- - 1 file changed, 10 insertions(+), 2 deletions(-) - -diff --git a/src/xz/file_io.c b/src/xz/file_io.c -index 69cf632..2ca188b 100644 ---- a/src/xz/file_io.c -+++ b/src/xz/file_io.c -@@ -45,6 +45,14 @@ static bool warn_fchown; - # define O_NOCTTY 0 - #endif - -+// Using this macro to silence a warning from gcc -Wlogical-op. -+#if EAGAIN == EWOULDBLOCK -+# define IS_EAGAIN_OR_EWOULDBLOCK(e) ((e) == EAGAIN) -+#else -+# define IS_EAGAIN_OR_EWOULDBLOCK(e) \ -+ ((e) == EAGAIN || (e) == EWOULDBLOCK) -+#endif -+ - - typedef enum { - IO_WAIT_MORE, // Reading or writing is possible. -@@ -1102,7 +1110,7 @@ io_read(file_pair *pair, io_buf *buf_union, size_t size) - } - - #ifndef TUKLIB_DOSLIKE -- if (errno == EAGAIN || errno == EWOULDBLOCK) { -+ if (IS_EAGAIN_OR_EWOULDBLOCK(errno)) { - const io_wait_ret ret = io_wait(pair, - mytime_get_flush_timeout(), - true); -@@ -1190,7 +1198,7 @@ io_write_buf(file_pair *pair, const uint8_t *buf, size_t size) - } - - #ifndef TUKLIB_DOSLIKE -- if (errno == EAGAIN || errno == EWOULDBLOCK) { -+ if (IS_EAGAIN_OR_EWOULDBLOCK(errno)) { - if (io_wait(pair, -1, false) == IO_WAIT_MORE) - continue; - --- -1.8.5.5 -
