Summary: | Add build / initial-setup support for Linux Mint: "kdesrc-build does not know your distribution (linuxmint)" | ||
---|---|---|---|
Product: | [Developer tools] kdesrc-build | Reporter: | Peta <p.kde> |
Component: | setup wizard | Assignee: | Michael Pyne <mpyne> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ashark, p.kde, sitter |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Mint (Ubuntu based) | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Peta
2022-07-01 10:46:04 UTC
Hm, found that in https://invent.kde.org/sdk/kdesrc-build/-/blob/master/modules/ksb/FirstRun.pm#L388 the distros are listed Without having verified, I would expect that ubuntu has ID_LIKE=debian Now, Linux Mint points the ID_LIKE to ubuntu, but not to debian. I guess that's why it fails. There is no double redirect supported by `/etc/os-release`, so a manual work-around is required. Is debian supported? #L389 "# This is woefully incomplete and not very useful." Seems to be related to https://invent.kde.org/sdk/kdesrc-build/-/issues/89 (In reply to Peta from comment #1) > There is no double redirect supported by > `/etc/os-release`, so a manual work-around is required. ID_LIKE= __A space-separated list of operating system identifiers__ in the same syntax as the ID= setting. It should list identifiers of operating systems that are closely related to the local operating system in regards to packaging and programming interfaces, for example listing one or more OS identifiers the local OS is a derivative from. An OS should generally only list other OS identifiers it itself is a derivative of, and not any OSes that are derived from it, though symmetric relationships are possible. Build scripts and similar should check this variable if they need to identify the local operating system and the value of ID= is not recognized. Operating systems should be listed in order of how closely the local operating system relates to the listed ones, starting with the closest. This field is optional. Oh, I wasn't aware of this. If I change the ID_LIKE in my os-release to `ID_LIKE=ubuntu debian` then `./kdesrc-build --initial-setup` installs some stuff. (Did not check yet if I get a working setup). I posted the suggestion to add debian in ID_LIKE for Linux Mint: https://forums.linuxmint.com/viewtopic.php?f=47&t=376664 I have checked now with linuxmintd/mint21.3-amd64 docker image, the /etc/os-release contains the debian: ID_LIKE="ubuntu debian" So initial setup works. |