summaryrefslogtreecommitdiff
path: root/desktop/scripts
AgeCommit message (Collapse)Author
2019-07-13Add more useful exports to soffice's callgrind modeIlmari Lauhakangas
Moved from TDF wiki to avoid duplication. These three stop us getting poor performance from unusual allocators: unset MALLOC_CHECK_ MALLOC_PERTURB_ G_SLICE If we wedge, at least we don't do it while grabbing the mouse: export SAL_DISABLE_FLOATGRAB=1 Turns off recovery dialog, which can be a pain: export OOO_DISABLE_RECOVERY=1 Turns off GL watchdog. It normally kills the application, if it seems to hang in a GL block: export SAL_DISABLE_GL_WATCHDOG=1 Change-Id: I4ec30d363280b727cd305a6a81ccb85849697159 Reviewed-on: https://gerrit.libreoffice.org/73773 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2019-06-03LD_BIND_NOW=1 if running under callgrindLuboš Luňák
It avoids all those calls to _dl_runtime_resolve_xsave that in KCachegrind's call graph lead to nowhere and make navigating harder. Change-Id: Ie3843676298d92b8ed6d598ead16f4d410ba8b2b Reviewed-on: https://gerrit.libreoffice.org/73382 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-09-05gbuild: allow recording of CppunitTests and PythonTests tooMichael Stahl
Since these don't use soffice they need to be tweaked to use RR variable. A rr git master build from some weeks ago can record all tests, except CppunitTest_dbaccess_firebird_test which fails. smoketest is a bit tricky because it spawns soffice which checks RR variable again and starts a nested rr, but fortunately there's a flag to prevent it from aborting in this situation. For UITests currently only the soffice.bin is recorded, not the python test process. The size of all the recording is about 35G per run in a --enable-dbgutil build. Change-Id: I2143618fa2181e36b6aaeded43637cb3481f5e47 Reviewed-on: https://gerrit.libreoffice.org/60032 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Michael Stahl <Michael.Stahl@cib.de>
2018-06-25Fix "javaPathHelper: not found" errors during startup.Thomas Klausner
javaPathHelper is a tool from OpenBSD ports, so there is no point looking for it on other operating systems. Change-Id: I763d717fdf7172b412d527fcd88347b2e54a8fe9
2017-03-07desktop: unbreak soffice --valgrindMichael Stahl
(regression from e6a9dc22a4e58b565894f8cdb6a19755af7b14de) Change-Id: Ib394a64fb70a3b578d462c351eb9d68e9ac55d62
2017-02-11Upon failure, 'cd' itself already prints a message to stderrStephan Bergmann
Change-Id: Iabe3a6bb14ca3e83a0792d7fc131ae0ac74e578c
2017-02-06Revert "fix desktop scripts"Stephan Bergmann
This reverts commit f52eb759f61e1806014972cb736e07479f157aa6. I assume this was intented to be a fix for e6a9dc22a4e58b565894f8cdb6a19755af7b14de "tdf#105204 fix shellcheck warnings in desktop/scripts" (later addressed with 7ba0b28cc3ac82f5c5c6d7e2536cb89771041893 "Unbreak soffice.sh"). But I think these quotations are actually useful parts of that original commit. I fail to see how pathname expansion (aka globbing; nor field splitting, if that is what was actually meant in "we want globbing here") should be a useful feature here. Change-Id: I5c33c40cfe2a817f628442fed70a07f06dd275cc
2017-02-04Unbreak soffice.shStephan Bergmann
Change-Id: I8c827db4c16a4a169dd710787bf9beb123ddc7b6
2017-02-04fix desktop scriptsJochen Nitschke
reverts parts of e6a9dc22a4e58b565894f8cdb6a19755af7b14de we want globbing here Change-Id: Ibe4672f41b0fe6a75d1aca898cc55414e138f6ef Reviewed-on: https://gerrit.libreoffice.org/33913 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-02-04tdf#105204 fix shellcheck warnings in desktop/scriptsqarkai
Use $(..) instead of `..`, use && and || instead of -a and -o, double quote to prevent word splitting, handle cd failure. Change-Id: I860891323a81ac4a46c868ab028df1e1f837c115 Reviewed-on: https://gerrit.libreoffice.org/33897 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-11-07soffice.sh: can't hurt to force system allocator for massifMichael Stahl
Change-Id: Ib999ed36befae52894c04eaa95be76f2a7cfdd3b
2016-02-07remove reference to old OpenGL stuffMarkus Mohrhard
Change-Id: I3398910136d82a25bba508505db9d9a1b080a0be
2015-12-14FreeBSD can live with default search pathBaptiste Daroussin
Change-Id: I3fa26aaf57d9620e952823c303ee77e2fc642045 Reviewed-on: https://gerrit.libreoffice.org/20651 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-06-19C++ solution of 'unopkg can't be used by root'Katarina Behrens
This way should cover all un*x-like OSes (unopkg.sh excludes e.g. OS X) This effectively reverts commits 723e099972c1645 and 9444ffc93a3335 Change-Id: I0b4425d1c9eff8e51e5d9a4dab35775084106a23 (cherry picked from commit faa2c06226146e3ab4b7fa8096cf213ea9d52a23)
2015-06-15Remove bash-ism, allow also --bundled option for rootKatarina Behrens
Change-Id: I34511c7947ff78654a34a3d2bd21754b6d004420
2015-06-14Don't let root run unopkg without --shared optionKatarina Behrens
with the exception of -h|--help. It only makes sense to run unopkg with root priviledges if adding, deleting etc. extensions system-wide for all users (i.e with --shared switch ). In all other cases it only messes up access rights to extensions, so prevent that. Furtheron, running LibO from the root account (and installing root-user-local extensions) is not a supported scenario. Change-Id: I2817f62ae0bb400cefed240e792873f563fbe76e Reviewed-on: https://gerrit.libreoffice.org/16250 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-05-20desktop: add soffice --record parameter for easy use of rrMichael Stahl
Allow recording all JunitTests with "RR=1 make check". Change-Id: Ie540cb42990d3032d3fa38abedd4e5134f3ded2c
2015-05-12Fixup my earlier quoting fix.Thorsten Behrens
Change-Id: I9a7afb28e09f7f8aa577e180f647839d67964bdf
2015-05-11Add some quoting to shell scripts.Thorsten Behrens
I'd be surprised if the places given want globs and word splitting... Change-Id: I0eb9f2d39ac43479ee06a2477ba309a8e1944d20
2014-11-28Fold URE: Linux ure/share/java/* -> program/classes/Stephan Bergmann
Change-Id: I86864f832c0377d307cfa0b2c137f452e43797eb
2014-11-28Fold URE: Linux ure/lib/* -> program/Stephan Bergmann
The ../../../program/ links in the URE jar Class-Paths are a temporary kludge (and juh.jar had lacked adaption for Mac OS X). Change-Id: I2542d8a582866485dd61c05df3fc6b4b39a8403d
2014-11-28Fold URE: Linux ure/bin/* -> program/Stephan Bergmann
Change-Id: Id6cab518329829c22600f2a68b6b59abd04a564c
2014-09-29Adapt unoinfo to new Mac OS X LibreOffice.app layoutStephan Bergmann
Change-Id: I0e7fc27f558de2af7e860ca2ab2da1952fc85678
2014-05-08Disable rtl/alloc.h also for HelgrindStephan Bergmann
Change-Id: I472d11d50a3b0810779108f3f81624ab9880fe8b
2014-03-14Skip gcj's gij executable, like other JREs' java executablesStephan Bergmann
Change-Id: Ida84a271a066e89ceb7e5dd2fd23a744f5529917
2013-10-17Simplify code (VERBOSE was unused)Stephan Bergmann
Change-Id: I281be165fe110fee3e174e96e11cdbc4aa5671e0
2013-10-17Fix quotingStephan Bergmann
Change-Id: Ie2228247f5edc107ed183a25ef30256d8041e000
2013-10-17Scripts need executable bitStephan Bergmann
...or else they would end up non-executable in instdir, now that they are directly copied there via desktop/Package_scripts_install.mk. Change-Id: I8d2add1fd7f13ae9080d2f710b5fbb60d1e8ad1a
2013-09-10desktop: ure-link is installed by ure/Packge_install.mk alreadyMichael Stahl
Change-Id: Ic575d340d0b3b42dc9b07790ab094c8ce6016329
2013-08-20unopkg: use default umask when installing shared extensionsBjörgvin Ragnarsson
This makes sure shared extensions are readable by users when root's umask has been set to a value such as 0027. Change-Id: If495afae8eaf3a640c99ecb7598b79b59363c12c Reviewed-on: https://gerrit.libreoffice.org/5521 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-07-09fdo#62192: broken launch script, bork in March in GermanyErik Auerswald
Change-Id: I0b726a696fe64ffb80a0cf367d5fa6225619ec92
2013-05-05drop unused scriptsDavid Tardon
Change-Id: Icf4526214d9cfaaa9fe41b40b662c1e3bd9e6960
2012-11-19re-base on ALv2 code. Includes:Michael Meeks
Patch contributed by: Jurgen Schmidt remove onlineregistration with dependencies http://svn.apache.org/viewvc?view=revision&revision=1240245 imported patch package_eventlistener.patch http://svn.apache.org/viewvc?view=revision&revision=1172103 Patch contributed by Pedro Giffuni Accept Google Chrome OS fonts as equivalent to MS fonts. http://svn.apache.org/viewvc?view=revision&revision=1233155 http://svn.apache.org/viewvc?view=revision&revision=1233408 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i114600#: remove forbidden characters from list of unencoded characters http://svn.apache.org/viewvc?view=revision&revision=1172370 Patches contributed by Oliver Rainer-Wittman some clean up in JPEGReader due to memory constraints http://svn.apache.org/viewvc?view=revision&revision=1299729 119114 - method <UpdateDialog::addSpecificError(..)> - create entry with correct type http://svn.apache.org/viewvc?view=revision&revision=1305265 Patches contributed by Ariel Constenla-Haile i118707 - make toolbar control's popup window grab focus http://svn.apache.org/viewvc?view=revision&revision=1225846 Patches contributed by Herbert Duerr #i118662# remove usage of BerkeleyDB in desktop module http://svn.apache.org/viewvc?view=revision&revision=1213171 minor cleanups in dp_persmap.* http://svn.apache.org/viewvc?view=revision&revision=1215064 flush early to prevent problem with extension manager not cleaning up its objects http://svn.apache.org/viewvc?view=revision&revision=1228147 i118726 do not flush *pmap file while reading it http://svn.apache.org/viewvc?view=revision&revision=1230614 #i119048# migrate BDB extension entries using a simple heuristic http://svn.apache.org/viewvc?view=revision&revision=1300972 #i119048# handle edge cases when importing BDB hash files http://svn.apache.org/viewvc?view=revision&revision=1301428 #i119113# fix of-by-one when importing BDB files http://svn.apache.org/viewvc?view=revision&revision=1305420 restore our encryption settings, icon themes, and dictionaries. removed wrapper hacks, kill obsolete bundled extension blob / pre-registration handling, remove duplicated quickstart code. remove OS/2 conditionals.
2012-10-19move 2>&1 where it belongs in soffice.sh, thanks mstRene Engelhard
Change-Id: I5cc08e3fd88beba70cac61ff4570c02dbad9faa0
2012-10-18deb#690717 fix bashism in /bin/sh scriptRene Engelhard
Change-Id: I43b0065e56b234a5aa748ac1593c29a44fdb1647
2012-10-02ignore various unhelpful signals in our --backtrace gdb setup.Michael Meeks
Change-Id: I8ede40ebf5954e0492e790ce148c9b7f1f1e62df
2012-09-26Clean up option processingStephan Bergmann
* Support --version on non-UNX, too. * Consistently show the first unknown option and the help blob in the presence of any unknown options. * There is no need to tunnel --help/--version past oosplash in the soffice script, as oosplash is prepared to treat them adequately (esp. not pass them over any pipe); this only added unnecessary variance to what spellings exactly are supported and how mixtures of --help, --version, and unknown options are handled. Change-Id: I617f2e727e2f0eafd34a2de3b85d441c6783ec4f
2012-09-10headless build: build oosplash againRiccardo Magliocchetti
It looks like we want it so revert: dae66b7b1df89d824017c7afb52f66ebfd2b8fe2 4d408cc2f09fcc645d0da736b74f2f5cae86edc4 64a530cfa8e9be44965c9d708dfb642c2df2a59d Change-Id: I7cd410861b28a0556de3375a0865a7baef52bd78
2012-09-07desktop: use soffice.bin instead of oosplash if build with --enable-headlessRiccardo Magliocchetti
Change-Id: I2e4742a6893267ea8d4ec2048dd0686fd309a7db
2012-08-10Related fdo#51252: No more prereg, no more unopkg syncStephan Bergmann
Now that 5c47e5f63a79a9e72ec4a100786b1bbf65137ed4 "fdo#51252 Disable copying share/prereg/bundled to avoid startup crashes" removed the use of share/prereg, there is no longer need to generate it in the first place (by calling "unopkg sync" at build or installation time), and so no need for the "unopkg sync" sub- command, either. This also allows to simplify some of the jvmfwk code that was only there so that "unopkg sync" (which can require a JVM) can work in "hostile" environments (during build and installation). Change-Id: I52657384f4561bf27948ba4f0f88f4498e90987f
2012-07-11soffice.sh: remove valgrind --error-exitcode=101Michael Stahl
This doesn't really seem so important, and it prevents running junit tests with VALGRIND=memcheck from working, because the special restart exit code on first start up is mangled by valgrind and so the actual test doesn't run.
2012-04-04desktop: use CustomTarget makefileMatúš Kukan
2012-03-28when run under memcheck allow SIGUSR2 to dump current memory allocationsCaolán McNamara
2012-03-28remove static OUStrings from static_initialization_and_destruction chainCaolán McNamara
2012-02-29Resolves: rhbz#788045 swriter --help etc doesn't show helpCaolán McNamara
because the test in soffice to skip oosplash is for only one argument, and swriter points to soffice with an additional --writer argument, so the test is skipped
2012-01-15simplify handling of JITC_PROCESSOR_TYPEDavid Tardon
2012-01-13Better fix for the valgrind.log problem.Stephan Bergmann
Only redirect to valgrind.log if --valgrind but not $VALGRIND is given.
2012-01-12valgrind.log creates more problems than it solves.Stephan Bergmann
2012-01-11avoid generating a file in the source treeDavid Tardon
2012-01-11we need a var. assignment here, not a valueDavid Tardon