Blame VirtualBox-5.0.18-xserver_guest.patch

32e434
Copyright (c) 2016 Sérgio Basto
32e434
32e434
Permission is hereby granted, free of charge, to any person obtaining a copy of
32e434
this software and associated documentation files (the "Software"), to deal in
32e434
the Software without restriction, including without limitation the rights to
32e434
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
32e434
the Software, and to permit persons to whom the Software is furnished to do so,
32e434
subject to the following conditions:
32e434
32e434
The above copyright notice and this permission notice shall be included in all
32e434
copies or substantial portions of the Software.
32e434
32e434
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32e434
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
32e434
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
32e434
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
32e434
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
32e434
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32e434
32e434
The MIT License is to allow be in included in VirtualBox source code.
32e434
32e434
Using also VBOX_USE_SYSTEM_XORG_HEADERS to build guest additions parts,
32e434
just compile with X11 system source and we may remove all bundle X11 source code.
32e434
32e434
when we use VBOX_USE_SYSTEM_XORG_HEADERS, we don't need compile the very old
32e434
VBoxGuestR3LibXFree86 for use with old servers where the C library is not
32e434
available and becasue fail to build when we unbundle all X11 sources, files like
32e434
xf86_ansic.h doesn't exist anymore.
32e434
32e434
--- ./src/VBox/Additions/common/VBoxGuest/lib/Makefile.kmk.orig	2014-10-11 13:03:35.000000000 +0100
32e434
+++ ./src/VBox/Additions/common/VBoxGuest/lib/Makefile.kmk	2014-10-12 00:11:00.925507543 +0100
32e434
@@ -40,9 +40,11 @@ LIBRARIES += \
32e434
 	VBoxGuestR3LibShared
32e434
 ifndef VBOX_ONLY_VALIDATIONKIT
32e434
  if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
32e434
+ ifndef VBOX_USE_SYSTEM_XORG_HEADERS
32e434
   LIBRARIES += \
32e434
   	VBoxGuestR3LibXFree86
32e434
  endif
32e434
+ endif
32e434
  if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
32e434
   LIBRARIES += \
32e434
   	VBoxGuestR3LibXOrg