From b05cbb1201d082ea15d412b36d2a8cc827bc1812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 18 Feb 2021 11:44:56 +0000 Subject: [PATCH] Add patch "STAT_VER changes for different architectures" --- ...1fb5071b86d70d5a3e207addaabdde23111e.patch | 30 +++++++++++++++++++ fakeroot.spec | 5 ++-- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 57731fb5071b86d70d5a3e207addaabdde23111e.patch diff --git a/57731fb5071b86d70d5a3e207addaabdde23111e.patch b/57731fb5071b86d70d5a3e207addaabdde23111e.patch new file mode 100644 index 0000000..1f703f9 --- /dev/null +++ b/57731fb5071b86d70d5a3e207addaabdde23111e.patch @@ -0,0 +1,30 @@ +From 57731fb5071b86d70d5a3e207addaabdde23111e Mon Sep 17 00:00:00 2001 +From: Dimitri John Ledkov +Date: Wed, 17 Feb 2021 14:41:43 +0000 +Subject: [PATCH] Add _STAT_VER defines for ppc64le, riscv64, s390x. + +Signed-off-by: Dimitri John Ledkov +--- + libfakeroot.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/libfakeroot.c b/libfakeroot.c +index 7593dd6..f9ca182 100644 +--- a/libfakeroot.c ++++ b/libfakeroot.c +@@ -93,6 +93,12 @@ + #ifndef _STAT_VER + #if defined (__aarch64__) + #define _STAT_VER 0 ++ #elif defined (__powerpc__) && __WORDSIZE == 64 ++ #define _STAT_VER 1 ++ #elif defined (__riscv) && __riscv_xlen==64 ++ #define _STAT_VER 0 ++ #elif defined (__s390x__) ++ #define _STAT_VER 1 + #elif defined (__x86_64__) + #define _STAT_VER 1 + #else +-- +GitLab + diff --git a/fakeroot.spec b/fakeroot.spec index b67af68..7225f17 100644 --- a/fakeroot.spec +++ b/fakeroot.spec @@ -22,8 +22,7 @@ Patch6: 0001-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch Patch7: 0002-libfakeroot.c-add-wrappers-for-new-glibc-2.33-symbol.patch Patch8: 0003-libfakeroot.c-fix-compile-error-with-DEBUG-enabled.patch Patch9: 0004-configure.ac-fix-__xmknod-at-pointer-argument.patch -#Patch10: 0005-libfakeroot.c-fix-fts_read-and-fts_children.patch -Patch11: 0006-OS-X-portability.patch +Patch10: 57731fb5071b86d70d5a3e207addaabdde23111e.patch BuildRequires: make @@ -168,7 +167,7 @@ fi 0002-libfakeroot.c-add-wrappers-for-new-glibc-2.33-symbol.patch 0003-libfakeroot.c-fix-compile-error-with-DEBUG-enabled.patch 0004-configure.ac-fix-__xmknod-at-pointer-argument.patch - 0006-OS-X-portability.patch +- Add patch "STAT_VER changes for different architectures" * Wed Oct 14 2020 Dominik Mierzejewski - 1.25.3-1 - update to 1.25.3 (#1886610)