From b98622cb159c83b31ab18217062a39feb0a19f28 Mon Sep 17 00:00:00 2001 From: Kiriti Gowda Date: Tue, 5 Mar 2024 05:39:41 -0800 Subject: [PATCH] Setup - freedesktop_os_release not available on all versions (#274) Co-authored-by: Aryan Salmanpour [ROCm/rocdecode commit: e961e300fb27172e0181dfb8c001b9b2e2f98290] --- projects/rocdecode/rocDecode-setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocdecode/rocDecode-setup.py b/projects/rocdecode/rocDecode-setup.py index 171851b744..9090d7a10c 100644 --- a/projects/rocdecode/rocDecode-setup.py +++ b/projects/rocdecode/rocDecode-setup.py @@ -125,7 +125,7 @@ if "Ubuntu" in platfromInfo: os.system('sudo -v') os.system('sudo '+linuxFlag+' '+linuxSystemInstall+' '+linuxSystemInstall_check + ' install vainfo libdrm-amdgpu-dev mesa-amdgpu-multimedia-devel') - if "22.04" in platform.freedesktop_os_release().get("VERSION_ID"): + if "22.04" in platform.version(): os.system('sudo '+linuxFlag+' '+linuxSystemInstall+' '+linuxSystemInstall_check + ' install libstdc++-12-dev') else: