Blame VirtualBox-5.0.18-xserver_guest.patch

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