This commit is contained in:
caodongxia 2021-06-30 10:43:42 +08:00
parent 5c944119b8
commit 0464474c55
2 changed files with 38 additions and 1 deletions

View File

@ -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
Referencehttps://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

View File

@ -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<caodongxia@huawei.com> - 2.19-9
- Fix '_STAT_VER' undeclared
* Wed Jan 22 2020 gulining<gulining1@huawei.com> - 2.19-8
- Disable test