From 805dfb5bfac608075dcd9db544b47423e24d2beb Mon Sep 17 00:00:00 2001 From: wxiat Date: Fri, 30 Jun 2023 16:42:11 +0800 Subject: [PATCH] add sw Signed-off-by: wxiat --- cpio-2.12-sw.patch | 12 ++++++++++++ cpio.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 cpio-2.12-sw.patch diff --git a/cpio-2.12-sw.patch b/cpio-2.12-sw.patch new file mode 100644 index 0000000..a34c4a5 --- /dev/null +++ b/cpio-2.12-sw.patch @@ -0,0 +1,12 @@ +diff -Nuar cpio-2.12.org/gnu/unistd.in.h cpio-2.12.sw/gnu/unistd.in.h +--- cpio-2.12.org/gnu/unistd.in.h 2023-06-30 16:33:48.828895835 +0800 ++++ cpio-2.12.sw/gnu/unistd.in.h 2023-06-30 16:37:54.198538166 +0800 +@@ -849,7 +849,7 @@ + # endif + /* This is for older VMS. */ + # if !defined _gl_getpagesize && defined __VMS +-# ifdef __ALPHA ++# if (defined __ALPHA) || (defined __SW_64) + # define _gl_getpagesize() 8192 + # else + # define _gl_getpagesize() 512 diff --git a/cpio.spec b/cpio.spec index ba1c411..978c1f4 100644 --- a/cpio.spec +++ b/cpio.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Summary: A GNU archiving program Name: cpio Version: 2.12 @@ -63,6 +63,7 @@ Patch11: cpio-2.13-CVE-2021-38185.patch # backport from upstream Patch1001: 1001-remove-superfluous-declaration-of-program_name-to-fix-gcc10-issue.patch # End: Anolis customized patches +Patch1002: cpio-2.12-sw.patch Provides: bundled(gnulib) Provides: /bin/cpio @@ -124,6 +125,9 @@ make check || { %{_infodir}/*.info* %changelog +* Fri Jun 30 2023 wxiat - 2.12-11.0.2 +- add sw arch + * Thu Apr 14 2022 Weitao Zhou 2.12-11.0.1 - Remove superfluous declaration of program_name to fix gcc10 build issue -- Gitee