forked from pool/libreoffice
Accepting request 1191150 from LibreOffice:Factory
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1191150 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libreoffice?expand=0&rev=296
This commit is contained in:
commit
883f96f9ec
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 18 16:19:37 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- Add reproducible-clucene.patch to use new clucene function
|
||||||
|
to make index files reproducible (boo#1047218)
|
||||||
|
- Normalize .jar and .zip mtimes with strip-nondeterminism
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 11 21:03:49 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Thu Jul 11 21:03:49 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -151,6 +151,8 @@ Patch992: python34-no-f-strings.patch
|
|||||||
Patch993: icu-74-compatibility.patch
|
Patch993: icu-74-compatibility.patch
|
||||||
# PATCH-FIX-UPSTREAM CVE-2024-5261 (bsc#1226975)
|
# PATCH-FIX-UPSTREAM CVE-2024-5261 (bsc#1226975)
|
||||||
Patch994: cve-2024-5261.patch
|
Patch994: cve-2024-5261.patch
|
||||||
|
# PATCH-FIX-OPENSUSE override date in clucene files (boo#1047218)
|
||||||
|
Patch995: reproducible-clucene.patch
|
||||||
BuildRequires: %{name}-share-linker
|
BuildRequires: %{name}-share-linker
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
@ -161,6 +163,9 @@ BuildRequires: commons-logging
|
|||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
BuildRequires: fixmath-devel
|
BuildRequires: fixmath-devel
|
||||||
BuildRequires: libwebp-devel
|
BuildRequires: libwebp-devel
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
BuildRequires: strip-nondeterminism
|
||||||
|
%endif
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: zxcvbn-devel
|
BuildRequires: zxcvbn-devel
|
||||||
%if %{with system_curl}
|
%if %{with system_curl}
|
||||||
@ -1131,6 +1136,9 @@ sed -i -e /CppunitTest_sc_dataprovider/d sc/Module_sc.mk # https://bugs.document
|
|||||||
sed -i -e /CppunitTest_sc_financial_functions_test/d sc/Module_sc.mk # https://bugs.documentfoundation.org/show_bug.cgi?id=127083
|
sed -i -e /CppunitTest_sc_financial_functions_test/d sc/Module_sc.mk # https://bugs.documentfoundation.org/show_bug.cgi?id=127083
|
||||||
sed -i -e /CppunitTest_sc_statistical_functions_test/d sc/Module_sc.mk
|
sed -i -e /CppunitTest_sc_statistical_functions_test/d sc/Module_sc.mk
|
||||||
%endif
|
%endif
|
||||||
|
if grep -q setSegmentInfoStartVersion /usr/include/CLucene/index/IndexWriter.h ; then
|
||||||
|
%patch -P 995 -p1
|
||||||
|
fi
|
||||||
# fix build with icu 75.1, remove breaking test breaking rule (bsc#1224309)
|
# fix build with icu 75.1, remove breaking test breaking rule (bsc#1224309)
|
||||||
sed -i "109d" i18npool/source/breakiterator/data/sent.txt
|
sed -i "109d" i18npool/source/breakiterator/data/sent.txt
|
||||||
|
|
||||||
@ -1557,6 +1565,11 @@ rm %{buildroot}%{_libdir}/libreoffice/share/extensions/*/help/*/*.ht_
|
|||||||
rm %{buildroot}%{_libdir}/libreoffice/share/extensions/wiki-publisher/help/sa-IN/help.key_
|
rm %{buildroot}%{_libdir}/libreoffice/share/extensions/wiki-publisher/help/sa-IN/help.key_
|
||||||
rm %{buildroot}%{_libdir}/libreoffice/share/extensions/nlpsolver/locale/NLPSolverCommon_en_US.default
|
rm %{buildroot}%{_libdir}/libreoffice/share/extensions/nlpsolver/locale/NLPSolverCommon_en_US.default
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
strip-all-nondeterminism %{buildroot}%{_libdir}/libreoffice
|
||||||
|
strip-all-nondeterminism %{buildroot}%{_datadir}/%{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
# We have ton of duped files so run over it
|
# We have ton of duped files so run over it
|
||||||
%fdupes %{buildroot}%{_prefix}
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
|
21
reproducible-clucene.patch
Normal file
21
reproducible-clucene.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Date: 2024-07-18
|
||||||
|
Author: Bernhard M. Wiedemann
|
||||||
|
|
||||||
|
Use a new function in clucene-core, protected with a
|
||||||
|
BuildRequires: libclucene2(setStartVersion)
|
||||||
|
|
||||||
|
to achieve reproducible builds for help.idxl files
|
||||||
|
|
||||||
|
diff --git a/helpcompiler/source/HelpIndexer.cxx b/helpcompiler/source/HelpIndexer.cxx
|
||||||
|
index 65e46743b..32e29c2f7 100644
|
||||||
|
--- a/helpcompiler/source/HelpIndexer.cxx
|
||||||
|
+++ b/helpcompiler/source/HelpIndexer.cxx
|
||||||
|
@@ -106,7 +106,7 @@ bool HelpIndexer::indexDocuments()
|
||||||
|
analyzer.get(), true);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#ifndef SYSTEM_CLUCENE
|
||||||
|
+#if 1
|
||||||
|
// avoid random values in index file, making help indices reproducible
|
||||||
|
writer->setSegmentInfoStartVersion(0);
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user