-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSS Guard searches for plugins in the wrong path #73
Comments
Hm, that is weird, indeed. Even if the rssguard upstream tarball remained the same. But I see you fixed it with manually specifying "CMAKE_INSTALL_LIBDIR" which is weird because its value should be set, as GNUInstallDirs is used within rssguard's cmakelists.txt. Weird. |
Yeah, I'm a bit lost on this one. And it looks like there hasn't been any recent changes whatsoever in either SDKs. The good commit (444e229) prior to the broken one was pushed only 2 weeks ago, and it's still working fine. We can even downgrade to that build with this command:
And on that build, the path of plugins is more sane (i.e. it works):
Additionally, since Flatpak allows us to check the build manifest of any installed app, which contains every git commit hash (or file hash) of every built module (including SDKs), I was able to verify that no changes were introduced in either Freedesktop or KDE SDKs. Here's the manifest of the "good" version (found in And here's the manifest of the "bad" version (found in And if we run diff --git a/manifest-good.json b/manifest-bad.json
index e74e325..fa3531d 100644
--- a/manifest-good.json
+++ b/manifest-bad.json
@@ -84,7 +84,7 @@
"sources" : [
{
"url" : "https://github.com/haasn/libplacebo.git",
- "commit" : "25ff836306a30e303ea524d1e276a51f2866e7f0",
+ "commit" : "9c4b6bbd7a1e223ffdd61affc4e5d463d42d4345",
"x-checker-data" : {
"type" : "git",
"tag-pattern" : "^v([\\d.]+)$"
@@ -105,8 +105,8 @@
],
"sources" : [
{
- "url" : "https://github.com/KhronosGroup/glslang/archive/14.2.0.tar.gz",
- "sha256" : "14a2edbb509cb3e51a9a53e3f5e435dbf5971604b4b833e63e6076e8c0a997b5",
+ "url" : "https://github.com/KhronosGroup/glslang/archive/14.3.0.tar.gz",
+ "sha256" : "be6339048e20280938d9cb399fcdd06e04f8654d43e170e8cce5a56c9a754284",
"dest-filename" : "glslang.tar.gz",
"x-checker-data" : {
"type" : "anitya",
@@ -158,8 +158,8 @@
],
"sources" : [
{
- "url" : "https://github.com/libass/libass/releases/download/0.17.2/libass-0.17.2.tar.xz",
- "sha256" : "e8261b51d66ba933fe99248c6fdd8767ed96c5a7e5363c83992c735a2c2fbf74",
+ "url" : "https://github.com/libass/libass/releases/download/0.17.3/libass-0.17.3.tar.xz",
+ "sha256" : "eae425da50f0015c21f7b3a9c7262a910f0218af469e22e2931462fed3c50959",
"x-checker-data" : {
"type" : "anitya",
"project-id" : 1560,
@@ -305,5 +305,5 @@
"--talk-name=org.freedesktop.Notifications",
"--system-talk-name=org.freedesktop.UPower"
],
- "source-date-epoch" : 1719016423
+ "source-date-epoch" : 1720042611
}
\ No newline at end of file
Which indicates that literally no part of RSS Guard was touched. This is baffling. lol |
If I'd had to guess myself it could be libplacebo as it had a major version bump as you can see. Try bumping the 2 libraries except this one and I can check. Of course I may be totally wrong as it could be one of the other 2. We have to test it. |
Would that even be possible, though? If you check the manifest, My assumption here is that each module is built isolated from one another, so if that's correct, it'd be impossible for the |
I've closed this through PR #74, but anyone feel free to continue the discussion here if you have an insight on this issue. |
Sorry didn't see that the issue was fixed for you by adding flag to cmake. 😅 |
The folder RSSGUARD_LIBDIR="${CMAKE_INSTALL_LIBDIR}" So it is in fact value of |
Hmm, I think this commit by Flatpak builder is a good candidate as the cause of this issue:
EDIT: The issue was actually caused by this recent version bump of And this is the @bbhtt When you have some time, can you please take a look at this? |
See flatpak/flatpak-builder#608 (comment) I'll patch it again in |
Thank you for the quick response. I'll keep an eye on the follow-up patch. |
You did great job in discovering that, guys. |
This was changed by flatpak/flatpak-builder#588 flathub/org.flatpak.Builder@5d5bd1a should fix it. |
Fixes 8c036e0 It is being set to `$prefix/lib` but CMAKE_INSTALL_LIBDIR is not an absolute path by convention [1]: > It should be a path relative to the installation prefix When it is set to `/app/lib`, it is causing issues in applications [2] [1]: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html#result-variables [2]: flathub/io.github.martinrotter.rssguard#73 (comment)
Fixes 8c036e0 It is being set to `$prefix/lib` but CMAKE_INSTALL_LIBDIR is not an absolute path by convention [1]: > It should be a path relative to the installation prefix When it is set to `/app/lib`, it is causing issues in applications [2] [1]: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html#result-variables [2]: flathub/io.github.martinrotter.rssguard#73 (comment)
For reasons unbeknownst to me, the last commit (66ea628) completely broke the loading of RSS Guard plugins:
As you can see from the output above, the lookup path of plugins is completely wrong, and causes the "Add new account" dialog from RSS Guard to be completely empty on the first run:
I have no idea how that commit could've possibly caused this, because no part of RSS Guard was touched at all.
Maybe it's a regression introduced by upstream (Freedesktop/KDE SDKs).
Anyway, I have no time to track the root of the issue, so I'll open a pull request soon to try to mitigate the issue.
The text was updated successfully, but these errors were encountered: