summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/e2fsprogs
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs')
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs.inc1
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patch42
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch3
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdir_p.patch7
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/ptest.patch8
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch7
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/remove.ldconfig.call.patch15
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest3
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.1.bb (renamed from meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb)3
9 files changed, 63 insertions, 26 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs.inc b/meta/recipes-devtools/e2fsprogs/e2fsprogs.inc
index 0cb3f0e6a6..cce6e5f1ac 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs.inc
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs.inc
@@ -20,7 +20,6 @@ SECTION = "base"
20DEPENDS = "util-linux attr autoconf-archive-native" 20DEPENDS = "util-linux attr autoconf-archive-native"
21 21
22SRC_URI = "git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git;branch=master;protocol=https" 22SRC_URI = "git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git;branch=master;protocol=https"
23S = "${WORKDIR}/git"
24 23
25inherit autotools gettext texinfo pkgconfig multilib_header update-alternatives ptest 24inherit autotools gettext texinfo pkgconfig multilib_header update-alternatives ptest
26 25
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patch
new file mode 100644
index 0000000000..01ab9d5afb
--- /dev/null
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-libext2fs-fix-std-c23-build-failure.patch
@@ -0,0 +1,42 @@
1From 72dcef02bee9924c4d5b3dc6e7ef4d07becebcc6 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Fri, 22 Nov 2024 12:36:32 +0000
4Subject: [PATCH] libext2fs: fix -std=c23 build failure
5
6gcc-15 switched to -std=c23 by default:
7
8 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212
9
10As a result `e2fsprogs` fails the build so only typedef int bool
11for __STDC_VERSION__ <= 201710L (C17)
12
13 ../../../lib/ext2fs/tdb.c:113:13: error: two or more data types in declaration specifiers
14 ../../../lib/ext2fs/tdb.c:113:1: warning: useless type name in empty declaration
15 113 | typedef int bool;
16 | ^~~~~~~
17
18https://github.com/tytso/e2fsprogs/issues/202
19
20Upstream-Status: Backport [https://github.com/tytso/e2fsprogs/commit/49fd04d77b3244c6c6990be41142168eef373aef]
21Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
22Link: https://lore.kernel.org/r/Z0B60JhdvT9bpSQ6@6f91903e89da
23Signed-off-by: Theodore Ts'o <tytso@mit.edu>
24Signed-off-by: Khem Raj <raj.khem@gmail.com>
25---
26 lib/ext2fs/tdb.c | 2 ++
27 1 file changed, 2 insertions(+)
28
29diff --git a/lib/ext2fs/tdb.c b/lib/ext2fs/tdb.c
30index b07b2917..98dc95d8 100644
31--- a/lib/ext2fs/tdb.c
32+++ b/lib/ext2fs/tdb.c
33@@ -110,7 +110,9 @@ static char *rep_strdup(const char *s)
34 #endif
35 #endif
36
37+#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L
38 typedef int bool;
39+#endif
40
41 #include "tdb.h"
42
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch
index b038e61eb7..4cd1098597 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch
@@ -1,4 +1,4 @@
1From 5bc75654690a2d916190168b865770a7c93e65dd Mon Sep 17 00:00:00 2001 1From 1c7078fda6d23f1d80b0d95ac3e908364749e188 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Wed, 10 Aug 2016 11:19:44 +0800 3Date: Wed, 10 Aug 2016 11:19:44 +0800
4Subject: [PATCH] Fix missing check for permission denied. 4Subject: [PATCH] Fix missing check for permission denied.
@@ -13,7 +13,6 @@ Upstream-Status: Pending
13Written-by: Henrik Wallin <henrik.b.wallin@ericsson.com> 13Written-by: Henrik Wallin <henrik.b.wallin@ericsson.com>
14 14
15Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 15Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
16
17--- 16---
18 lib/support/profile.c | 2 +- 17 lib/support/profile.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-) 18 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdir_p.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdir_p.patch
index f6916a1112..2dbeba1095 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdir_p.patch
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdir_p.patch
@@ -1,4 +1,4 @@
1From e3a30baa5c1e2f0ac7e246539db1c7db5a2fe302 Mon Sep 17 00:00:00 2001 1From e143a900199c5bb10b28f3fc8f4d36bbb6ffdd5f Mon Sep 17 00:00:00 2001
2From: Joe Slater <jslater@windriver.com> 2From: Joe Slater <jslater@windriver.com>
3Date: Tue, 7 Mar 2017 14:53:19 -0800 3Date: Tue, 7 Mar 2017 14:53:19 -0800
4Subject: [PATCH] e2fsprogs: expand @mkdir_p@ 4Subject: [PATCH] e2fsprogs: expand @mkdir_p@
@@ -9,16 +9,15 @@ not expanded so no locale data is written into usr/share/locale.
9Upstream-Status: Pending 9Upstream-Status: Pending
10 10
11Signed-off-by: Joe Slater <jslater@windriver.com> 11Signed-off-by: Joe Slater <jslater@windriver.com>
12
13--- 12---
14 configure.ac | 2 ++ 13 configure.ac | 2 ++
15 1 file changed, 2 insertions(+) 14 1 file changed, 2 insertions(+)
16 15
17diff --git a/configure.ac b/configure.ac 16diff --git a/configure.ac b/configure.ac
18index 4c4b5523..3475c707 100644 17index 131caef3..ca448d97 100644
19--- a/configure.ac 18--- a/configure.ac
20+++ b/configure.ac 19+++ b/configure.ac
21@@ -919,6 +919,8 @@ AC_SUBST(PACKAGE) 20@@ -938,6 +938,8 @@ AC_SUBST(PACKAGE)
22 AC_SUBST(VERSION) 21 AC_SUBST(VERSION)
23 22
24 AM_GNU_GETTEXT([external]) 23 AM_GNU_GETTEXT([external])
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/ptest.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/ptest.patch
index 20839b7286..f4e1057a36 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/ptest.patch
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/ptest.patch
@@ -1,4 +1,4 @@
1From b8842065ad621a03a971dfd50db862c5bffdeb49 Mon Sep 17 00:00:00 2001 1From 25db5ac7469cedd043a04bcf49ce7553979fbb32 Mon Sep 17 00:00:00 2001
2From: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> 2From: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
3Date: Sat, 18 Apr 2015 17:58:17 +0300 3Date: Sat, 18 Apr 2015 17:58:17 +0300
4Subject: [PATCH] e2fsprogs: add ptest 4Subject: [PATCH] e2fsprogs: add ptest
@@ -14,10 +14,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
14 2 files changed, 18 insertions(+), 18 deletions(-) 14 2 files changed, 18 insertions(+), 18 deletions(-)
15 15
16diff --git a/tests/Makefile.in b/tests/Makefile.in 16diff --git a/tests/Makefile.in b/tests/Makefile.in
17index 8c4d2048..e021af32 100644 17index ba06b3b6..5a3e48f4 100644
18--- a/tests/Makefile.in 18--- a/tests/Makefile.in
19+++ b/tests/Makefile.in 19+++ b/tests/Makefile.in
20@@ -19,7 +19,7 @@ test_one: $(srcdir)/test_one.in Makefile mke2fs.conf 20@@ -20,7 +20,7 @@ test_one: $(srcdir)/test_one.in Makefile mke2fs.conf test_data.tmp
21 @echo "#!/bin/sh" > test_one 21 @echo "#!/bin/sh" > test_one
22 @echo "HTREE=y" >> test_one 22 @echo "HTREE=y" >> test_one
23 @echo "QUOTA=y" >> test_one 23 @echo "QUOTA=y" >> test_one
@@ -26,7 +26,7 @@ index 8c4d2048..e021af32 100644
26 @echo "DIFF_OPTS=@UNI_DIFF_OPTS@" >> test_one 26 @echo "DIFF_OPTS=@UNI_DIFF_OPTS@" >> test_one
27 @echo "SIZEOF_TIME_T=@SIZEOF_TIME_T@" >> test_one 27 @echo "SIZEOF_TIME_T=@SIZEOF_TIME_T@" >> test_one
28 @echo "DD=@DD@" >>test_one 28 @echo "DD=@DD@" >>test_one
29@@ -30,7 +30,7 @@ test_script: test_one test_script.in Makefile mke2fs.conf 29@@ -31,7 +31,7 @@ test_script: test_one test_script.in Makefile mke2fs.conf test_data.tmp
30 @echo "Creating test_script..." 30 @echo "Creating test_script..."
31 @[ -f test_script ] && chmod u+w test_script || true 31 @[ -f test_script ] && chmod u+w test_script || true
32 @echo "#!/bin/sh" > test_script 32 @echo "#!/bin/sh" > test_script
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch
index 0a6904208d..4ba150e27d 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/quiet-debugfs.patch
@@ -1,4 +1,4 @@
1From 580ef6cae2d353f3aa5d5c52d6614bdc1df50f08 Mon Sep 17 00:00:00 2001 1From b66c973e004e0c458ef275b41ac2d8d9ff33d29f Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com> 2From: Ross Burton <ross.burton@intel.com>
3Date: Mon, 23 Dec 2013 13:38:34 +0000 3Date: Mon, 23 Dec 2013 13:38:34 +0000
4Subject: [PATCH] e2fsprogs: silence debugfs 4Subject: [PATCH] e2fsprogs: silence debugfs
@@ -8,16 +8,15 @@ filesystems at rootfs time.
8 8
9Upstream-Status: Inappropriate 9Upstream-Status: Inappropriate
10Signed-off-by: Ross Burton <ross.burton@intel.com> 10Signed-off-by: Ross Burton <ross.burton@intel.com>
11
12--- 11---
13 debugfs/debugfs.c | 2 +- 12 debugfs/debugfs.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
15 14
16diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c 15diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
17index 9b6321dc..8ebf3ddb 100644 16index 909c1df3..0842369e 100644
18--- a/debugfs/debugfs.c 17--- a/debugfs/debugfs.c
19+++ b/debugfs/debugfs.c 18+++ b/debugfs/debugfs.c
20@@ -2516,7 +2516,7 @@ static int source_file(const char *cmd_file, int ss_idx) 19@@ -2529,7 +2529,7 @@ static int source_file(const char *cmd_file, int ss_idx)
21 cp = strchr(buf, '\r'); 20 cp = strchr(buf, '\r');
22 if (cp) 21 if (cp)
23 *cp = 0; 22 *cp = 0;
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/remove.ldconfig.call.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/remove.ldconfig.call.patch
index f3e6eb778f..307088d42b 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/remove.ldconfig.call.patch
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/remove.ldconfig.call.patch
@@ -1,10 +1,10 @@
1From b139e03ac2f72e644e547c7ee9b1514383af4d97 Mon Sep 17 00:00:00 2001 1From 972086935d6c7f6e603004fd7f94bd13a65f470c Mon Sep 17 00:00:00 2001
2From: Andrei Dinu <andrei.adrianx.dinu@intel.com> 2From: Andrei Dinu <andrei.adrianx.dinu@intel.com>
3Date: Wed, 30 Jan 2013 15:22:04 +0200 3Date: Wed, 30 Jan 2013 15:22:04 +0200
4Subject: [PATCH] When /etc/ld.so.cache is writeable by user running bitbake 4Subject: [PATCH] When /etc/ld.so.cache is writeable by user running bitbake
5 then it creates invalid cache (in my case libstdc++.so 5 then it creates invalid cache (in my case libstdc++.so cannot be found after
6 cannot be found after building zlib(-native) and I have to 6 building zlib(-native) and I have to call touch */libstdc++.so &&
7 call touch */libstdc++.so && /sbin/ldconfig to fix it. 7 /sbin/ldconfig to fix it.
8 8
9So remove ldconfig call from make install-libs 9So remove ldconfig call from make install-libs
10 10
@@ -15,11 +15,11 @@ Upstream-Status: Inappropriate [disable feature]
15Signed-off-by: Scott Garman <scott.a.garman@intel.com> 15Signed-off-by: Scott Garman <scott.a.garman@intel.com>
16Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> 16Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
17--- 17---
18 lib/Makefile.elf-lib | 3 --- 18 lib/Makefile.elf-lib | 3 ---
19 1 file changed, 3 deletions(-) 19 1 file changed, 3 deletions(-)
20 20
21diff --git a/lib/Makefile.elf-lib b/lib/Makefile.elf-lib 21diff --git a/lib/Makefile.elf-lib b/lib/Makefile.elf-lib
22index 78479d3..4a4a5ac 100644 22index f850f3dd..cc1e6a70 100644
23--- a/lib/Makefile.elf-lib 23--- a/lib/Makefile.elf-lib
24+++ b/lib/Makefile.elf-lib 24+++ b/lib/Makefile.elf-lib
25@@ -50,8 +50,6 @@ install-shlibs install:: $(ELF_LIB) installdirs-elf-lib $(DEP_INSTALL_SYMLINK) 25@@ -50,8 +50,6 @@ install-shlibs install:: $(ELF_LIB) installdirs-elf-lib $(DEP_INSTALL_SYMLINK)
@@ -39,6 +39,3 @@ index 78479d3..4a4a5ac 100644
39 39
40 clean:: 40 clean::
41 $(RM) -rf elfshared 41 $(RM) -rf elfshared
42--
431.7.9.5
44
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest b/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest
index 279923db8e..1857a17189 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/run-ptest
@@ -1,7 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3set -eux
3cd ./test 4cd ./test
4SKIP_SLOW_TESTS=yes ./test_script | sed -u -e '/:[[:space:]]ok/s/^/PASS: /' -e '/:[[:space:]]failed/s/^/FAIL: /' -e '/:[[:space:]]skipped/s/^/SKIP: /' 5SKIP_SLOW_TESTS=yes ./test_script | sed -e '/:[[:space:]]ok/s/^/PASS: /' -e '/:[[:space:]]failed/s/^/FAIL: /' -e '/:[[:space:]]skipped/s/^/SKIP: /'
5rm -rf /var/volatile/tmp/*e2fsprogs* 6rm -rf /var/volatile/tmp/*e2fsprogs*
6rm -f tmp-* 7rm -f tmp-*
7rm -f *.tmp 8rm -f *.tmp
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.1.bb
index 940b47c155..022b016f12 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.1.bb
@@ -4,13 +4,14 @@ SRC_URI += "file://remove.ldconfig.call.patch \
4 file://run-ptest \ 4 file://run-ptest \
5 file://ptest.patch \ 5 file://ptest.patch \
6 file://mkdir_p.patch \ 6 file://mkdir_p.patch \
7 file://0001-libext2fs-fix-std-c23-build-failure.patch \
7 " 8 "
8SRC_URI:append:class-native = " \ 9SRC_URI:append:class-native = " \
9 file://e2fsprogs-fix-missing-check-for-permission-denied.patch \ 10 file://e2fsprogs-fix-missing-check-for-permission-denied.patch \
10 file://quiet-debugfs.patch \ 11 file://quiet-debugfs.patch \
11 " 12 "
12 13
13SRCREV = "f4c9cc4bedacde8408edda3520a32d3842290112" 14SRCREV = "b571b9b4240739a982e8bca62cfc914a3b50190a"
14UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$" 15UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$"
15 16
16EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \ 17EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \