sanitize clucene includes

f41
David Tardon 12 years ago
parent 4c02e83a2c
commit 319ddc49bd

@ -0,0 +1,34 @@
From 24c1cea3bb964d6d2255c2bd9f1433413aa3e694 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Tue, 30 Jul 2013 06:45:48 +0200
Subject: [PATCH] sanitize system clucene includes
Apparently clucene bundles pieces of a very old version of boost (1.42)
in CLucene/ext/boost, which breaks build with boost 1.54.
(cherry picked from commit 24add548ac163651de5e3372798f0d4db347de77)
Signed-off-by: David Tardon <dtardon@redhat.com>
Conflicts:
configure.ac
Change-Id: Ib244222f8f048aefe0484060f9ad5f41bfd24def
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index 03d2ef8..ce04c65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7144,6 +7144,7 @@ if test "$with_system_clucene" = "yes"; then
AC_MSG_RESULT([external])
SYSTEM_CLUCENE=YES
PKG_CHECK_MODULES(CLUCENE, libclucene-core)
+ CLUCENE_CFLAGS=[$(printf '%s' "$CLUCENE_CFLAGS" | sed -e 's@-I[^ ]*/CLucene/ext@@')]
AC_LANG_PUSH([C++])
save_CXXFLAGS=$CXXFLAGS
save_CPPFLAGS=$CPPFLAGS
--
1.8.3.1

@ -258,6 +258,7 @@ Patch20: 0001-Resolves-fdo-48835-application-menu-for-LibreOffice.patch
Patch21: 0001-move-static-bitmap-into-a-svapp-member.patch
Patch22: 0001-resolved-fdo-67094-handle-text-s-in-text-p-and-text-.patch
Patch23: 0001-Use-inconditionally-the-libwpd-0.9.5-path.patch
Patch24: 0001-sanitize-system-clucene-includes.patch
%define instdir %{_libdir}
%define baseinstdir %{instdir}/libreoffice
@ -1013,6 +1014,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
%patch21 -p1 -b .move-static-bitmap-into-a-svapp-member.patch
%patch22 -p1 -b .resolved-fdo-67094-handle-text-s-in-text-p-and-text-.patch
%patch23 -p1 -b .Use-inconditionally-the-libwpd-0.9.5-path.patch
%patch24 -p1 -b .sanitize-system-clucene-includes.patch
# TODO: check this
# these are horribly incomplete--empty translations and copied english

Loading…
Cancel
Save