diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-06 21:15:41 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:44:21 +0100 |
| commit | 4e95bdc09bce3c912329d80ecf9736e236337fe3 (patch) | |
| tree | 98ec81fdde8122d34e8375134d2fc70b43d5692d /meta/recipes-bsp | |
| parent | add915e205b58114b6333339246ec87abbaa613a (diff) | |
| download | poky-4e95bdc09bce3c912329d80ecf9736e236337fe3.tar.gz | |
efivar: Fix build with glibc 2.36
(From OE-Core rev: e9eecb01c6742411531af1e269de467dcc8ef794)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
| -rw-r--r-- | meta/recipes-bsp/efivar/efivar/0001-Fix-glibc-2.36-build-mount.h-conflicts.patch | 60 | ||||
| -rw-r--r-- | meta/recipes-bsp/efivar/efivar_38.bb | 1 |
2 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-bsp/efivar/efivar/0001-Fix-glibc-2.36-build-mount.h-conflicts.patch b/meta/recipes-bsp/efivar/efivar/0001-Fix-glibc-2.36-build-mount.h-conflicts.patch new file mode 100644 index 0000000000..28dadabe6b --- /dev/null +++ b/meta/recipes-bsp/efivar/efivar/0001-Fix-glibc-2.36-build-mount.h-conflicts.patch | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | From 7b0e7ba674321ec1ddd6b9cbb419e5fb44f88bb3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robbie Harwood <rharwood@redhat.com> | ||
| 3 | Date: Thu, 28 Jul 2022 16:11:24 -0400 | ||
| 4 | Subject: [PATCH] Fix glibc 2.36 build (mount.h conflicts) | ||
| 5 | |||
| 6 | glibc has decided that sys/mount.h and linux/mount.h are no longer | ||
| 7 | usable at the same time. This broke the build, since linux/fs.h itself | ||
| 8 | includes linux/mount.h. For now, fix the build by only including | ||
| 9 | sys/mount.h where we need it. | ||
| 10 | |||
| 11 | See-also: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E | ||
| 12 | Resolves: #227 | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://github.com/rhboot/efivar/commit/bc65d63ebf8fe6ac8a099ff15ca200986dba1565] | ||
| 15 | Signed-off-by: Robbie Harwood <rharwood@redhat.com> | ||
| 16 | --- | ||
| 17 | src/gpt.c | 1 + | ||
| 18 | src/linux.c | 1 + | ||
| 19 | src/util.h | 1 - | ||
| 20 | 3 files changed, 2 insertions(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/src/gpt.c b/src/gpt.c | ||
| 23 | index 1eda049..21413c3 100644 | ||
| 24 | --- a/src/gpt.c | ||
| 25 | +++ b/src/gpt.c | ||
| 26 | @@ -17,6 +17,7 @@ | ||
| 27 | #include <stdio.h> | ||
| 28 | #include <stdlib.h> | ||
| 29 | #include <string.h> | ||
| 30 | +#include <sys/mount.h> | ||
| 31 | #include <sys/param.h> | ||
| 32 | #include <sys/stat.h> | ||
| 33 | #include <sys/utsname.h> | ||
| 34 | diff --git a/src/linux.c b/src/linux.c | ||
| 35 | index 47e45ae..1780816 100644 | ||
| 36 | --- a/src/linux.c | ||
| 37 | +++ b/src/linux.c | ||
| 38 | @@ -20,6 +20,7 @@ | ||
| 39 | #include <stdbool.h> | ||
| 40 | #include <stdio.h> | ||
| 41 | #include <sys/ioctl.h> | ||
| 42 | +#include <sys/mount.h> | ||
| 43 | #include <sys/socket.h> | ||
| 44 | #include <sys/sysmacros.h> | ||
| 45 | #include <sys/types.h> | ||
| 46 | diff --git a/src/util.h b/src/util.h | ||
| 47 | index 3300666..1e67e44 100644 | ||
| 48 | --- a/src/util.h | ||
| 49 | +++ b/src/util.h | ||
| 50 | @@ -23,7 +23,6 @@ | ||
| 51 | #include <stdio.h> | ||
| 52 | #include <string.h> | ||
| 53 | #include <sys/ioctl.h> | ||
| 54 | -#include <sys/mount.h> | ||
| 55 | #include <sys/stat.h> | ||
| 56 | #include <sys/types.h> | ||
| 57 | #include <tgmath.h> | ||
| 58 | -- | ||
| 59 | 2.37.1 | ||
| 60 | |||
diff --git a/meta/recipes-bsp/efivar/efivar_38.bb b/meta/recipes-bsp/efivar/efivar_38.bb index 42625fa041..6a6918931b 100644 --- a/meta/recipes-bsp/efivar/efivar_38.bb +++ b/meta/recipes-bsp/efivar/efivar_38.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI = "git://github.com/rhinstaller/efivar.git;branch=main;protocol=https \ | |||
| 12 | file://0001-src-Makefile-build-util.c-separately-for-makeguids.patch \ | 12 | file://0001-src-Makefile-build-util.c-separately-for-makeguids.patch \ |
| 13 | file://efisecdb-fix-build-with-musl-libc.patch \ | 13 | file://efisecdb-fix-build-with-musl-libc.patch \ |
| 14 | file://0001-Fix-invalid-free-in-main.patch \ | 14 | file://0001-Fix-invalid-free-in-main.patch \ |
| 15 | file://0001-Fix-glibc-2.36-build-mount.h-conflicts.patch \ | ||
| 15 | " | 16 | " |
| 16 | SRCREV = "1753149d4176ebfb2b135ac0aaf79340bf0e7a93" | 17 | SRCREV = "1753149d4176ebfb2b135ac0aaf79340bf0e7a93" |
| 17 | 18 | ||
