!246 Fix missing declaration of strchrnul in rpm-sort
From: @zhangqiumiao Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
4c3592e7c5
42
0202-rpm-sort-add-prereqs-for-declaration-of-strchrnul.patch
Normal file
42
0202-rpm-sort-add-prereqs-for-declaration-of-strchrnul.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
From da43f9b55b5084a1c9f72785fa29ec62e70658c2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Robbie Harwood <rharwood@redhat.com>
|
||||||
|
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 <rharwood@redhat.com>
|
||||||
|
---
|
||||||
|
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 <config.h>
|
||||||
|
+
|
||||||
|
+#include <argp.h>
|
||||||
|
+#include <assert.h>
|
||||||
|
+#include <errno.h>
|
||||||
|
#include <grub/types.h>
|
||||||
|
#include <grub/util/misc.h>
|
||||||
|
+#include <rpm/rpmlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
-#include <errno.h>
|
||||||
|
-#include <assert.h>
|
||||||
|
-#include <argp.h>
|
||||||
|
-#include <rpm/rpmlib.h>
|
||||||
|
|
||||||
|
static size_t
|
||||||
|
read_file (const char *input, char **ret)
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -309,3 +309,4 @@ Patch0304: loongarch-Add-EFI-frame-buffer-support.patch
|
|||||||
Patch0305: loongarch-Add-support-for-v4.0-interface.patch
|
Patch0305: loongarch-Add-support-for-v4.0-interface.patch
|
||||||
Patch0306: loongarch-Add-support-for-new-EFI-screen-info-GUID.patch
|
Patch0306: loongarch-Add-support-for-new-EFI-screen-info-GUID.patch
|
||||||
%endif
|
%endif
|
||||||
|
Patch0307: 0202-rpm-sort-add-prereqs-for-declaration-of-strchrnul.patch
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.06
|
Version: 2.06
|
||||||
Release: 24
|
Release: 25
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/grub/
|
URL: http://www.gnu.org/software/grub/
|
||||||
@ -439,6 +439,12 @@ fi
|
|||||||
%{_datadir}/man/man*
|
%{_datadir}/man/man*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 11 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-25
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Fix missing declaration of strchrnul in rpm-sort
|
||||||
|
|
||||||
* Fri Mar 10 2023 mengyingkun <mengyingkun@loongson.cn> - 1:2.06-24
|
* Fri Mar 10 2023 mengyingkun <mengyingkun@loongson.cn> - 1:2.06-24
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user