Okay, so I have some new information about this bug.

The hanging occurs when, during the prerm or preinst scripts (either
one), it executes unopkg list --shared or unopkg add --shared. I've
tried running both commands without using --shared and they work fine,
so for some reason, listing shared extensions on my system does not
work, nor does adding shared extensions.

The relevant prerm/preinst lines:

remove_extension() {
  if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then
    echo -n "Removing extension $1..."
    INSTDIR=`mktemp -d`
    /usr/lib/openoffice/program/unopkg remove --shared $1 \
      "-env:UserInstallation=file://$INSTDIR" \
      
'-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml'
 \
      "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
    if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
    echo " done."
    flush_unopkg_cache
  fi
}

postinst:
add_extension() {
  echo -n "Adding extension $1..."
  INSTDIR=`mktemp -d`
  /usr/lib/openoffice/program/unopkg add --shared $1 \
    "-env:UserInstallation=file:///$INSTDIR" \
    
'-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml'
 \
    "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
  if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
  echo " done."
}

"Adding extension $1..." is printed in postinst, but preinst/prerm
doesn't get to "Removing extension $1...", because the if statement
contains unopkg list --shared, which hangs. Let me know if I can do
anything else to debug this, I've tried unopkg list --force --verbose
--shared and that also hangs and prints no additional info. Thanks.

- David Nolan

-- 
writer2latex hangs on .uno installation
https://bugs.launchpad.net/bugs/247779
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to