mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
Fix patching on powerpc with new xorg.
PR: ports/179229 Submitted by: jhibbits (PR), zeising (patch)
This commit is contained in:
parent
4898ae0280
commit
5f84f960af
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320937
@ -127,7 +127,11 @@ PLIST_SUB+= IA64_NA=""
|
||||
|
||||
.if ${ARCH} == powerpc || ${ARCH} == powerpc64
|
||||
PLIST_SUB+= PPC_NA="@comment "
|
||||
EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-powerpc
|
||||
.if defined(WITH_NEW_XORG)
|
||||
EXTRA_PATCHES= ${.CURDIR}/files/extra-new-arch-powerpc
|
||||
.else
|
||||
EXTRA_PATCHES= ${.CURDIR}/files/extra-old-arch-powerpc
|
||||
.endif
|
||||
.else
|
||||
PLIST_SUB+= PPC_NA=""
|
||||
.endif
|
||||
|
14
x11-servers/xorg-server/files/extra-new-arch-powerpc
Normal file
14
x11-servers/xorg-server/files/extra-new-arch-powerpc
Normal file
@ -0,0 +1,14 @@
|
||||
--- hw/xfree86/os-support/bsd/ppc_video.c.orig 2012-05-17 19:09:03.000000000 +0200
|
||||
+++ hw/xfree86/os-support/bsd/ppc_video.c 2013-06-03 13:46:05.165578200 +0200
|
||||
@@ -135,7 +135,11 @@
|
||||
{
|
||||
|
||||
if (ioBase != MAP_FAILED) {
|
||||
+#if defined(__FreeBSD__)
|
||||
+ munmap(__DEVOLATILE(unsigned char *, ioBase), 0x10000);
|
||||
+#else
|
||||
munmap(__UNVOLATILE(ioBase), 0x10000);
|
||||
+#endif
|
||||
ioBase = MAP_FAILED;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user