community/obexd-enhanced: fix implicit basename declaration

This commit is contained in:
Sören Tempel 2024-09-04 20:11:46 +02:00
parent 73351a70e2
commit ec6184ce2b
2 changed files with 19 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
pkgname=obexd-enhanced
pkgver=5.77
pkgrel=0
pkgrel=1
pkgdesc="OBEXD with enhanced capabilities such as PBAP"
url="https://www.bluez.org/"
arch="all"
@ -41,6 +41,7 @@ source="https://www.kernel.org/pub/linux/bluetooth/bluez-$pkgver.tar.xz
fix-endianness.patch
test-mesh-crypto.patch
disable-test-vcp.patch
basename.patch
"
builddir="$srcdir/bluez-$pkgver"
@ -101,4 +102,5 @@ ac635f9bca0e983835940572eb1b96ad70cf60fb84d5b0fde38c76ea6d1b13ef7d9adf81468b9fed
2f54da5e77893d1d8b7164ddac5561a9e536c2b93b1d33dcbd97e74c0fd45588f1f50dc1d9d8519297871e3a376948082a2e45e27d823ec81cdedecd8dba3f0c fix-endianness.patch
b5d6f7d2df755a9b8cffaeef13d232ba1bab27544bc59e2299bbd6a8017768cf7781f3ca65e430a149a26f0b30ae74b8510529ce161705bb6f41ae512cc2dbac test-mesh-crypto.patch
e7a07f26d92caaf11a457a8504219973da0aa80f2c97b36af2135aa36f7f4b52978f632c9c5123d66d71b4b65a780710dea802ca0dcaabc5c051f7b7d21763cf disable-test-vcp.patch
d40b36defdb06ae7b5e264101880feb249210232007f9ff04706f299f762a5d55b48c4be0545897a5e6d90a9f451c7f83af0e0224aca765aa538b8ca114d6137 basename.patch
"

View File

@ -0,0 +1,16 @@
See https://gitlab.alpinelinux.org/alpine/aports/-/issues/16106
diff -upr bluez-5.77.orig/tools/hex2hcd.c bluez-5.77/tools/hex2hcd.c
--- bluez-5.77.orig/tools/hex2hcd.c 2024-09-04 20:10:39.417142409 +0200
+++ bluez-5.77/tools/hex2hcd.c 2024-09-04 20:11:13.323811772 +0200
@@ -25,6 +25,10 @@
#include <stdbool.h>
#include <sys/stat.h>
+/* GNU basename version */
+#define basename(path) \
+ (strrchr((path),'/') ? strrchr((path),'/')+1 : (path))
+
static ssize_t process_record(int fd, const char *line, uint16_t *upper_addr)
{
const char *ptr = line + 1;