diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-03-09 15:57:52 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-18 12:21:45 +0000 |
| commit | 9d4c2be5646a29d43c4d0db878e8b133292c9c7c (patch) | |
| tree | 47e364d7eb289f2d3180611746e0fad86f7eb18e /meta | |
| parent | 8ffe194baa7ce9beb5ae74058d212b9488ca382a (diff) | |
| download | poky-9d4c2be5646a29d43c4d0db878e8b133292c9c7c.tar.gz | |
elfutils: Fix build break with clang
(From OE-Core rev: 68923430069fcc049ad9c5f7830f72c1c3e7d501)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.191.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/elfutils/files/0001-debuginfod-Remove-unused-variable.patch | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.191.bb b/meta/recipes-devtools/elfutils/elfutils_0.191.bb index b3b2476f0f..c5c1542b05 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.191.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.191.bb | |||
| @@ -21,6 +21,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ | |||
| 21 | file://0001-skip-the-test-when-gcc-not-deployed.patch \ | 21 | file://0001-skip-the-test-when-gcc-not-deployed.patch \ |
| 22 | file://ptest.patch \ | 22 | file://ptest.patch \ |
| 23 | file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ | 23 | file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ |
| 24 | file://0001-debuginfod-Remove-unused-variable.patch \ | ||
| 24 | " | 25 | " |
| 25 | SRC_URI:append:libc-musl = " \ | 26 | SRC_URI:append:libc-musl = " \ |
| 26 | file://0003-musl-utils.patch \ | 27 | file://0003-musl-utils.patch \ |
diff --git a/meta/recipes-devtools/elfutils/files/0001-debuginfod-Remove-unused-variable.patch b/meta/recipes-devtools/elfutils/files/0001-debuginfod-Remove-unused-variable.patch new file mode 100644 index 0000000000..81f49dbf21 --- /dev/null +++ b/meta/recipes-devtools/elfutils/files/0001-debuginfod-Remove-unused-variable.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From c3502140e51886bffc6ae5cd256308e40e0cbb78 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 9 Mar 2024 15:52:32 -0800 | ||
| 4 | Subject: [PATCH] debuginfod: Remove unused variable | ||
| 5 | |||
| 6 | Recent commit acd9525e9 has removed all references to max_fds | ||
| 7 | therefore remove it, moreover clang18 is happier | ||
| 8 | |||
| 9 | | ../../elfutils-0.191/debuginfod/debuginfod.cxx:1448:8: error: private field 'max_fds' is not used [-Werror,-Wunused-private-field] | ||
| 10 | | 1448 | long max_fds; | ||
| 11 | | | ^ | ||
| 12 | | 1 error generated. | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://sourceware.org/pipermail/elfutils-devel/2024q1/006900.html] | ||
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 16 | --- | ||
| 17 | debuginfod/debuginfod.cxx | 1 - | ||
| 18 | 1 file changed, 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx | ||
| 21 | index 560880f2..72617848 100644 | ||
| 22 | --- a/debuginfod/debuginfod.cxx | ||
| 23 | +++ b/debuginfod/debuginfod.cxx | ||
| 24 | @@ -1445,7 +1445,6 @@ private: | ||
| 25 | |||
| 26 | map<key,fdcache_entry> entries; // optimized for lookup | ||
| 27 | time_t last_cleaning; | ||
| 28 | - long max_fds; | ||
| 29 | long max_mbs; | ||
| 30 | |||
| 31 | public: | ||
| 32 | -- | ||
| 33 | 2.44.0 | ||
| 34 | |||
