[Piuparts-devel] piuparts problems (leftover files) in LibreOffice packages and addons

Rene Engelhard rene at debian.org
Tue Apr 24 20:06:55 UTC 2012


On Tue, Apr 24, 2012 at 09:58:08PM +0200, Rene Engelhard wrote:
> > * files created and left over in /root/libreoffice which is a serious 
> >   policy / FHS violation - packages don't have to touch /root when 
> >   being installed
> 
> #669271
[...]
> > What needs to be fixed in these packages s.t. a) /root is not touched
> > at all
> 
> $ sudo echo $HOME
> /home/rene
> 
> and unopkg sync done on various places to (pre-)register ("prereg" ;))
> the extensions does write to $HOME.

That said:

# HOME=/dev/null unopkg sync -v --bundled
[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!

ERROR: cannot open file:///dev/null/.ure/types.rdb
Exception details:
(com.sun.star.uno.RuntimeException) { { Message = "cannot open file:///dev/null/.ure/types.rdb", Context = (com.sun.star.uno.XInterface) @0 } }

unopkg failed.

does obviously not work as it can't create stuff in /dev/null ,-)

# t=`mktemp -q -d` && HOME=$t unopkg sync -v --bundled && rm -rf $t

looks like working, though:

# rm -rf /var/lib/libreoffice/share/prereg/bundled/*
# t=`mktemp -q -d` && HOME=$t unopkg sync -v --bundled && rm -rf $t
Synchronizing repository for bundled extensions



 Enabling: Wiki Publisher
  Enabling: help
error
xsltParseStylesheetFile : cannot parse
error
xsltParseStylesheetFile : cannot parse
  Enabling: WikiExtension.xcs
  Enabling: WikiEditor
  Enabling: components.rdb
  Enabling: Addons.xcu
  Enabling: ProtocolHandler.xcu
  Enabling: WikiExtension.xcu
  Enabling: OptionsDialog.xcu
  Enabling: Filter.xcu
  Enabling: Types.xcu
  Enabling: Paths.xcu
 Enabling: Script provider for Python
  Enabling: components.rdb
 Enabling: Writer2xhtml export filters
  Enabling: writer2xhtml.rdb
  Enabling: W2XDialogs
  Enabling: Options.xcs
  Enabling: writer2xhtml-filter.jar
  Enabling: w2x_types.xcu
  Enabling: w2x_filters.xcu
  Enabling: Options.xcu
 Enabling: MySQL Connector
  Enabling: mysqlc.uno.so
  Enabling: Drivers.xcu
 Enabling: Presenter Console
  Enabling: help
  Enabling: PresenterScreen.xcs
  Enabling: PresenterScreen.uno.so
  Enabling: Jobs.xcu
  Enabling: ProtocolHandler.xcu
  Enabling: PresenterScreen.xcu
 Enabling: Presentation Minimizer
  Enabling: SunPresentationMinimizer.xcs
  Enabling: SunPresentationMinimizer.uno.so
  Enabling: SunPresentationMinimizer.xcu
  Enabling: Addons.xcu
  Enabling: ProtocolHandler.xcu
 Enabling: Lightproof grammar checker (English)
  Enabling: OptionsDialog.xcs
  Enabling: OptionsDialog.xcu
  Enabling: Lightproof.py
  Enabling: Linguistic.xcu
 Enabling: Writer2LaTeX export filters
  Enabling: writer2latex.rdb
  Enabling: W2LDialogs
  Enabling: Options.xcs
  Enabling: writer2latex-filter.jar
  Enabling: w2l_types.xcu
  Enabling: w2l_filters.xcu
  Enabling: Options.xcu
 Enabling: PDF Import
  Enabling: PDFImport
  Enabling: xpdfimport
  Enabling: pdfimport.uno.so
  Enabling: pdf_import_filter.xcu
  Enabling: pdf_types.xcu

unopkg done.
# ls -l /var/lib/libreoffice/share/prereg/bundled/
insgesamt 20
-rw-r--r-- 1 root root 12288 Apr 24 22:10 extensions.db
-rw-r--r-- 1 root root     1 Apr 24 22:11 lastsynchronized
drwxr-xr-x 9 root root  4096 Apr 24 22:10 registry

Regards,
 
Rene



More information about the Piuparts-devel mailing list