testing/xemu: fix implicit declaration of basename(3)

This commit is contained in:
Sertonix 2024-08-07 01:18:57 +02:00 committed by Celeste
parent 6559417d2a
commit ee34dd8c7f
2 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=xemu
pkgver=0.7.131
pkgrel=0
pkgrel=1
pkgdesc="Original Xbox Emulator for Windows, macOS, and Linux."
url="https://xemu.app/"
#x86/armv7/armhf failed compilation because of lto (without lto it still doesn't work)
@ -31,6 +31,7 @@ options="!check" # checks fails with xbox parameter
source="$pkgname-$pkgver.tar.gz::https://github.com/xemu-project/xemu/releases/download/v$pkgver/src.tar.gz
fix-missing-include.patch
use-system-libs.patch
basename.patch
"
builddir="$srcdir/"
@ -60,4 +61,5 @@ sha512sums="
0a5ea85652c61b673656aef9bbdda5e3de0b765ebbee9267c4cf71a95916d17038e69874ee3548b2e9453373af3306900e468643d6bc280fbf898e7bc06ebe0b xemu-0.7.131.tar.gz
fc5e9c74c48496ccd1ea5227901b60d11af686641e5a724ad20f866c7ef7a4038ab00d06ba55fbb8e84c202b69a72304ed8a65855f53f6a0403f526dcd3928b8 fix-missing-include.patch
c5cfe0f593c0ae6408814ac5bfc19d4fe030f4e62fcc7665d5d6f52d21b48f42c7bf109c4d3b341afdcc68085bc29b1fad7110673dd157156b69bbfbf8e3c38f use-system-libs.patch
fe7f53a1068af46469f20e3bab994a9f8c18bba7e4863f5a68bd263c5a44c76dd2f7d69db3f2041222db713a5291a8648318f4a7f0138fe16fb1c3657f5e2b9d basename.patch
"

View File

@ -0,0 +1,12 @@
Fix implicit basename(3) declaration
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -21,6 +21,7 @@
#include "qemu/osdep.h"
#include <linux/vfio.h>
#include <sys/ioctl.h>
+#include <libgen.h>
#include "hw/hw.h"
#include "hw/pci/msi.h"