diff --git a/0202-rpm-sort-add-prereqs-for-declaration-of-strchrnul.patch b/0202-rpm-sort-add-prereqs-for-declaration-of-strchrnul.patch new file mode 100644 index 0000000000000000000000000000000000000000..98473476ca63ad95d2e1e61cfa001a16a9cff7de --- /dev/null +++ b/0202-rpm-sort-add-prereqs-for-declaration-of-strchrnul.patch @@ -0,0 +1,42 @@ +From da43f9b55b5084a1c9f72785fa29ec62e70658c2 Mon Sep 17 00:00:00 2001 +From: Robbie Harwood +Date: Thu, 5 May 2022 18:01:05 -0400 +Subject: [PATCH] rpm-sort: add prereqs for declaration of strchrnul() + +Reference:https://src.fedoraproject.org/rpms/grub2/c/ea7cfdf72690c5d6e15af02a3e395a40dd24f7c7 +Conflict:NA + +Signed-off-by: Robbie Harwood +--- + util/grub-rpm-sort.c | 12 ++++++++---- + 1 file changed, 8 insertions(+), 4 deletions(-) + +diff --git a/util/grub-rpm-sort.c b/util/grub-rpm-sort.c +index 8345944..71d038b 100644 +--- a/util/grub-rpm-sort.c ++++ b/util/grub-rpm-sort.c +@@ -1,13 +1,17 @@ ++#define _GNU_SOURCE 1 ++ + #include ++ ++#include ++#include ++#include + #include + #include ++#include + #include + #include ++#include + #include +-#include +-#include +-#include +-#include + + static size_t + read_file (const char *input, char **ret) +-- +2.27.0 + diff --git a/grub.patches b/grub.patches index 4c6b32949d20a5f1b64cff64413ad38961965e36..8fb69039bd9e7ef8dfb8b87267529dca6a5ac196 100644 --- a/grub.patches +++ b/grub.patches @@ -309,3 +309,4 @@ Patch0304: loongarch-Add-EFI-frame-buffer-support.patch Patch0305: loongarch-Add-support-for-v4.0-interface.patch Patch0306: loongarch-Add-support-for-new-EFI-screen-info-GUID.patch %endif +Patch0307: 0202-rpm-sort-add-prereqs-for-declaration-of-strchrnul.patch diff --git a/grub2.spec b/grub2.spec index 718d0446498ed5748228f38482904a857d330c26..78b20874d176b93d7062c19084647dc0a2d5d7b8 100644 --- a/grub2.spec +++ b/grub2.spec @@ -14,7 +14,7 @@ Name: grub2 Epoch: 1 Version: 2.06 -Release: 24 +Release: 25 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -439,6 +439,12 @@ fi %{_datadir}/man/man* %changelog +* Sat Mar 11 2023 zhangqiumiao - 1:2.06-25 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Fix missing declaration of strchrnul in rpm-sort + * Fri Mar 10 2023 mengyingkun - 1:2.06-24 - Type:bugfix - CVE:NA