Accepting request 830918 from network:fcoe

OBS-URL: https://build.opensuse.org/request/show/830918
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fcoe-utils?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2020-09-04 08:53:00 +00:00 committed by Git OBS Bridge
commit e39f3b0bf6
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