From fb0d9e4644e3f9a40cb0e3c830ecd60898fa88ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Sat, 1 Jan 2022 14:35:08 -0300 Subject: [PATCH] openrgb: fix build on musl. --- srcpkgs/openrgb/patches/musl.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/openrgb/patches/musl.patch diff --git a/srcpkgs/openrgb/patches/musl.patch b/srcpkgs/openrgb/patches/musl.patch new file mode 100644 index 00000000000..05fe5df2597 --- /dev/null +++ b/srcpkgs/openrgb/patches/musl.patch @@ -0,0 +1,13 @@ +diff --git a/i2c_smbus/i2c_smbus_linux.cpp b/i2c_smbus/i2c_smbus_linux.cpp +index 33d1494b..f8a2c503 100644 +--- a/i2c_smbus/i2c_smbus_linux.cpp ++++ b/i2c_smbus/i2c_smbus_linux.cpp +@@ -133,7 +133,7 @@ bool i2c_smbus_linux_detect() + strcat(path, ent->d_name); + if(ent->d_type == DT_LNK) + { +- ptr = canonicalize_file_name(path); ++ ptr = realpath(path, NULL); + if(ptr == NULL) + continue; +