!21 [sync] PR-20: 添加sw架构

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2022-11-03 01:44:16 +00:00 committed by Gitee
commit 95ef717c79
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 30 additions and 1 deletions

24
zziplib-0.13.71-sw.patch Executable file
View File

@ -0,0 +1,24 @@
diff -Naur zziplib-0.13.71.org/configure zziplib-0.13.71.sw/configure
--- zziplib-0.13.71.org/configure 2022-02-28 06:07:23.580000000 +0000
+++ zziplib-0.13.71.sw/configure 2022-02-28 06:08:52.270000000 +0000
@@ -14802,7 +14802,7 @@
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = "yes"; then
- case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
+ case "$host_cpu" in sw_64*|alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
ax_cv_have_aligned_access_required="yes"
;; esac
else
diff -Naur zziplib-0.13.71.org/m4/ax_check_aligned_access_required.m4 zziplib-0.13.71.sw/m4/ax_check_aligned_access_required.m4
--- zziplib-0.13.71.org/m4/ax_check_aligned_access_required.m4 2022-02-28 06:07:23.590000000 +0000
+++ zziplib-0.13.71.sw/m4/ax_check_aligned_access_required.m4 2022-02-28 06:08:21.470000000 +0000
@@ -29,7 +29,7 @@
[AC_CACHE_CHECK([if pointers to integers require aligned access],
[ax_cv_have_aligned_access_required],
[if test "$cross_compiling" = "yes"; then
- case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
+ case "$host_cpu" in sw_64*|alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
ax_cv_have_aligned_access_required="yes"
;; esac
else

View File

@ -4,7 +4,7 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
Name: zziplib Name: zziplib
Version: 0.13.71 Version: 0.13.71
Release: 3 Release: 4
Summary: Lightweight library for zip compression Summary: Lightweight library for zip compression
License: LGPLv2+ or MPLv1.1 License: LGPLv2+ or MPLv1.1
URL: http://zziplib.sourceforge.net URL: http://zziplib.sourceforge.net
@ -17,6 +17,7 @@ Patch6003: backport-0004-CVE-2020-18442.patch
Patch6004: backport-0005-CVE-2020-18442.patch Patch6004: backport-0005-CVE-2020-18442.patch
Patch6005: backport-0006-CVE-2020-18442.patch Patch6005: backport-0006-CVE-2020-18442.patch
Patch6006: backport-0007-CVE-2020-18442.patch Patch6006: backport-0007-CVE-2020-18442.patch
Patch6007: zziplib-0.13.71-sw.patch
BuildRequires: perl-interpreter zip xmlto BuildRequires: perl-interpreter zip xmlto
BuildRequires: zlib-devel SDL-devel pkgconfig autoconf automake gcc make BuildRequires: zlib-devel SDL-devel pkgconfig autoconf automake gcc make
@ -58,6 +59,7 @@ sed -i -e 's:docs ::g' Makefile.am
%patch6004 -p1 %patch6004 -p1
%patch6005 -p1 %patch6005 -p1
%patch6006 -p1 %patch6006 -p1
%patch6007 -p1
%build %build
%configure --disable-static --enable-sdl --enable-frame-pointer --enable-builddir=_builddir %configure --disable-static --enable-sdl --enable-frame-pointer --enable-builddir=_builddir
@ -91,6 +93,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 0.13.71-4
- Add sw64 architecture
* Sat Sep 04 2021 shixuantong <shixuantong@huawei.com> - 0.13.71-3 * Sat Sep 04 2021 shixuantong <shixuantong@huawei.com> - 0.13.71-3
- remove rpath - remove rpath