Accepting request 1157165 from home:dimstar:Factory

Fix build with autoconf 2.72

OBS-URL: https://build.opensuse.org/request/show/1157165
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1148
This commit is contained in:
Fridrich Strba 2024-03-12 11:40:32 +00:00 committed by Git OBS Bridge
parent 0b064a213e
commit c6a085fc2b
3 changed files with 23 additions and 0 deletions

@ -0,0 +1,15 @@
Index: libreoffice-24.2.2.1/configure.ac
===================================================================
--- libreoffice-24.2.2.1.orig/configure.ac
+++ libreoffice-24.2.2.1/configure.ac
@@ -7197,7 +7197,9 @@ if test "$_os" != "WINNT"; then
dnl Check for large file support
AC_SYS_LARGEFILE
- if test -n "$ac_cv_sys_file_offset_bits" -a "$ac_cv_sys_file_offset_bits" != "no"; then
+ if test -n "$ac_cv_sys_largefile_opts" -a "$ac_cv_sys_largefile_opts" != "none needed" -a "$ac_cv_sys_largefile_opts" != "support not detected"; then
+ LFS_CFLAGS="$ac_cv_sys_largefile_opts"
+ elif test -n "$ac_cv_sys_file_offset_bits" -a "$ac_cv_sys_file_offset_bits" != "no"; then
LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
fi
if test -n "$ac_cv_sys_large_files" -a "$ac_cv_sys_large_files" != "no"; then

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 12 10:32:53 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Add libreoffice-largefile.patch: Fix large file support
detection, as needed on i586 (boo#1219035).
-------------------------------------------------------------------
Sat Mar 2 19:41:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>

@ -98,6 +98,7 @@ Source2009: %{external_url}/dtoa-20180411.tgz
Source2010: %{external_url}/skia-m116-2ddcf183eb260f63698aa74d1bb380f247ad7ccd.tar.xz
Source2012: %{external_url}/libcmis-0.6.1.tar.xz
Provides: bundled(libcmis) = 0.6.1
Patch0: libreoffice-largefile.patch
# change user config dir name from ~/.libreoffice/3 to ~/.libreoffice/3-suse
# to avoid BerkleyDB incompatibility with the plain build
Patch1: scp2-user-config-suse.diff
@ -1022,6 +1023,7 @@ Provides %{langname} translations and additional resources (help files, etc.) fo
%prep
%setup -q -b2 -b4
%patch -P 0 -p1
%if 0%{?suse_version} < 1500
# The rename of the configdir is needed only on older than factory for compat
%patch -P 1