From c811757451ddf3ad446c40d15593f879359243eda597d6b53ba81145bf2563e1 Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Mon, 31 Aug 2020 18:43:13 +0000 Subject: [PATCH] Accepting request 828115 from home:Guillaume_G:branches:openSUSE:Factory:ARM - Add patch to fix build on architectures where char is unsigned (%arm, aarch64): * fcoe-utils-fix-arm.patch OBS-URL: https://build.opensuse.org/request/show/828115 OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=46 --- fcoe-utils-fix-arm.patch | 11 +++++++++++ fcoe-utils.changes | 7 +++++++ fcoe-utils.spec | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 fcoe-utils-fix-arm.patch diff --git a/fcoe-utils-fix-arm.patch b/fcoe-utils-fix-arm.patch new file mode 100644 index 0000000..d59dbb2 --- /dev/null +++ b/fcoe-utils-fix-arm.patch @@ -0,0 +1,11 @@ +--- fcoe-utils-1.0.33.orig/fcnsq.c 2020-08-20 09:43:36.227637286 +0000 ++++ fcoe-utils-1.0.33/fcnsq.c 2020-08-20 09:43:50.307246472 +0000 +@@ -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) { diff --git a/fcoe-utils.changes b/fcoe-utils.changes index 6987871..a64487b 100644 --- a/fcoe-utils.changes +++ b/fcoe-utils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 20 09:49:22 UTC 2020 - Guillaume GARDET + +- Add patch to fix build on architectures where char is + unsigned (%arm, aarch64): + * fcoe-utils-fix-arm.patch + ------------------------------------------------------------------- Wed Jul 15 17:24:06 UTC 2020 - Lee Duncan diff --git a/fcoe-utils.spec b/fcoe-utils.spec index e8c7852..9c11b9a 100644 --- a/fcoe-utils.spec +++ b/fcoe-utils.spec @@ -38,6 +38,8 @@ License: GPL-2.0-only Group: System/Daemons Source: %{name}-%{version}.tar.xz Patch1: Handle-NIC-names-longer-than-7-characters.patch +# PATCH-FIX-UPSTREAM - https://github.com/openSUSE/fcoe-utils/pull/14 +Patch2: fcoe-utils-fix-arm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} @@ -49,6 +51,7 @@ connections. %prep %setup -q %patch1 -p1 +%patch2 -p1 %build autoreconf -vi