From 817ab52526c59667127083e8493f3db50c912ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 20 Nov 2010 13:43:45 +0000 Subject: [PATCH] merge of languages causes each langpack to remove the previous --- libreoffice-installfix.patch | 10 ++++++++++ libreoffice.spec | 10 +++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 libreoffice-installfix.patch diff --git a/libreoffice-installfix.patch b/libreoffice-installfix.patch new file mode 100644 index 0000000..0f023ac --- /dev/null +++ b/libreoffice-installfix.patch @@ -0,0 +1,10 @@ +--- a/solenv/bin/modules/installer/worker.pm 2010-11-20 13:36:38.000000000 +0000 ++++ b/solenv/bin/modules/installer/worker.pm 2010-11-20 13:36:42.000000000 +0000 +@@ -403,7 +403,6 @@ + { + $installdir = installer::systemactions::create_directories("install", $languageref); + installer::logger::print_message( "... creating installation set in $installdir ...\n" ); +- remove_old_installation_sets($installdir); + my $inprogressinstalldir = $installdir . "_inprogress"; + installer::systemactions::rename_directory($installdir, $inprogressinstalldir); + $installdir = $inprogressinstalldir; diff --git a/libreoffice.spec b/libreoffice.spec index 92083b0..fd9dab5 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -75,7 +75,7 @@ BuildRequires: freetype-devel, gtk2-devel, desktop-file-utils, hyphen-devel BuildRequires: evolution-data-server-devel, libtextcat-devel, nss-devel BuildRequires: gstreamer-devel, gstreamer-plugins-base-devel, openssl-devel BuildRequires: mdds-devel, lpsolve-devel, hsqldb, bsh, lucene, lucene-contrib -BuildRequires: mesa-libGLU-devel, redland-devel, ant, ant-apache-regexp +BuildRequires: mesa-libGLU-devel, redland-devel, ant, ant-apache-regexp, rsync BuildRequires: jakarta-commons-codec, jakarta-commons-httpclient, cppunit-devel BuildRequires: jakarta-commons-lang, poppler-devel, fontpackages-devel, junit4 BuildRequires: pentaho-reporting-flow-engine, libXinerama-devel, mythes-devel @@ -812,15 +812,11 @@ if [ $ok == "false" ]; then exit 1 fi mkdir -p $RPM_BUILD_ROOT/%{baseinstdir} -mv ../unxlng*.pro/LibreOffice/installed/install/* $RPM_BUILD_ROOT/%{baseinstdir} +rsync -apl --link-dest=`readlink -f ../unxlng*.pro/LibreOffice/installed/install/` ../unxlng*.pro/LibreOffice/installed/install/ $RPM_BUILD_ROOT/%{baseinstdir} chmod -R +w $RPM_BUILD_ROOT/%{baseinstdir} %if %{langpacks} dmake ooolanguagepack -rm -rf ../unxlng*.pro/LibreOffice_languagepack/installed/install/log -for langpack in ../unxlng*.pro/LibreOffice_languagepack/installed/install/*; do -cp -rp $langpack/* $RPM_BUILD_ROOT/%{baseinstdir} -rm -rf $langpack -done +rsync -apl --link-dest=`readlink -f ../unxlng*.pro/LibreOffice_languagepack/installed/install/` ../unxlng*.pro/LibreOffice_languagepack/installed/install/ $RPM_BUILD_ROOT/%{baseinstdir} %endif for file in swriter scalc simpress sdraw ; do cp -f ../../desktop/$OUTPATH.pro/bin/$file $RPM_BUILD_ROOT/%{baseinstdir}/program/$file.bin