Mesa-3D
Mesa-3D copied to clipboard
patched wine fails to compile loadorder.c
Adding d3d9-patches breaks "make DESTDIR=/tmp/knasbubbla install" Without d3d9-patches it works and i do use staging but after i patched with d3d9-patches it breaks. If i don't use d3d9-patches everything works as expected. wine_d3d9_install.txt The patches are from https://github.com/NP-Hardass/wine-d3d9-patches.git and generated with "./generate-d3d9-patch.sh 1.9.9".
package()
{
.....
make prefix="$pkgdir/usr" install
.....
make prefix="$pkgdir/usr" \
libdir="$pkgdir/usr/lib32" \
dlldir="$pkgdir/usr/lib32/wine" install
....
}
This is what wine-gaming-nine's PKGBUILD in aur looks like, maybe use 'prefix' to replace 'DESTDIR'? :) You can check aur here: https://aur.archlinux.org/cgit/aur.git/tree/?h=wine-gaming-nine
EDIT: also this aur package is using a patched 1.99 version instead of generated patches, this can be a workaround
Using prefix instead doesn't make it work.
Please run make first, then run make install. It fails to compile ntdll, as loadorder.c seems broken.
Your right it fails during make with d3d9 patches. configure64-wine.log.txt make64-wine.log.txt
-Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -O2 -fPIC ../../../dlls/ntdll/loadorder.c:655:8: error: redefinition of 'get_redirect' WCHAR* get_redirect( const WCHAR app_name, const WCHAR *path, BYTE *buffer, ULONG size ) ^ ../../../dlls/ntdll/loadorder.c:612:8: note: previous definition of 'get_redirect' was here WCHAR get_redirect( const WCHAR app_name, const WCHAR *path, BYTE *buffer, ULONG size ) ^ Makefile:409: recipe for target 'loadorder.o' failed make[1]: ** [loadorder.o] Error 1 make[1]: Leaving directory '/tmp/build/tmp-wine/wine-1.9.9/wine64/dlls/ntdll' Makefile:12406: recipe for target 'dlls/ntdll' failed make: *** [dlls/ntdll] Error 2
I checked my logs and it seems as the generated d3d9 patches doesn't apply on top of staging. patch-wine.log.txt I guess generate-d3d9-patch.sh should have an option to create diff against staging as well. I can't use pre-patched source in this build script.