← Back to issue list

Issues building snap from my favorite and best GUI RSS reader, Feedreader

View original Github issue

Metadata

Project
snapcraft
Number
#2099
Type
issue
State
closed
Author
sirredbeard
Labels
Created
Updated
Closed

Current evaluation

Closed without resolution. The author reported Snapcraft build failures for FeedReader. After upstream adopted Meson, the author shifted focus to meson plugin dependency issues, leaving this report abandoned.

Suggested action:

No scores available.

Issue body

This is a follow-up to a bug reported on Launchpad [here](https://bugs.launchpad.net/snapcraft/+bug/1766101). No response there to date. I also [posted](https://forum.snapcraft.io/t/snapcraft-breaking-over-nested-cmake-not-moving-built-files-into-staging-prime-and-dependency-issues/5084) on the Snapcraft forum only to have my post hidden as spam [apparently](https://imgur.com/sVyqVNp) and it limits the number of links per post. There has also need no response on IRC # snappy to date. I decided this needed a nice clean write-up to try and get help, help you help me. So here goes: I am trying to build my first snap from a Github project, [jangernert/FeedReader](https://github.com/jangernert/feedreader). There is no Debian/Ubuntu package available and the [Flatpak is broken](https://github.com/jangernert/FeedReader/issues/657). feedreader is a cmake-based project, with meson recently added on a [testing branch](https://github.com/brendanlong/FeedReader/tree/meson). Snapcraft needs to download and build the latest valac in the snap because what comes on most distros is woefully out of date, including the Snapcraft build machine. Getting and building valac works fine with autotools. But I have run into three issues trying different approaches: **Issue 1**. I can’t simply let the cmake plugin in Snapcraft handle everything because it breaks down when encountering nested cmake files in the [WebExtension](https://github.com/jangernert/FeedReader/tree/master/WebExtension) submodule of the FeedReader project: [ 11%] Built target gtkimageview [ 11%] Linking C static library librss-glib.a [ 11%] Building C object libVilistextum/CMakeFiles/vilistextum.dir/unicode_entities.c.o [ 11%] Building C object libVilistextum/CMakeFiles/vilistextum.dir/util.c.o [ 11%] Built target i18n [ 11%] Building C object libIvy/CMakeFiles/ivy.dir/Stacktrace.c.o [ 12%] Building C object libVilistextum/CMakeFiles/vilistextum.dir/vilistextum.c.o [ 12%] Built target rss-glib [ 12%] Linking C static library libvilistextum.a [ 12%] Built target vilistextum [ 12%] Linking C static library libgd.a [ 12%] Built target gd [ 13%] Linking C static library libivy.a [ 13%] Built target ivy [ 14%] Linking C shared library libwebextension.so [ 14%] Built target webextension Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Failed to run 'make -j8' for 'feedreader': Exited with code 2. Verify that the part is using the correct parameters and try again. **Issue 2.** So I tried using the "build-override" scripting option in the cmake plugin to [call cmake, make, and make install myself ]( https://github.com/sirredbeard/FeedReader/blob/master/snap/snapcraft.yaml)and that appears to build without the issue above. But none of the built libraries and binaries come over into staging or prime, even though I specify they should with snap:, which is what I described [here](https://bugs.launchpad.net/snapcraft/+bug/1766101/comments/3). Other parts, specifically the latest valac built by the autotools plugin, do come over, just them [in fact](https://gist.github.com/sirredbeard/e153da228bf92dab9da269a831bfc79d). So when you try to run this snap, it gives me a "feedreader" not found error because there are no feedreader files, just spiffy new valac files. [snappack.yaml]( https://github.com/sirredbeard/FeedReader/blob/master/snap/snapcraft.yaml) **Issue 3.** FeedReader also has upstream meson build features, so I pulled those in and tried using snapcraft’s meson plugin. But it fails with gcc, glibc, and zlib issues: [snapcraft-meson-version.yaml](https://github.com/sirredbeard/FeedReader/blob/master/snap/snapcraft-meson-version.yaml) ``` /snap/feedreader/x1/usr/bin/feedreader: /lib/x86_64-linux-gnu/libgcc_s.so.1: version `GCC_7.0.0' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37) /snap/feedreader/x1/usr/bin/feedreader: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37) /snap/feedreader/x1/usr/bin/feedreader: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libpng16.so.16) /snap/feedreader/x1/usr/bin/feedreader: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /snap/feedreader/x1/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18) ``` If I can solve any of these three issues, I think this snap could work and would be quite popular. See also the [thread](https://github.com/jangernert/FeedReader/issues/661) in the project itself. Thank you in advance.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The author reported Snapcraft build failures for FeedReader. After upstream adopted Meson, the author shifted focus to meson plugin dependency issues, leaving this report abandoned.
qwen/qwen3.6-35b-a3b Closed without resolution. Superseded by upstream Meson adoption, the author shifted focus to resolving Meson plugin dependency conflicts, leaving initial CMake and staging issues unresolved.
qwen/qwen3.6-35b-a3b Closed without resolution. The author noted upstream FeedReader switched to Meson, superseding the original cmake issues. Focus shifted to meson plugin compatibility, but the snap build remains unresolved.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution. The author abandoned the cmake approach after upstream switched to Meson, shifting focus to resolving meson plugin dependency conflicts. No fix or merge was implemented.
qwen3.6-35b-a3b-mtp-q6 Superseded by upstream's migration to Meson and closed without resolution. The author shifted focus to resolving meson plugin dependency conflicts independently.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1766101 Snapcraft not handling cmake nested builds, not including build script files in snap, and dependency issues with meson builds snapcraft (launchpad) open Snapcraft 2.41 (classic) user reports three problems building FeedReader: cmake plugin fails on nested builds, build-override output not primed, meson build linking host glibc/gcc/zlib. No maintainer interaction; version superseded by core22 rewrite.
77%