pkgcache icon indicating copy to clipboard operation
pkgcache copied to clipboard

Naming inconsistency on Rocky Linux

Open thomaszwagerman opened this issue 1 year ago • 0 comments

On rocky 9.4 (x86_64-conda-linux-gnu-rocky-9.4), the following functions use different distribution names for the same system:

pkgcache::current_r_platform_data()$distribution returns 'rocky'

     cpu vendor        os distribution release                         platform
1 x86_64  conda linux-gnu        rocky     9.4 x86_64-conda-linux-gnu-rocky-9.4

pkgcache::ppm_platforms()$distribution returns 'rockylinux'

                   name      os  binary_url distribution release binaries
1               centos7   linux     centos7       centos       7     TRUE
2               centos8   linux     centos8       centos       8     TRUE
3                 rhel9   linux       rhel9   rockylinux       9     TRUE
4            opensuse15   linux  opensuse15     opensuse      15     TRUE
5           opensuse152   linux opensuse152     opensuse    15.2     TRUE
6           opensuse153   linux opensuse153     opensuse    15.3     TRUE
7           opensuse154   linux opensuse154     opensuse    15.4     TRUE
8           opensuse155   linux opensuse155     opensuse    15.5     TRUE
9           opensuse156   linux opensuse156     opensuse    15.6     TRUE
10           opensuse42   linux  opensuse42     opensuse    42.3     TRUE
11                rhel7   linux     centos7       redhat       7     TRUE
12                rhel8   linux     centos8       redhat       8     TRUE
13 rhel9 (unused alias)   linux       rhel9       redhat       9     TRUE
14               sles12   linux  opensuse42          sle    12.3     TRUE
15               sles15   linux  opensuse15          sle      15     TRUE
16              sles152   linux opensuse152          sle    15.2     TRUE
17              sles153   linux opensuse153          sle    15.3     TRUE
18              sles154   linux opensuse154          sle    15.4     TRUE
19              sles155   linux opensuse155          sle    15.5     TRUE
20              sles156   linux opensuse156          sle    15.6     TRUE
21               xenial   linux      xenial       ubuntu   16.04     TRUE
22               bionic   linux      bionic       ubuntu   18.04     TRUE
23                focal   linux       focal       ubuntu   20.04     TRUE
24                jammy   linux       jammy       ubuntu   22.04     TRUE
25                noble   linux       noble       ubuntu   24.04     TRUE
26               buster   linux      buster       debian      10    FALSE
27             bullseye   linux    bullseye       debian      11     TRUE
28             bookworm   linux    bookworm       debian      12     TRUE
29              windows windows        <NA>      windows     all     TRUE
30                macos   macos        <NA>        macos     all     TRUE

This is a very small inconsistency, but as far as I can tell this is the only distribution where this happens. When using these functions to automatically detect and match machine distribution and version to get the binary_url this leads to an unknown distro.

See below the cat /etc/os-release output:

NAME="Rocky Linux"
VERSION="9.4 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.4 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.4"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.4"

thomaszwagerman avatar Nov 01 '24 15:11 thomaszwagerman