dev-libs/libratbag: fix compile on musl

Closes: https://bugs.gentoo.org/935242
Closes: https://bugs.gentoo.org/713624 (obsolete)
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-10-07 14:14:52 +03:00
parent ac11f60a4e
commit c224b05689
4 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
https://bugs.gentoo.org/935242#c3
--- a/src/libratbag-data.c
+++ b/src/libratbag-data.c
@@ -28,6 +28,7 @@
#include <assert.h>
#include <stdlib.h>
#include <glib.h>
+#include <libgen.h>
#include <limits.h>
#include "asus.h"

View File

@@ -70,7 +70,8 @@ DEPEND="
CONFIG_CHECK="~HIDRAW"
PATCHES=(
"${FILESDIR}"/libratbag-0.17-python3.12-imp.patch
"${FILESDIR}"/${PN}-0.17-python3.12-imp.patch
"${FILESDIR}"/${PN}-0.17-basename.patch
)
pkg_setup() {

View File

@@ -69,6 +69,10 @@ DEPEND="
CONFIG_CHECK="~HIDRAW"
PATCHES=(
"${FILESDIR}"/${PN}-0.17-basename.patch
)
pkg_setup() {
linux-info_pkg_setup
python-single-r1_pkg_setup

View File

@@ -69,6 +69,10 @@ DEPEND="
CONFIG_CHECK="~HIDRAW"
PATCHES=(
"${FILESDIR}"/${PN}-0.17-basename.patch
)
pkg_setup() {
linux-info_pkg_setup
python-single-r1_pkg_setup