[packages/mstflint] - added types patch (fixes x32 build) - release 2
qboosh
qboosh at pld-linux.org
Sun Jun 26 13:51:09 CEST 2016
commit 2ee6f1c54c6c3dce076f48aa0e17dafcf221eb0d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jun 26 13:51:12 2016 +0200
- added types patch (fixes x32 build)
- release 2
mstflint-types.patch | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++
mstflint.spec | 6 +++++-
2 files changed, 58 insertions(+), 1 deletion(-)
---
diff --git a/mstflint.spec b/mstflint.spec
index 9c65926..5464144 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -2,16 +2,19 @@ Summary: Firmware burning and diagnostic tools for Mellanox HCA/NIC cards
Summary(pl.UTF-8): Narzędzia modyfikujące firmware i diagnostyczne dla kart HCA/NIC Mellanox
Name: mstflint
Version: 4.4.0
-Release: 1
+Release: 2
License: BSD or GPL v2
Group: Networking/Utilities
Source0: http://www.openfabrics.org/downloads/mstflint/%{name}-%{version}.tar.gz
# Source0-md5: 8846152be0581c76396e60e94e953c59
+Patch0: %{name}-types.patch
URL: http://www.openfabrics.org/
BuildRequires: libibmad-devel
BuildRequires: libstdc++-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
+# see common/compatibility.h
+ExclusiveArch: %{ix86} %{x8664} x32 aarch64 ia64 ppc ppc64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -35,6 +38,7 @@ Pliki nagłówkowe do dostępu do kart HCA/NIC Mellanox.
%prep
%setup -q
+%patch0 -p1
%build
%configure \
diff --git a/mstflint-types.patch b/mstflint-types.patch
new file mode 100644
index 0000000..4d1ec38
--- /dev/null
+++ b/mstflint-types.patch
@@ -0,0 +1,53 @@
+--- mstflint-4.4.0/common/compatibility.h.orig 2016-05-24 14:52:16.000000000 +0200
++++ mstflint-4.4.0/common/compatibility.h 2016-06-26 13:10:41.042393009 +0200
+@@ -40,7 +40,7 @@
+
+ #include <stdio.h>
+
+-#if defined(__ia64__) || defined(__x86_64__) || defined(__PPC64__)
++#if (defined(__ia64__) || defined(__x86_64__) || defined(__PPC64__)) && !defined(__ILP32__)
+ #define U64L "l"
+ #else
+ #define U64L "ll"
+@@ -92,8 +92,8 @@
+ #define U16H_FMT "0x%04x"
+ #define U8H_FMT "0x%02x"
+
+-#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD)
+-# if defined(__MINGW32__) || defined(__MINGW64__)
++#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD) || defined(__ILP32__)
++# if defined(__MINGW32__) || defined(__MINGW64__) /* || defined(__GNUC__) */
+ # include <inttypes.h>
+ # define U64D_FMT "0x%"PRId64
+ # define U64H_FMT "0x%"PRIx64
+--- mstflint-4.4.0/mtcr_ul/packets_common.h.orig 2016-05-24 14:52:19.000000000 +0200
++++ mstflint-4.4.0/mtcr_ul/packets_common.h 2016-06-26 13:26:41.285456968 +0200
+@@ -162,7 +162,7 @@
+ /* define macros for print fields */
+ //#if defined (ARCH_ia64) || defined(ARCH_x86_64) || defined(ARCH_ppc64) || defined(__MINGW64__)
+ /*
+-#if !defined(UEFI_BUILD) && (defined (ARCH_ia64) || defined(ARCH_x86_64) || defined(ARCH_ppc64) || defined(__MINGW64__))
++#if !defined(UEFI_BUILD) && !defined(__ILP32__) && (defined (ARCH_ia64) || defined(ARCH_x86_64) || defined(ARCH_ppc64) || defined(__MINGW64__))
+ # define U64H_FMT "0x%016lx"
+ # define U64D_FMT "%lu"
+ # define U32H_FMT "0x%08x"
+@@ -170,7 +170,7 @@
+ # define U8H_FMT "0x%02x"
+ # define U32D_FMT "%u"
+ # define STR_FMT "%s"
+-#elif defined(ARCH_x86) || defined(ARCH_ppc) || defined(__MINGW32__) || defined(UEFI_BUILD)
++#elif defined(ARCH_x86) || defined(ARCH_ppc) || defined(__MINGW32__) || defined(UEFI_BUILD) || defined(__ILP32__)
+ # define U64H_FMT "0x%016llx"
+ # define U64D_FMT "%llu"
+ # define U32H_FMT "0x%08x"
+--- mstflint-4.4.0/tools_layouts/adb_to_c_utils.h.orig 2016-06-26 13:28:56.112446417 +0200
++++ mstflint-4.4.0/tools_layouts/adb_to_c_utils.h 2016-06-26 13:28:59.142603500 +0200
+@@ -169,7 +169,7 @@
+ #define U16H_FMT "0x%04x"
+ #define U8H_FMT "0x%02x"
+
+-#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD)
++#if defined(ARCH_x86) || defined(ARCH_ppc) || defined(UEFI_BUILD) || defined(__ILP32__)
+ # if defined(__MINGW32__) || defined(__MINGW64__)
+ # include <inttypes.h>
+ # define U64D_FMT "0x%"PRId64
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mstflint.git/commitdiff/2ee6f1c54c6c3dce076f48aa0e17dafcf221eb0d
More information about the pld-cvs-commit
mailing list