diff --git a/libreoffice-largefile.patch b/libreoffice-largefile.patch new file mode 100644 index 0000000..97a6388 --- /dev/null +++ b/libreoffice-largefile.patch @@ -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 diff --git a/libreoffice.changes b/libreoffice.changes index 702d1c0..704522d 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 12 10:32:53 UTC 2024 - Dominique Leuenberger + +- 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 diff --git a/libreoffice.spec b/libreoffice.spec index 82f2f42..0cabdb9 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -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