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
This commit is contained in:
Lee Duncan
2020-08-31 18:43:13 +00:00
committed by Git OBS Bridge
parent 47f65c45c4
commit c811757451
3 changed files with 21 additions and 0 deletions

11
fcoe-utils-fix-arm.patch Normal file
View File

@@ -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) {

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Aug 20 09:49:22 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- 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 <lduncan@suse.com>

View File

@@ -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