← Back to team overview

dx-packages team mailing list archive

[Bug 1649523] [NEW] libunity-protocol-private.so cannot be found

 

Public bug reported:

If your snap links (directly or indirectly, for instance via the
Ubuntu.UnityWebApps QML module) to the libunity.so library, running it
will fail with the following error:

    "file:///snap/amazon-webapp/x1/share/webbrowser-app/webcontainer
/webapp-container.qml:21 plugin cannot be loaded for module
\"Ubuntu.UnityWebApps\": Cannot load library /snap/amazon-webapp/x1
/ubuntu-app-platform/usr/lib/x86_64-linux-
gnu/qt5/qml/Ubuntu/UnityWebApps/libUnityWebApps.so: (libunity-protocol-
private.so.0: cannot open shared object file: No such file or
directory)\n"

libunity-protocol-private.so *is* present in the ubuntu-app-platform
snap, but it's in a subdirectory which is not in the library path:

    /usr/lib/x86_64-linux-gnu/libunity/libunity-protocol-private.so.0

(not the "libunity" subdirectory). It looks like (info obtained with
"objdump -a -x") libunity.so has this RPATH:

    RPATH                /usr/lib/x86_64-linux-gnu/libunity

I'll try to see if using $ORIGIN in libunity helps; if not, we might
have to play with LD_LIBRARY_PATH in the ubuntu-app-platform snap.

** Affects: ubuntu-app-platform
     Importance: Undecided
         Status: New

** Affects: libunity (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: libunity (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to libunity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1649523

Title:
  libunity-protocol-private.so cannot be found

Status in Ubuntu App Platform:
  New
Status in libunity package in Ubuntu:
  New

Bug description:
  If your snap links (directly or indirectly, for instance via the
  Ubuntu.UnityWebApps QML module) to the libunity.so library, running it
  will fail with the following error:

      "file:///snap/amazon-webapp/x1/share/webbrowser-app/webcontainer
  /webapp-container.qml:21 plugin cannot be loaded for module
  \"Ubuntu.UnityWebApps\": Cannot load library /snap/amazon-webapp/x1
  /ubuntu-app-platform/usr/lib/x86_64-linux-
  gnu/qt5/qml/Ubuntu/UnityWebApps/libUnityWebApps.so: (libunity-
  protocol-private.so.0: cannot open shared object file: No such file or
  directory)\n"

  libunity-protocol-private.so *is* present in the ubuntu-app-platform
  snap, but it's in a subdirectory which is not in the library path:

      /usr/lib/x86_64-linux-gnu/libunity/libunity-protocol-private.so.0

  (not the "libunity" subdirectory). It looks like (info obtained with
  "objdump -a -x") libunity.so has this RPATH:

      RPATH                /usr/lib/x86_64-linux-gnu/libunity

  I'll try to see if using $ORIGIN in libunity helps; if not, we might
  have to play with LD_LIBRARY_PATH in the ubuntu-app-platform snap.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-app-platform/+bug/1649523/+subscriptions