https://bugs.kde.org/show_bug.cgi?id=403742

            Bug ID: 403742
           Summary: os-release incorrectly formatted
           Product: flatpak-platform-plugin
           Version: unspecified
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jgrul...@redhat.com
          Reporter: l...@comitale.ca
  Target Milestone: ---

Created attachment 117716
  --> https://bugs.kde.org/attachment.cgi?id=117716&action=edit
minimal flatpak builder json

SUMMARY
The os-release file "VERSION" field is incorrectly formatted and causes parsing
errors in software that tries to source it.

STEPS TO REPRODUCE
1. Create a basic flatpak build json (as in
http://docs.flatpak.org/en/latest/first-build.html) but specify the KDE runtime
instead of the default freedesktop one.  
2. In the "commands" section of the flatpak json file, add ". /etc/os-release".
3. Run the build (flatpak-builder build org.flatpak.Hello.json)

OBSERVED RESULT
The flatpak build exits with an error parsing the os-release file due to
missing quotes.

EXPECTED RESULT
The flatpak should build successfully.

SOFTWARE/OS VERSIONS
KDE Flatpak platform 5.12

ADDITIONAL INFORMATION
I've attached a json file demonstrating the problem.

See "https://www.freedesktop.org/software/systemd/man/os-release.html"; for
details on the correct way to specify the os-release file, in particular the
part that says: {{{Variable assignment values must be enclosed in double or
single quotes if they include spaces, semicolons or other special characters
outside of A–Z, a–z, 0–9.}}}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to