diff --git a/0002-fix-glic-2.33-_STAT_VER-not-defined.patch b/0002-fix-glic-2.33-_STAT_VER-not-defined.patch new file mode 100644 index 0000000..1094870 --- /dev/null +++ b/0002-fix-glic-2.33-_STAT_VER-not-defined.patch @@ -0,0 +1,33 @@ +From 9d56c292b454eff51bf9bbd60f25497bae43d65e Mon Sep 17 00:00:00 2001 +From: caodongxia <315816521@qq.com> +Date: Wed, 30 Jun 2021 09:41:47 +0800 +Subject: [PATCH] patch +Reference:https://bugs.archlinux.org/task/69572 + +--- + src/libfakechroot.h | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/src/libfakechroot.h b/src/libfakechroot.h +index f395ac4..b546c20 100644 +--- a/src/libfakechroot.h ++++ b/src/libfakechroot.h +@@ -32,6 +32,15 @@ + + #define debug fakechroot_debug + ++#ifndef _STAT_VER ++# if defined (__aarch64__) ++# define _STAT_VER 0 ++# elif defined (__x86_64__) ++# define _STAT_VER 1 ++# else ++# define _STAT_VER 3 ++# endif ++#endif + + #ifdef HAVE___ATTRIBUTE__VISIBILITY + # define LOCAL __attribute__((visibility("hidden"))) +-- +2.27.0 + diff --git a/fakechroot.spec b/fakechroot.spec index 6ffb16a..027c2ef 100644 --- a/fakechroot.spec +++ b/fakechroot.spec @@ -1,12 +1,13 @@ Name: fakechroot Version: 2.19 -Release: 8 +Release: 9 Summary: Gives a fake chroot environment License: LGPLv2+ URL: https://github.com/dex4er/fakechroot Source0: https://github.com/dex4er/fakechroot/archive/%{version}/fakechroot-%{version}.tar.gz Patch0000: 0001-Add-support-of-LFS-compatible-fts-functions.patch +Patch0001: 0002-fix-glic-2.33-_STAT_VER-not-defined.patch Requires: binutils binutils-devel Provides: fakechroot-libs = %{version}-%{release} @@ -52,6 +53,9 @@ autoreconf -vfi %{_mandir}/man1/fakechroot.1* %changelog +* Wed Jun 30 2021 caodongxia - 2.19-9 +- Fix '_STAT_VER' undeclared + * Wed Jan 22 2020 gulining - 2.19-8 - Disable test