| Summary: | os-release incorrectly formatted | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] flatpak-platform-plugin | Reporter: | poldoxx <leo> |
| Component: | general | Assignee: | Jan Grulich <jgrulich> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aleixpol, jgrulich, leo |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Flatpak | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/flatpak-kde-runtime/5e216f64522ddbf93853cebd1ceff244f1a317f5 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | minimal flatpak builder json | ||
|
Description
poldoxx
2019-01-29 19:34:16 UTC
These are the contents I get: $ cat /etc/os-release NAME=KDE VERSION=master (Flatpak runtime) VERSION_ID=master ID=org.kde.Platform Feels like an issue upstream. (In reply to Aleix Pol from comment #1) Yes, those contents are incorrect as per the spec. The VERSION string must be enclosed in quotes so build scripts that rely on them can source it. I don't think it is related to upstream because the freedesktop runtime (org.freedesktop.Platform, v18.08) does it with quotes: VERSION="18.08 (Flatpak runtime)" That it works on freedesktop it doesn't mean we're doing it wrong. Bringing to upstream because I can't see what we're doing wrong. https://github.com/flatpak/flatpak-builder/issues/267 Please correct me if I am wrong but it looks to me that os-release is managed here, not generated by them. https://cgit.kde.org/flatpak-kde-runtime.git/log/os-release You are super correct. Thanks for pointing it out. Git commit 9f8944f85638dcea8455d8a08ae9d929b1cde99b by Aleix Pol. Committed on 31/01/2019 at 17:49. Pushed by apol into branch 'qt5.12lts'. Fix version id M +2 -2 os-release https://commits.kde.org/flatpak-kde-runtime/9f8944f85638dcea8455d8a08ae9d929b1cde99b Hate to be a bother, but you didn't add quotes! Git commit 5abb6e1aa6c84fb5800fc550f96474597c6dd144 by Aleix Pol. Committed on 31/01/2019 at 17:55. Pushed by apol into branch 'qt5.12lts'. Add missing quotes M +1 -1 os-release https://commits.kde.org/flatpak-kde-runtime/5abb6e1aa6c84fb5800fc550f96474597c6dd144 Thanks, we're almost there! The quotes need to be around the contents of the VERSION variable. Git commit 5e216f64522ddbf93853cebd1ceff244f1a317f5 by Aleix Pol. Committed on 31/01/2019 at 18:18. Pushed by apol into branch 'qt5.12lts'. Add missing quotes M +1 -1 os-release https://commits.kde.org/flatpak-kde-runtime/5e216f64522ddbf93853cebd1ceff244f1a317f5 And here ^ is the reason for review requests :) |