You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tool-cache._getOsVersion() had been using /etc/lsb-release to detect Linux OS versions, but recently, it was improved to use /etc/os-release from systemd : #594
But it used VERSION_ID only, and it does not process Linux distro information.
Here are contents of /etc/os-release from various Linux Distros.
Root Cause
Red Hat Enterprise Linux has not adhered to nor been required to be compliant with the LSB specification
since the release of Red Hat Enterprise Linux 8.0. The LSB specification was last updated in 2015
with no activity in the project to update or stay current with the broader open source software ecosystem.
A subset of the utilities and libraries required by the LSB 5.0 specification were deprecated
in Red Hat Enterprise Linux 8 and removed in Red Hat Enterprise Linux 9[1].
With no functioning standard body, and other utilities being removed,
the redhat-lsb packages were also removed from Red Hat Enterprise Linux 9
as any implementation would no longer be able to meet the LSB 5.0 specification.
[1]: https://access.redhat.com/solutions/6973382#fn:1
Describe the enhancement
tool-cache._getOsVersion()
had been using/etc/lsb-release
to detect Linux OS versions, but recently, it was improved to use/etc/os-release
from systemd : #594But it used
VERSION_ID
only, and it does not process Linux distro information./etc/os-release
from various Linux Distros.VERSION_ID
are different.IMHO, the purpose of
tool-cache._getOsVersion()
is to distinguish the ABI of the OS.So, I propose to improve it as follows.
Return
PLATFORM_ID
first if it is available from/etc/os-release
PLATFORM_ID
which OS is compatible.PLATFORM_ID=platform:el8
Return old behavior (
VERSION_ID
from /etc/os-release) ifPLATFORM_ID
is not available.Code Snippet
If applicable, add a code snippet to show the api enhancement.
Additional information
Add any other context about the feature here.
The text was updated successfully, but these errors were encountered: