Bug#731876: /usr/lib/libreoffice/program/unopkg: line 69: [: =: unary operator expected
Package: libreoffice-common
Version: 1:4.1.3-1
Severity: normal
File: /usr/lib/libreoffice/program/unopkg
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Line 69 of unopkg reads:
#make sure shared extensions will be readable by users
[ $SHARED = true ] && umask 0022
Shared is only set if you pass the --shared option, so it can be blank.
Fix is simple:
- --- unopkg.old 2013-12-10 12:34:38.058980591 -0500
+++ unopkg 2013-12-10 12:35:12.371579775 -0500
@@ -66,7 +66,7 @@
done
#make sure shared extensions will be readable by users
- -[ $SHARED = true ] && umask 0022
+[ "$SHARED" = true ] && umask 0022
# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then
... add quotes.
- -- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (130, 'unstable'), (120, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libreoffice-common depends on:
ii dpkg 1.16.12
ii libreoffice-style-crystal [libreoffice-style] 1:4.1.3-1
ii libreoffice-style-galaxy [libreoffice-style-default] 1:4.1.3-1
ii libreoffice-style-hicontrast [libreoffice-style] 1:4.1.3-1
ii libreoffice-style-oxygen [libreoffice-style] 1:4.1.3-1
ii libreoffice-style-tango [libreoffice-style] 1:4.1.3-1
ii ure 4.1.3-1
Versions of packages libreoffice-common recommends:
ii libexttextcat-data 3.4.3-1
ii python-uno 1:4.1.3-1
ii xfonts-mathml 6
Versions of packages libreoffice-common suggests:
ii libreoffice-style-crystal 1:4.1.3-1
ii libreoffice-style-hicontrast 1:4.1.3-1
ii libreoffice-style-oxygen 1:4.1.3-1
ii libreoffice-style-tango 1:4.1.3-1
Versions of packages python-uno depends on:
ii libc6 2.17-97
ii libgcc1 1:4.8.2-1
ii libpython2.7 2.7.5-8
ii libreoffice-core 1:4.1.3-1
ii libstdc++6 4.8.2-1
ii python 2.7.5-5
ii uno-libs3 4.1.3-1
ii ure 4.1.3-1
- -- Configuration Files:
/etc/libreoffice/soffice.sh changed [not included]
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
iEYEARECAAYFAlKnUQQACgkQ+z+IwlXqWf5NwACeLck6aRBqLmvSYA0T18MkES56
NUsAn2fEAVcTyUc0IO5c6yt4THUHesfO
=MFmo
-----END PGP SIGNATURE-----
Reply to: