From 19b6af1b05045c9bda2b035946c44bc002b7c127 Mon Sep 17 00:00:00 2001 From: e Date: Mon, 9 Aug 2021 09:50:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20gcc=2010=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=20libwd=20=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bugfix-of-gcc-10.patch | 21 +++++++++++++++++++++ warpdrive.spec | 8 ++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 bugfix-of-gcc-10.patch diff --git a/bugfix-of-gcc-10.patch b/bugfix-of-gcc-10.patch new file mode 100644 index 0000000..7669b25 --- /dev/null +++ b/bugfix-of-gcc-10.patch @@ -0,0 +1,21 @@ +diff -Nur a/uadk/v1/wd.h b/uadk/v1/wd.h +--- a/uadk/v1/wd.h 2021-07-01 21:56:26.000000000 +0800 ++++ b/uadk/v1/wd.h 2021-08-07 14:08:16.547113400 +0800 +@@ -140,7 +140,7 @@ + + #ifndef WD_ERR + #ifndef WITH_LOG_FILE +-wd_log log_out; ++extern wd_log log_out; + + #define __WD_FILENAME__ (strrchr(__FILE__, '/') ? \ + ((char *)((uintptr_t)strrchr(__FILE__, '/') + 1)) : __FILE__) +@@ -150,7 +150,7 @@ + __WD_FILENAME__, __LINE__, __func__, ##args) : \ + fprintf(stderr, format, ##args)) + #else +-FILE *flog_fd; ++extern FILE *flog_fd; + #define WD_ERR(format, args...) \ + if (!flog_fd) \ + flog_fd = fopen(WITH_LOG_FILE, "a+"); \ diff --git a/warpdrive.spec b/warpdrive.spec index e7fd788..79d29c5 100644 --- a/warpdrive.spec +++ b/warpdrive.spec @@ -1,7 +1,7 @@ Name: libwd Summary: User Space Accelerator Development Kit Version: 2.3.11 -Release: 2 +Release: 3 License: Apache-2.0 Source: %{name}-%{version}.tar.gz Vendor: Huawei Corporation @@ -14,6 +14,7 @@ BuildRequires: numactl-devel BuildRequires: automake, autoconf, libtool BuildRequires: gcc, make ExclusiveArch: aarch64 +Patch0001: bugfix-of-gcc-10.patch %description This package contains the User Space Accelerator Library @@ -22,7 +23,7 @@ and decryption, asymmetric encryption and decryption. %prep %global debug_package %{nil} -%setup -c -n %{name}-%{version} +%autosetup -c -n %{name}-%{version} -p1 %build cd uadk @@ -154,6 +155,9 @@ fi /sbin/ldconfig %changelog +* Fri Aug 06 2021 Pengju Jiang 2.3.11-3 +- bugfix-of-gcc-10.patch + * Wed Jul 21 2021 caodongxia 2.3.11-2 - change uacce.h path.