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