FS#29576 - [libreoffice-common] tcsh profile breaks if PYTHONPATH is not defined
Attached to Project:
Arch Linux
Opened by Sunjae Park (darehanl) - Monday, 23 April 2012, 16:49 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 20 May 2012, 10:39 GMT
Opened by Sunjae Park (darehanl) - Monday, 23 April 2012, 16:49 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 20 May 2012, 10:39 GMT
|
Details
Description:
The profile file "/etc/profile.d/libreoffice-common.csh" assumes that PYTHONPATH is already defined, and tcsh breaks when encountering an undefined variable. Additional info: * package version(s) libreoffice-common: 3.5.2-1 * config and/or log files etc. /etc/profile.d/libreoffice-common.csh Steps to reproduce: Run tcsh without PYTHONPATH being set anywhere. To resolve: Wrap the line with an if-check like the following: if ( $?PYTHONPATH ) then setenv PYTHONPATH ${PYTHONPATH}:/usr/lib/libreoffice/program else setenv PYTHONPATH /usr/lib/libreoffice/program endif |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Sunday, 20 May 2012, 10:39 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#27257
Sunday, 20 May 2012, 10:39 GMT
Reason for closing: Duplicate
Additional comments about closing:
% cat /etc/profile.d/libreoffice-common.sh
if [ "$PYTHONPATH" != "" ]
then
export PYTHONPATH="$PYTHONPATH:/usr/lib/libreoffice/program"
else
export PYTHONPATH="/usr/lib/libreoffice/program"
fi
% cat /etc/profile.d/libreoffice-common.csh
if (${?PYTHONPATH}) then
setenv PYTHONPATH ${PYTHONPATH}:/usr/lib/libreoffice/program
else
setenv PYTHONPATH /usr/lib/libreoffice/program
endif
FS#27257?