- Notifications
You must be signed in to change notification settings - Fork17
Closed
Description
On rocky 9.4 (x86_64-conda-linux-gnu-rocky-9.4), the following functions use differentdistribution names for the same system:
pkgcache::current_r_platform_data()$distribution returns 'rocky'
cpu vendor os distribution release platform1 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 binaries1 centos7 linux centos7 centos 7 TRUE2 centos8 linux centos8 centos 8 TRUE3 rhel9 linux rhel9 rockylinux 9 TRUE4 opensuse15 linux opensuse15 opensuse 15 TRUE5 opensuse152 linux opensuse152 opensuse 15.2 TRUE6 opensuse153 linux opensuse153 opensuse 15.3 TRUE7 opensuse154 linux opensuse154 opensuse 15.4 TRUE8 opensuse155 linux opensuse155 opensuse 15.5 TRUE9 opensuse156 linux opensuse156 opensuse 15.6 TRUE10 opensuse42 linux opensuse42 opensuse 42.3 TRUE11 rhel7 linux centos7 redhat 7 TRUE12 rhel8 linux centos8 redhat 8 TRUE13 rhel9 (unused alias) linux rhel9 redhat 9 TRUE14 sles12 linux opensuse42 sle 12.3 TRUE15 sles15 linux opensuse15 sle 15 TRUE16 sles152 linux opensuse152 sle 15.2 TRUE17 sles153 linux opensuse153 sle 15.3 TRUE18 sles154 linux opensuse154 sle 15.4 TRUE19 sles155 linux opensuse155 sle 15.5 TRUE20 sles156 linux opensuse156 sle 15.6 TRUE21 xenial linux xenial ubuntu 16.04 TRUE22 bionic linux bionic ubuntu 18.04 TRUE23 focal linux focal ubuntu 20.04 TRUE24 jammy linux jammy ubuntu 22.04 TRUE25 noble linux noble ubuntu 24.04 TRUE26 buster linux buster debian 10 FALSE27 bullseye linux bullseye debian 11 TRUE28 bookworm linux bookworm debian 12 TRUE29 windows windows<NA> windows all TRUE30 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 thecat /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"