diff --git a/0003-Makefile-Wno-error-deprecated-declarations.patch b/0003-Makefile-Wno-error-deprecated-declarations.patch new file mode 100644 index 0000000000000000000000000000000000000000..3eb82a479343f9c59470d5dc35b299ee6a36fbb9 --- /dev/null +++ b/0003-Makefile-Wno-error-deprecated-declarations.patch @@ -0,0 +1,29 @@ +From 66dc5270e2aaa39d2bb35c8327591336575886c8 Mon Sep 17 00:00:00 2001 +From: mmlidc +Date: Mon, 17 Apr 2023 17:08:56 +0800 +Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Makefile--Wno-error=3Ddepreca?= + =?UTF-8?q?ted-declarations?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + KAE/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/KAE/Makefile b/KAE/Makefile +index 9490f7e..c592c12 100644 +--- a/KAE/Makefile ++++ b/KAE/Makefile +@@ -56,7 +56,7 @@ LIBS := -lcrypto -lwd -pthread + LIBS += -lc_nonshared + + # The flags +-CFLAGS := -Wall -Werror -fstack-protector-all -fPIC -D_GNU_SOURCE -shared -fgnu89-inline ++CFLAGS := -Wall -Wno-error=deprecated-declarations -fstack-protector-all -fPIC -D_GNU_SOURCE -shared -fgnu89-inline + LDFLAGS := $(LIBDIR) + LDFLAGS += $(LIBS) + LDFLAGS += -Wl,-z,relro,-z,now,-z,noexecstack #safe link option +-- +2.33.0 + diff --git a/kae.spec b/kae.spec index a14de2c946541b85fbc0b3921501e025db4041df..bd14c47d61d2fe9296f35204f5582a243278becb 100644 --- a/kae.spec +++ b/kae.spec @@ -3,7 +3,7 @@ Name: libkae Summary: Huawei Kunpeng Accelerator Engine Version: 1.2.10 -Release: 5 +Release: 6 License: Apache-2.0 Source: %{name}-%{version}.tar.gz Vendor: Huawei Corporation @@ -19,6 +19,7 @@ ExclusiveArch: aarch64 Patch0001: 0001-Don-t-redefine-gettid-if-glibc-provides-it.patch Patch0002: 0002-fix-pthread_yield.patch +Patch0003: 0003-Makefile-Wno-error-deprecated-declarations.patch %description This package contains the Huawei Kunpeng Accelerator Engine @@ -33,6 +34,7 @@ chmod +x configure make %install +export QA_SKIP_RPATHS=1 mkdir -p ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1 install -b -m755 KAE/libkae.so.%{version} ${RPM_BUILD_ROOT}/usr/local/lib/engines-1.1 @@ -68,6 +70,9 @@ fi /sbin/ldconfig %changelog +* Mon Apr 17 2023 li-miaomiao_zhr 1.2.10-6 +- 【EBS】libkae build problem in openEuler:22.03:LTS:Next + * Thu Aug 12 2021 caodongxia 1.2.10-5 - Fix pthread_yield is deprecated