directfb: use POSIX basename()

musl 1.2.5 no longer provides the GNU version.

Upstream is dead so patching is probably our only option, but at least
that means it's unlikely to break in a future release!
This commit is contained in:
Alyssa Ross 2024-04-24 14:38:39 +02:00
parent 67cc4bf396
commit 8b592066f0
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -33,6 +33,13 @@ stdenv.mkDerivation rec {
url = "https://git.alpinelinux.org/aports/plain/community/directfb/0002-Fix-musl-PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP-comp.patch?id=f8158258493fc0c3eb5de2302e40f4bc44ecfb09";
sha256 = "sha256-j3+mcP6hV9LKuba1GOdcM1cZfmXuJtRgx4vE484jIns=";
})
# This uses POSIX basename() while directfb expects GNU
# basename(), but the POSIX behaviour of modifying the input
# should be fine since directfb never uses the buffer afterwards.
(fetchpatch {
url = "https://git.alpinelinux.org/aports/plain/community/directfb/fix-missing-basename.patch?id=bc049ae1bcf9ef3f66cd12a6fbb7ac4e917764b1";
hash = "sha256-BX/C8+nh2fovHx8vKXFqKzBtfiTKUcW2BUCsaDIhodc=";
})
];
postPatch = ''