[packages/fakeroot] - added x32 patch, release 2

qboosh qboosh at pld-linux.org
Sun Jun 9 17:12:53 CEST 2024


commit 8ca2cccae84d0aa427dde55e545d4d49d39141e5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 9 16:40:26 2024 +0200

    - added x32 patch, release 2

 fakeroot-x32.patch | 13 +++++++++++++
 fakeroot.spec      |  6 +++++-
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/fakeroot.spec b/fakeroot.spec
index 569c371..675156b 100644
--- a/fakeroot.spec
+++ b/fakeroot.spec
@@ -3,11 +3,13 @@ Summary(pl.UTF-8):	"Podrobione" środowiska roota
 Summary(pt_BR.UTF-8):	Cria um falso ambiente de root
 Name:		fakeroot
 Version:	1.35
-Release:	1
+Release:	2
 License:	GPL v3+
 Group:		Development/Tools
 Source0:	http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.gz
 # Source0-md5:	0d692daf0f145289b94530bbb6aa6b2c
+Patch0:		%{name}-x32.patch
+URL:		https://wiki.debian.org/FakeRoot
 BuildRequires:	acl-devel
 BuildRequires:	autoconf >= 2.71
 BuildRequires:	automake
@@ -56,6 +58,7 @@ stat e outros, criando um falso ambiente de root.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -75,6 +78,7 @@ cd ..
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
diff --git a/fakeroot-x32.patch b/fakeroot-x32.patch
new file mode 100644
index 0000000..7a2ef48
--- /dev/null
+++ b/fakeroot-x32.patch
@@ -0,0 +1,13 @@
+x32 already has 64-bit time_t, equal to time64_t (and doesn't have *stat*_time64 functions)
+--- fakeroot-1.35/configure.ac.orig	2024-06-05 21:24:39.000000000 +0200
++++ fakeroot-1.35/configure.ac	2024-06-09 15:13:35.063082671 +0200
+@@ -388,7 +388,8 @@ AH_TEMPLATE([TIME64_HACK], [time64 shuff
+ AC_MSG_CHECKING([if we need to cope with time64])
+ AC_EGREP_CPP([time64],[
+ #include <bits/wordsize.h>
+-#if __WORDSIZE == 32
++#include <bits/timesize.h>
++#if (__WORDSIZE == 32) && (__TIMESIZE - 0 != 64)
+ #define __USE_TIME_BITS64 1
+ #include <sys/stat.h>
+ stat
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fakeroot.git/commitdiff/8ca2cccae84d0aa427dde55e545d4d49d39141e5



More information about the pld-cvs-commit mailing list