!19 [sync] PR-13: 修复arm架构编译失败
From: @openeuler-sync-bot Reviewed-by: @gitee-cmd Signed-off-by: @gitee-cmd
This commit is contained in:
commit
b0d241019c
23
backport-Fix-build-error-to-change-char-type.patch
Normal file
23
backport-Fix-build-error-to-change-char-type.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 7f4c8df2adb258d61be3df7cee24afef2901629d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Guillaume Gardet <guillaume.gardet@arm.com>
|
||||||
|
Date: Thu, 20 Aug 2020 09:55:47 +0000
|
||||||
|
Subject: [PATCH 1/1] char can be unsigned on arm, so set signed explicitly as
|
||||||
|
the check expects it can be negative
|
||||||
|
|
||||||
|
---
|
||||||
|
fcnsq.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/fcnsq.c b/fcnsq.c
|
||||||
|
index 1597cd5..c59c428 100644
|
||||||
|
--- a/fcnsq.c
|
||||||
|
+++ b/fcnsq.c
|
||||||
|
@@ -381,7 +381,7 @@ int main(int argc, char *argv[])
|
||||||
|
u64 wwnn = 0;
|
||||||
|
int rc = 0;
|
||||||
|
enum commands cmd = 0;
|
||||||
|
- char c;
|
||||||
|
+ signed char c;
|
||||||
|
uintmax_t wwnn_tmp = 0;
|
||||||
|
|
||||||
|
while(1) {
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: fcoe-utils
|
Name: fcoe-utils
|
||||||
Version: 1.0.33
|
Version: 1.0.33
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Fibre Channel over Ethernet utilities
|
Summary: Fibre Channel over Ethernet utilities
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/morbidrsa/fcoe-utils
|
URL: https://github.com/morbidrsa/fcoe-utils
|
||||||
@ -11,7 +11,7 @@ Patch1: backport-01-fix_VLAN_device_name_overflow_check.patch
|
|||||||
Patch2: backport-02-string_op_truncation_format_trauncation.patch
|
Patch2: backport-02-string_op_truncation_format_trauncation.patch
|
||||||
Patch3: backport-03-use-of-uninitialized-values-detected-during-LTO.patch
|
Patch3: backport-03-use-of-uninitialized-values-detected-during-LTO.patch
|
||||||
#This patch refer to ubuntu's version
|
#This patch refer to ubuntu's version
|
||||||
|
Patch4: backport-Fix-build-error-to-change-char-type.patch
|
||||||
|
|
||||||
BuildRequires: autoconf automake libpciaccess-devel libtool lldpad-devel systemd
|
BuildRequires: autoconf automake libpciaccess-devel libtool lldpad-devel systemd
|
||||||
Requires: lldpad iproute device-mapper-multipath
|
Requires: lldpad iproute device-mapper-multipath
|
||||||
@ -67,6 +67,9 @@ done
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 03 2022 xu_ping <xuping33@huawei.com> - 1.0.33-3
|
||||||
|
- Backport upstream patch to avoid non-X86 build break.
|
||||||
|
|
||||||
* Wed Aug 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.0.33-2
|
* Wed Aug 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.0.33-2
|
||||||
- Fix fcoe.service start error
|
- Fix fcoe.service start error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user