xfsprogs: bump to 4.16.1
PATCH 1/1 xfsprogs: bump to 4.16.1
Resolves build failures like:
http://autobuild.buildroot.net/results/953/95307f0f56c7ead1bd1f0ab0049aeb8b30fdc11c/
libunistring to libicu conversion required modifications to 0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch and the libicu usage doesn't require the 0005-xfs_scrub-fix-cross-compile-with-libunistring.patch patch. I've also removed the dependency in the xfsprogs.mk.
Upstream has reworked/included the following:
0003-workqueue-add-missing-pthreads-header.patch 0004-xfs_scrub-add-missing-paths-header.patch 0006-xfs_scrub-fix-build-with-older-kernel-headers.patch
---
Tested against test-pkg for all target configurations
--- ...o-not-do-dynamic-linking-of-libtool-libra.patch | 6 ++- ...003-workqueue-add-missing-pthreads-header.patch | 41 -------------- .../0004-xfs_scrub-add-missing-paths-header.patch | 37 ------------- ...scrub-fix-cross-compile-with-libunistring.patch | 37 ------------- ...scrub-fix-build-with-older-kernel-headers.patch | 63 ---------------------- package/xfsprogs/xfsprogs.hash | 2 +- package/xfsprogs/xfsprogs.mk | 6 +-- 7 files changed, 6 insertions(+), 186 deletions(-) delete mode 100644 package/xfsprogs/0003-workqueue-add-missing-pthreads-header.patch delete mode 100644 package/xfsprogs/0004-xfs_scrub-add-missing-paths-header.patch delete mode 100644 package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch delete mode 100644 package/xfsprogs/0006-xfs_scrub-fix-build-with-older-kernel-headers.patch
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch +4 -2
@@ -14,6 +14,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> [Sent upstream: https://www.spinics.net/lists/xfs/msg36149.html] [baruch: update for v4.15.1; extend to include scrub] Signed-off-by: Baruch Siach <[email protected]> +[matt: update for v4.16.1; adjusted libunistring -> libicu] +Signed-off-by: Matt Weber <[email protected]> --- mdrestore/Makefile | 2 +- scrub/Makefile | 2 +-
@@ -38,8 +40,8 @@ index 063279400262..949f6fd8ba94 100644 +++ b/scrub/Makefile @@ -70,7 +70,7 @@ xfs_scrub.c - LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUNISTRING) $(LIBRT) - LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBUNISTRING) $(LIBRT) + LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBICU_LIBS) $(LIBRT) + LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) -LLDFLAGS = -static +LLDFLAGS = -static-libtool-libs
package/xfsprogs/0003-workqueue-add-missing-pthreads-header.patch deleted +0 -41
41 lines not on this page · raw message
package/xfsprogs/0004-xfs_scrub-add-missing-paths-header.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 27747dcbfbde8a767b1a873716fce1d3aaf17c2f Mon Sep 17 00:00:00 2001 -From: Baruch Siach <[email protected]> -Date: Fri, 16 Mar 2018 07:16:19 +0200 -Subject: [PATCH] xfs_scrub: add missing paths header -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Fix the following build failure with musl libc: - -xfs_scrub.c: In function ?main?: -xfs_scrub.c:670:11: error: ?_PATH_MOUNTED? undeclared (first use in this function) - mtab = _PATH_MOUNTED; - ^~~~~~~~~~~~~ - -Signed-off-by: Baruch Siach <[email protected]> ---- -Upstream status: https://marc.info/?l=linux-xfs&m=152117771313566&w=2 - - scrub/xfs_scrub.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/scrub/xfs_scrub.c b/scrub/xfs_scrub.c -index ab26e6335948..eedbe34ec7b3 100644 ---- a/scrub/xfs_scrub.c -+++ b/scrub/xfs_scrub.c -@@ -21,6 +21,7 @@ - #include <pthread.h> - #include <stdbool.h> - #include <stdlib.h> -+#include <paths.h> - #include <sys/time.h> - #include <sys/resource.h> - #include <sys/statvfs.h> --- -2.16.2 -
package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 45d9ba0f01cceb75f72d157a9e4d9aaeb753a9c4 Mon Sep 17 00:00:00 2001 -From: Baruch Siach <[email protected]> -Date: Tue, 20 Mar 2018 14:13:28 +0200 -Subject: [PATCH] xfs_scrub: fix cross compile with libunistring - -Commit 4bbed4ecc2a (xfs_scrub: warn about normalized Unicode name collisions) -added -lunistring to the list of the xfs_scrub dependencies. When cross -compiling make fails to find the library on the target sysroot: - -make[3]: *** No rule to make target `-lunistring', needed by `xfs_scrub'. Stop. - -Remove -lunistring from make dependencies of xfs_scrub to fix that. - -Cc: Darrick J. Wong <[email protected]> -Signed-off-by: Baruch Siach <[email protected]> ---- -Upstream status: https://patchwork.kernel.org/patch/10296957/ - - scrub/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/scrub/Makefile b/scrub/Makefile -index 949f6fd8ba94..979603f524ff 100644 ---- a/scrub/Makefile -+++ b/scrub/Makefile -@@ -69,7 +69,7 @@ vfs.c \ - xfs_scrub.c - - LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUNISTRING) $(LIBRT) --LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBUNISTRING) $(LIBRT) -+LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBRT) - LLDFLAGS = -static-libtool-libs - - ifeq ($(HAVE_MALLINFO),yes) --- -2.16.2 -
package/xfsprogs/0006-xfs_scrub-fix-build-with-older-kernel-headers.patch deleted +0 -63
63 lines not on this page · raw message
package/xfsprogs/xfsprogs.hash +1 -1
@@ -1,3 +1,3 @@ # From https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/sha256sums.asc -sha256 27c36de9346a274143ad06c65b2fdbafd2806f3f37fa2c1235a08ed920d2bf3c xfsprogs-4.15.1.tar.xz +sha256 3d5c2da46112b86cbd967fee43cea731d38a1b2aaf601b57674ed34e808652df xfsprogs-4.16.1.tar.xz sha256 ee304b1b1da08b261f1d1f31d229fc70d2d0c552c7429e9e84c0fac878d94209 doc/COPYING
package/xfsprogs/xfsprogs.mk +1 -5
@@ -4,7 +4,7 @@ # ################################################################################ -XFSPROGS_VERSION = 4.15.1 +XFSPROGS_VERSION = 4.16.1 XFSPROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/fs/xfs/xfsprogs XFSPROGS_SOURCE = xfsprogs-$(XFSPROGS_VERSION).tar.xz XFSPROGS_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1 (libhandle, few headers)
@@ -20,10 +20,6 @@ XFSPROGS_CONF_OPTS = \ INSTALL_GROUP=root \ --enable-static -ifeq ($(BR2_PACKAGE_LIBUNISTRING),y) -XFSPROGS_DEPENDENCIES += libunistring -endif - XFSPROGS_INSTALL_TARGET_OPTS = DIST_ROOT=$(TARGET_DIR) install $(eval $(autotools-package))
Signature · 1 line
1.9.1
PATCH 1/1 xfsprogs: bump to 4.16.1
Hi Matt,
Quoted 14 lines · Matt Weber
package/xfsprogs/xfsprogs.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -XFSPROGS_VERSION = 4.15.1 +XFSPROGS_VERSION = 4.16.1 XFSPROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/fs/xfs/xfsprogs XFSPROGS_SOURCE = xfsprogs-$(XFSPROGS_VERSION).tar.xz XFSPROGS_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1 (libhandle, few headers)
package/xfsprogs/xfsprogs.mk XFSPROGS_CONF_OPTS = \ · line 25
Quoted 10 lines
package/xfsprogs/xfsprogs.mk +0
-4@@ -20,10 +20,6 @@ XFSPROGS_CONF_OPTS = \ INSTALL_GROUP=root \ --enable-static -ifeq ($(BR2_PACKAGE_LIBUNISTRING),y) -XFSPROGS_DEPENDENCIES += libunistring -endif - XFSPROGS_INSTALL_TARGET_OPTS = DIST_ROOT=$(TARGET_DIR) install $(eval $(autotools-package))
libicu should be an optional dependency instead of libunistring.
Have you tested build with libicu?
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 xfsprogs: bump to 4.16.1
Baruch,
Quoted 26 lines · Baruch Siach
Hi Matt,
Quoted 23 lines · Matt Weber
package/xfsprogs/xfsprogs.mk +1
-5@@ -4,7 +4,7 @@ # ################################################################################ -XFSPROGS_VERSION = 4.15.1 +XFSPROGS_VERSION = 4.16.1 XFSPROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/fs/xfs/xfsprogs XFSPROGS_SOURCE = xfsprogs-$(XFSPROGS_VERSION).tar.xz XFSPROGS_LICENSE = GPL-2.0, GPL-2.0+, LGPL-2.1 (libhandle, few headers)@@ -20,10 +20,6 @@ XFSPROGS_CONF_OPTS = \ INSTALL_GROUP=root \ --enable-static -ifeq ($(BR2_PACKAGE_LIBUNISTRING),y) -XFSPROGS_DEPENDENCIES += libunistring -endif - XFSPROGS_INSTALL_TARGET_OPTS = DIST_ROOT=$(TARGET_DIR) install
Quoted 5 lines
package/xfsprogs/xfsprogs.mk XFSPROGS_CONF_OPTS = \ · line 25
Quoted 1 line
package/xfsprogs/xfsprogs.mk +0
-0$(eval $(autotools-package))libicu should be an optional dependency instead of libunistring.
Have you tested build with libicu?
Didn't realize it was optional, I'll take a look and retest.
Matt
PATCH 1/1 xfsprogs: bump to 4.16.1
In reply to Matt WeberHello,
Quoted 14 lines · Matt Weber
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch +2
-0@@ -14,6 +14,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> [Sent upstream: https://www.spinics.net/lists/xfs/msg36149.html] [baruch: update for v4.15.1; extend to include scrub] Signed-off-by: Baruch Siach <[email protected]> +[matt: update for v4.16.1; adjusted libunistring -> libicu] +Signed-off-by: Matt Weber <[email protected]> --- mdrestore/Makefile | 2 +- scrub/Makefile | 2 +-
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch index 063279400262..949f6fd8ba94 100644 · line 44
Quoted 7 lines
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch +2
-2@@ -38,8 +40,8 @@ index 063279400262..949f6fd8ba94 100644 +++ b/scrub/Makefile @@ -70,7 +70,7 @@ xfs_scrub.c - LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUNISTRING) $(LIBRT) - LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBUNISTRING) $(LIBRT) + LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBICU_LIBS) $(LIBRT) + LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG)
Does this also remove $(LIBRT) ?
Why is this now done in patch 0001, while it was done in
Quoted 27 lines
package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch deleted +0
-21@@ -1,37 +0,0 @@ -From 45d9ba0f01cceb75f72d157a9e4d9aaeb753a9c4 Mon Sep 17 00:00:00 2001 -From: Baruch Siach <[email protected]> -Date: Tue, 20 Mar 2018 14:13:28 +0200 -Subject: [PATCH] xfs_scrub: fix cross compile with libunistring - -Commit 4bbed4ecc2a (xfs_scrub: warn about normalized Unicode name collisions) -added -lunistring to the list of the xfs_scrub dependencies. When cross -compiling make fails to find the library on the target sysroot: - -make[3]: *** No rule to make target `-lunistring', needed by `xfs_scrub'. Stop. - -Remove -lunistring from make dependencies of xfs_scrub to fix that. - -Cc: Darrick J. Wong <[email protected]> -Signed-off-by: Baruch Siach <[email protected]> ---- -Upstream status: https://patchwork.kernel.org/patch/10296957/ - - scrub/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) -
package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch line 31
Quoted 10 lines
package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch deleted +0
-10-diff --git a/scrub/Makefile b/scrub/Makefile -index 949f6fd8ba94..979603f524ff 100644 ---- a/scrub/Makefile -+++ b/scrub/Makefile -@@ -69,7 +69,7 @@ vfs.c \ - xfs_scrub.c - - LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUNISTRING) $(LIBRT) --LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBUNISTRING) $(LIBRT) -+LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBRT)
this patch before ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 xfsprogs: bump to 4.16.1
Thomas,
Quoted 21 lines · Thomas Petazzoni
Hello,
Quoted 17 lines · Matt Weber
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch +2
-0@@ -14,6 +14,8 @@ Signed-off-by: Vicente Olivert Riera <[email protected]> [Sent upstream: https://www.spinics.net/lists/xfs/msg36149.html] [baruch: update for v4.15.1; extend to include scrub] Signed-off-by: Baruch Siach <[email protected]> +[matt: update for v4.16.1; adjusted libunistring -> libicu] +Signed-off-by: Matt Weber <[email protected]> --- mdrestore/Makefile | 2 +- scrub/Makefile | 2 +-@@ -38,8 +40,8 @@ index 063279400262..949f6fd8ba94 100644 +++ b/scrub/Makefile @@ -70,7 +70,7 @@ xfs_scrub.c
Quoted 7 lines
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch index 063279400262..949f6fd8ba94 100644 · line 44
Quoted 4 lines
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch +2
-2- LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUNISTRING) $(LIBRT) - LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBUNISTRING) $(LIBRT) + LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBICU_LIBS) $(LIBRT) + LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG)Does this also remove $(LIBRT) ?
I read this https://patchwork.kernel.org/patch/10296957/ as the LIBRT isn't an issue after switching to LIBICU (Not that LIBRT is removed). Do you guys have more context on why LIBRT would be pulled out?
Quoted 4 lines
Why is this now done in patch 0001, while it was done in
Quoted 1 line
package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch +0
-0
[snip]
Quoted 11 lines
Quoted 8 lines
---- a/scrub/Makefile
-+++ b/scrub/Makefile
-@@ -69,7 +69,7 @@vfs.c\
-xfs_scrub.c
-
- LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUNISTRING) $(LIBRT) --LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBUNISTRING) $(LIBRT) -+LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBRT)this patch before ?
Didn't realize I should set up the makefile for optional inclusion of LIBICU. I'll revisit as part of testing the selective libicu dependency.
Matt
PATCH 1/1 xfsprogs: bump to 4.16.1
Thomas,
Quoted 11 lines · Matthew Weber
Thomas,
Quoted 7 lines · Thomas Petazzoni
Hello,
package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch
Quoted 3 lines · Matt Weber
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch +0
-0package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch +0
-0
So between the above two patches, the behavior where we remove $(LIBUNISTRING) in the 0005 isn't needed when switching to $(LIBICU), as configure defines that variable only when icu is detected. I've kicked off a test-pkg config for icu enabled/disabled with the following update to my v1 of this patchset.
package/xfsprogs/xfsprogs.mk +4 -0
@@ -20,6 +20,10 @@ XFSPROGS_CONF_OPTS = \ INSTALL_GROUP=root \ --enable-static +ifeq ($(BR2_PACKAGE_ICU),y) +XFSPROGS_DEPENDENCIES += icu +endif + XFSPROGS_INSTALL_TARGET_OPTS = DIST_ROOT=$(TARGET_DIR) install $(eval $(autotools-package))