[packages/gmime] - patch to adjust for autoconf AC_SYS_LARGEFILE changes; release 2

qboosh qboosh at pld-linux.org
Mon Jul 21 20:38:39 CEST 2025


commit fdbf6c4b836e8b1573369940b6a35854326d1b26
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 21 20:40:22 2025 +0200

    - patch to adjust for autoconf AC_SYS_LARGEFILE changes; release 2

 gmime-largefile.patch | 21 +++++++++++++++++++++
 gmime.spec            |  4 +++-
 2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/gmime.spec b/gmime.spec
index c0adb97..6bb8f3a 100644
--- a/gmime.spec
+++ b/gmime.spec
@@ -11,13 +11,14 @@ Summary:	GMIME library
 Summary(pl.UTF-8):	Biblioteka GMIME
 Name:		gmime
 Version:	2.6.23
-Release:	1
+Release:	2
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	https://download.gnome.org/sources/gmime/2.6/%{name}-%{version}.tar.xz
 # Source0-md5:	247072236d84bd0fbbff299d69bdf333
 Patch0:		%{name}-link.patch
 Patch1:		%{name}-am.patch
+Patch2:		%{name}-largefile.patch
 URL:		http://spruce.sourceforge.net/gmime/
 BuildRequires:	autoconf >= 2.54
 BuildRequires:	automake >= 1:1.9
@@ -131,6 +132,7 @@ API języka Vala do biblioteki gmime.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__libtoolize}
diff --git a/gmime-largefile.patch b/gmime-largefile.patch
new file mode 100644
index 0000000..60e90ca
--- /dev/null
+++ b/gmime-largefile.patch
@@ -0,0 +1,21 @@
+--- gmime-2.6.23/configure.ac.orig	2025-07-21 20:16:16.262177717 +0200
++++ gmime-2.6.23/configure.ac	2025-07-21 20:16:20.678871918 +0200
+@@ -525,10 +525,17 @@ if test "x$enable_largefile" != "xno"; t
+         enable_largefile="yes"
+     fi
+     
+-    if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
++    if test -n "$ac_cv_sys_file_offset_bits" -a "x$ac_cv_sys_file_offset_bits" != "xno"; then
+         LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
+         enable_largefile="yes"
+     fi
++
++    if test "$enable_largefile" = no -a "$ac_have_largefile" = "yes"; then
++        enable_largefile="yes"
++	if test -n "$ac_cv_sys_largefile_opts" -a "x$ac_cv_sys_largefile_opts" != "none needed"; then
++            LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_opts"
++	fi
++    fi
+ else
+     LFS_CFLAGS=""
+ fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gmime.git/commitdiff/fdbf6c4b836e8b1573369940b6a35854326d1b26



More information about the pld-cvs-commit mailing list