De-duplicating libraries provided by gnome-3-34-1804-sdk

I’m experimenting with the gnome 3-34 extension for my wpe-webkit-mir-kiosk snap. After I added the extension, I got a whole bunch of warning messages like the ones below. I’ve since disabled most of the stage-packages that either are listed directly in the gnome platform snap or are indirect dependencies of its packages, but the warnings still appear.

As far as I’ve tested, most of these stem from gstreamer packages. But if I remove them, the build fails due to missing dependencies. Is there some easier way to debug this than trial&error (which requires a full teardown+setup of the build container each time)?

CMake Warning at Source/JavaScriptCore/CMakeLists.txt:305 (add_executable):
  Cannot generate a safe runtime search path for target LLIntOffsetsExtractor
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Full log
CMake Warning at Source/JavaScriptCore/CMakeLists.txt:305 (add_executable):
  Cannot generate a safe runtime search path for target LLIntOffsetsExtractor
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at Source/JavaScriptCore/CMakeLists.txt:300 (add_executable):
  Cannot generate a safe runtime search path for target
  LLIntSettingsExtractor because files in some directories may conflict with
  libraries in implicit directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.


CMake Warning at Source/cmake/WebKitMacros.cmake:143 (add_executable):
  Cannot generate a safe runtime search path for target jsc because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  Source/JavaScriptCore/shell/CMakeLists.txt:28 (WEBKIT_EXECUTABLE_DECLARE)


CMake Warning at Source/WebKit/PlatformWPE.cmake:340 (add_library):
  Cannot generate a safe runtime search path for target WPEInjectedBundle
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libxslt.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwoff2dec.so.1.0.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstapp-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstbase-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstpbutils-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstaudio-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgsttag-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstvideo-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstgl-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstfft-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebpdemux.so.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebp.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtasn1.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstreamer-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  Source/cmake/WebKitMacros.cmake:71 (include)
  Source/WebKit/CMakeLists.txt:392 (WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS)


CMake Warning at Source/cmake/WebKitMacros.cmake:143 (add_executable):
  Cannot generate a safe runtime search path for target NetworkProcess
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libxslt.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwoff2dec.so.1.0.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstapp-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstbase-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstpbutils-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstaudio-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgsttag-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstvideo-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstgl-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstfft-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebpdemux.so.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebp.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtasn1.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstreamer-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  Source/WebKit/CMakeLists.txt:379 (WEBKIT_EXECUTABLE_DECLARE)


CMake Warning at Source/cmake/WebKitMacros.cmake:139 (add_library):
  Cannot generate a safe runtime search path for target WebKit because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstreamer-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libxslt.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwoff2dec.so.1.0.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstapp-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstbase-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstpbutils-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstaudio-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgsttag-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstvideo-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstgl-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstfft-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebpdemux.so.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebp.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtasn1.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  Source/WebKit/CMakeLists.txt:391 (WEBKIT_FRAMEWORK_DECLARE)


CMake Warning at Source/cmake/WebKitMacros.cmake:143 (add_executable):
  Cannot generate a safe runtime search path for target WebProcess because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libxslt.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwoff2dec.so.1.0.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstapp-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstbase-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstpbutils-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstaudio-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgsttag-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstvideo-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstgl-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstfft-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libjpeg.so.8] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libpng16.so.16] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebpdemux.so.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libwebp.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libtasn1.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libgstreamer-1.0.so.0] in /root/parts/wpe-webkit/install/usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  Source/WebKit/CMakeLists.txt:378 (WEBKIT_EXECUTABLE_DECLARE)


CMake Warning at Source/cmake/WebKitMacros.cmake:143 (add_executable):
  Cannot generate a safe runtime search path for target WebDriver because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libicudata.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicui18n.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu
    runtime library [libicuuc.so.60] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /snap/gnome-3-34-1804-sdk/current/usr/lib/x86_64-linux-gnu

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  Source/WebDriver/CMakeLists.txt:43 (WEBKIT_EXECUTABLE_DECLARE)

I prefer to put those stage-packages in a separate part and only prime what I really need. For example:

libraries:
  plugin: nil
  stage-packages:
    - gstreamer1.0-plugins-base
  prime:
    - usr/lib/*/gstreamer-1.0/*

If you find anything missing add the stage packages to this part.

For the build of your source parts, include the build-packages necessary that aren’t provided for you already and snapcraft will prefer the versions included in gnome-3-34-1804-sdk so linking shouldn’t be an issue.

That’s a nice trick, thanks! I moved all packages to a separate libraries part, but the errors keep appearing – maybe I’m doing something wrong there, need to do a clean rebuild first. Does it suffice to run snapcraft clean my-part && apt autoremove to reset the part?

Also, I managed to work around build dependency lookup issues with WPE + cog (basically CMake not finding things) and produced a snap, but running the service app spits out a slew of warnings about glib schema symlink failures. Will investigate those some more and open a separate thread.

@kenvandine Regarding build-packages: I noticed that in most cases, the gnome 3-34 platform snap provides shared libraries with versioned SO files, but WPE WebKit is looking for the non-versioned <somelib>.so only provided by the respective dev package. Same with include paths; WPE searches e.g. in /usr/include/freetype2. I can solve some of these issues with CXX_FLAGS or other compiler flags, but the non-versioned SO problem persists.

What’s the best approach here? Just symlinking /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/<libname>.so to /snap/gnome-3-34-1804-sdk/current/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/<libname>.so.<version> seems brittle; installing the -dev package likely produces the errors cannot generate a safe runtime path. Or am I completely misunderstanding this?