diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-03-09 20:49:30 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-10 10:30:39 +0000 |
| commit | 43c40ea7e0970fffa0b9037d02a47830535e44f8 (patch) | |
| tree | 096cf1e10adb7de32a9a428a277c1a16c5c539b0 /meta/recipes-devtools/libdnf | |
| parent | d3ffc00752712c169ad8515f5648bc892805a339 (diff) | |
| download | poky-43c40ea7e0970fffa0b9037d02a47830535e44f8.tar.gz | |
libdnf: replace a musl fix with a better one
(From OE-Core rev: 45a350bf9df8aeeaff1f9ded75307ee60f9897a1)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/libdnf')
3 files changed, 32 insertions, 32 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-config.h-avoid-the-use-of-non-portable-__WORD.patch b/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-config.h-avoid-the-use-of-non-portable-__WORD.patch new file mode 100644 index 0000000000..f8d256e011 --- /dev/null +++ b/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-config.h-avoid-the-use-of-non-portable-__WORD.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 8aa5402393fabaf4fff51be3af4868e8dfab6da7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Tue, 9 Mar 2021 19:30:42 +0000 | ||
| 4 | Subject: [PATCH] libdnf/config.h: avoid the use of non-portable __WORDSIZE | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/1159] | ||
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 8 | --- | ||
| 9 | libdnf/config.h | 8 +++----- | ||
| 10 | 1 file changed, 3 insertions(+), 5 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/libdnf/config.h b/libdnf/config.h | ||
| 13 | index 16121f6f..2925923e 100644 | ||
| 14 | --- a/libdnf/config.h | ||
| 15 | +++ b/libdnf/config.h | ||
| 16 | @@ -18,12 +18,10 @@ | ||
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | -#include <bits/wordsize.h> | ||
| 21 | +#include <limits.h> | ||
| 22 | |||
| 23 | -#if __WORDSIZE == 32 | ||
| 24 | -#include "config-32.h" | ||
| 25 | -#elif __WORDSIZE == 64 | ||
| 26 | +#if (ULONG_MAX == 0xffffffffffffffff) | ||
| 27 | #include "config-64.h" | ||
| 28 | #else | ||
| 29 | -#error "Unknown word size" | ||
| 30 | +#include "config-32.h" | ||
| 31 | #endif | ||
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-config.h-include-the-correct-header-on-musl.patch b/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-config.h-include-the-correct-header-on-musl.patch deleted file mode 100644 index 734521bb3f..0000000000 --- a/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-config.h-include-the-correct-header-on-musl.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From 8cc7ada0161a7af38351d1e70516975402f3c5c5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Fri, 26 Feb 2021 18:37:41 +0000 | ||
| 4 | Subject: [PATCH] libdnf/config.h: include the correct header on musl | ||
| 5 | |||
| 6 | Problem reported at https://github.com/rpm-software-management/libdnf/issues/1146, | ||
| 7 | but this patch isn't quite the fix. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate | ||
| 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 11 | --- | ||
| 12 | libdnf/config.h | 5 +++++ | ||
| 13 | 1 file changed, 5 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/libdnf/config.h b/libdnf/config.h | ||
| 16 | index 16121f6f..51623ce4 100644 | ||
| 17 | --- a/libdnf/config.h | ||
| 18 | +++ b/libdnf/config.h | ||
| 19 | @@ -18,7 +18,12 @@ | ||
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 21 | */ | ||
| 22 | |||
| 23 | +#include <features.h> | ||
| 24 | +#ifdef __GLIBC__ | ||
| 25 | #include <bits/wordsize.h> | ||
| 26 | +#else | ||
| 27 | +#include <bits/reg.h> | ||
| 28 | +#endif | ||
| 29 | |||
| 30 | #if __WORDSIZE == 32 | ||
| 31 | #include "config-32.h" | ||
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.58.0.bb b/meta/recipes-devtools/libdnf/libdnf_0.58.0.bb index eea410af4c..dbe68d5a15 100644 --- a/meta/recipes-devtools/libdnf/libdnf_0.58.0.bb +++ b/meta/recipes-devtools/libdnf/libdnf_0.58.0.bb | |||
| @@ -11,7 +11,7 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master \ | |||
| 11 | file://0001-Add-WITH_TESTS-option.patch \ | 11 | file://0001-Add-WITH_TESTS-option.patch \ |
| 12 | file://0001-Look-fo-sphinx-only-if-documentation-is-actually-ena.patch \ | 12 | file://0001-Look-fo-sphinx-only-if-documentation-is-actually-ena.patch \ |
| 13 | file://enable_test_data_dir_set.patch \ | 13 | file://enable_test_data_dir_set.patch \ |
| 14 | file://0001-libdnf-config.h-include-the-correct-header-on-musl.patch \ | 14 | file://0001-libdnf-config.h-avoid-the-use-of-non-portable-__WORD.patch \ |
| 15 | " | 15 | " |
| 16 | 16 | ||
| 17 | SRCREV = "85278894f21bc1957dc47a2a09ddacf59bc3cda8" | 17 | SRCREV = "85278894f21bc1957dc47a2a09ddacf59bc3cda8" |
