Ticket #23080: virtualbox-remove-darwin.patch
File virtualbox-remove-darwin.patch, 13.1 KB (added by mmitar@…, 14 years ago) |
---|
-
VirtualBox-4.0.0_OSE
diff -Naur VirtualBox-4.0.0_OSE/AutoConfig.kmk VirtualBox-4.0.0_OSE.new/AutoConfig.kmk
old new 1 # -*- Makefile -*- 2 # 3 # automatically generated by 4 # 5 # './configure --disable-hardening --disable-docs --with-openssl-dir=/opt/local' 6 # 7 # It will be completely overwritten if configure is executed again. 8 # 9 10 VBOX_OSE := 1 11 VBOX_WITH_TESTSUITE := 12 VBOX_WITH_WIN32_ADDITIONS := 13 VBOX_WITH_LINUX_ADDITIONS := 14 15 VBOX_WITH_SECURELABEL := 16 VBOX_WITHOUT_HARDENING := 1 17 VBOX_MACOS_10_5_WORKAROUND := 1 18 TOOL_GCC32_CC := gcc 19 TOOL_GCC32_AS := gcc 20 TOOL_GCC32_LD := gcc 21 TOOL_GXX32_CC := gcc 22 TOOL_GXX32_AS := gcc 23 TOOL_GCC32_CXX := g++ 24 TOOL_GXX32_CXX := g++ 25 TOOL_GXX32_LD := g++ 26 VBOX_LIBIDL_CONFIG := PKG_CONFIG_PATH=/opt/local/lib/pkgconfig /opt/local/bin/libIDL-config-2 27 SDK_VBOX_OPENSSL_INCS := /opt/local/include 28 SDK_VBOX_OPENSSL_LIBS := /opt/local/lib/libcrypto.a 29 SDK_VBOX_BLD_OPENSSL_LIBS := /opt/local/lib/libcrypto.a 30 SDK_VBOX_LIBCURL_LIBS := curl 31 SDK_VBOX_LIBCURL_INCS := 32 VBOX_WITH_CROGL := 1 33 VBOX_PATH_QT4_LIB := /opt/local/lib 34 SDK_QT4_LIBPATH := /opt/local/lib 35 PATH_SDK_QT4_INC := /opt/local/include 36 PATH_SDK_QT4_LIB := /opt/local/lib 37 VBOX_WITH_PYTHON := 1 38 VBOX_WITH_WEBSERVICES := 39 VBOX_WITH_DOCS := 40 VBOX_WITH_DOCS_PACKING := -
VirtualBox-4.0.0_OSE
diff -Naur VirtualBox-4.0.0_OSE/Config.kmk VirtualBox-4.0.0_OSE.new/Config.kmk
old new 584 584 if1of ($(KBUILD_TARGET), linux solaris) 585 585 VBOX_PATH_APP_PRIVATE = /opt/VirtualBox 586 586 else ifeq ($(KBUILD_TARGET),darwin) 587 VBOX_PATH_APP_PRIVATE = /Applications/ VirtualBox.app/Contents/MacOS587 VBOX_PATH_APP_PRIVATE = /Applications/Utilities/VirtualBox.app/Contents/MacOS 588 588 else ifeq ($(KBUILD_TARGET),freebsd) 589 589 VBOX_PATH_APP_PRIVATE = /usr/local/lib/virtualbox 590 590 endif … … 3735 3735 # be cleaned up properly later some time (not important now). 3736 3736 # 3737 3737 ifeq ($(VBOX_PATH_QT4),) 3738 ifeq ($(KBUILD_TARGET),darwin)3739 VBOX_PATH_QT4 := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))3740 ifeq ($(VBOX_PATH_QT4),)3741 ifneq ($(wildcard /Library/Frameworks/QtCore.framework),)3742 # Using the global installation (for OSE).3743 VBOX_PATH_QT4 ?= /usr3744 VBOX_PATH_QT4_FRAMEWORKS ?= /Library/Frameworks3745 endif3746 endif3747 else if1of ($(KBUILD_TARGET), win)3748 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))3749 else if1of ($(KBUILD_TARGET), solaris)3750 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))3751 ifneq ($(VBOX_PATH_QT4),)3752 VBOX_WITH_QT4_SUN = 13753 endif3754 endif3755 endif3756 ifeq ($(VBOX_PATH_QT4),)3757 3738 if1of ($(USERNAME), bird) 3758 3739 # gentoo (64-bit) 3759 3740 VBOX_PATH_QT4 ?= /usr -
VirtualBox-4.0.0_OSE
diff -Naur VirtualBox-4.0.0_OSE/LocalConfig.kmk VirtualBox-4.0.0_OSE.new/LocalConfig.kmk
old new 1 VBOX_DEF_MACOSX_VERSION_MIN = 10.6 2 VBOX_DARWIN_NO_COMPACT_LINKEDIT = 3 VBOX_MACOS_10_5_WORKAROUND = -
VirtualBox-4.0.0_OSE
diff -Naur VirtualBox-4.0.0_OSE/Makefile.kmk VirtualBox-4.0.0_OSE.new/Makefile.kmk
old new 182 182 # Install our Qt DLLs / Shared Objects / Frameworks. 183 183 # Note: The installer fixes the darwin .dylibs when hardening is enabled. 184 184 # 185 ifeq ($(KBUILD_TARGET),darwin)186 INSTALLS += qt4-bin187 qt4-bin_MODE = 755188 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/189 qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT4_MOD_NAMES) \190 ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod))191 ifdef VBOX_WITH_COCOA_QT192 qt4-bin_SOURCES += \193 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \194 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \195 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib196 endif197 ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)198 qt4-bin_SOURCES += \199 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib200 endif201 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \202 ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod))203 ifdef VBOX_WITH_COCOA_QT204 qt4-bin_SYMLINKS += \205 Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/206 endif207 else208 ifdef VBOX_WITH_QT4_SUN209 ifeq ($(KBUILD_TARGET),win)210 INSTALLS += qt4-bin211 qt4-bin_MODE = 755212 qt4-bin_INST = $(INST_BIN)213 qt4-bin_SOURCES = \214 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/$(qtmod)4$(SUFF_DLL)) \215 $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL)=>accessible/qtaccessiblewidgets4$(SUFF_DLL)216 else217 INSTALLS += qt4-bin218 qt4-bin_MODE = 755219 qt4-bin_INST = $(INST_BIN)220 qt4-bin_SOURCES = \221 $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/lib$(qtmod)$(SUFF_DLL).4) \222 $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)223 endif224 endif # VBOX_WITH_QT4_SUN225 endif226 185 227 186 228 187 # -
VirtualBox-4.0.0_OSE
diff -Naur VirtualBox-4.0.0_OSE/configure VirtualBox-4.0.0_OSE.new/configure
old new 1424 1424 { 1425 1425 foundqt4= 1426 1426 test_header Qt4 1427 if [ "$OS" = "darwin" ]; then1428 # First check if there is the internal version of Qt. If yes nothing else1429 # has to be done.1430 QT_INTERNAL=`/bin/ls -rd1 $PWD/tools/$BUILD_TARGET.$BUILD_PLATFORM_ARCH/qt/* 2> /dev/null`1431 for t in $QT_INTERNAL; do1432 if [ -f "$t/Frameworks/QtCoreVBox.framework/QtCoreVBox" ]; then1433 cnf_append "VBOX_WITH_QT4_SUN" "1"1434 log_success "use internal version"1435 return1436 fi1437 done1438 # Now try the user provided directory and some of the standard directories.1439 QT_TRIES="$QT4DIR /System/Library /Library"1440 for t in $QT_TRIES; do1441 if [ -f "$t/Frameworks/QtCore.framework/QtCore" ]; then1442 PATH_SDK_QT4="$t"1443 break1444 fi1445 done1446 # Add the necessary params for building the test application1447 if [ -n "$PATH_SDK_QT4" ]; then1448 foundqt4=11449 INCQT4=-I$PATH_SDK_QT4/Frameworks/QtCore.framework/Headers1450 LIBQT4=-F$PATH_SDK_QT4/Frameworks1451 FLGQT4="-framework QtCore"1452 else1453 log_failure "Qt4 framework not found (can be disabled using --disable-qt4)"1454 fail1455 fi1456 else1457 1427 if [ $QT4DIR_PKGCONFIG -eq 1 ]; then 1458 1428 # default is to use pkg-config 1459 1429 if which_wrapper pkg-config > /dev/null; then 1460 1430 # this braindead path is necessary for mdv2008.1 1461 1431 qt4_ver=`\ 1462 PKG_CONFIG_PATH=/ usr/lib/qt4/lib/pkgconfig \1432 PKG_CONFIG_PATH=/opt/local/lib/pkgconfig \ 1463 1433 pkg-config QtCore --modversion 2>> $LOG` 1464 1434 if [ $? -ne 0 ]; then 1465 1435 log_failure "QtCore not found" 1466 1436 fail 1467 1437 else 1468 1438 FLGQT4=`\ 1469 PKG_CONFIG_PATH=/ usr/lib/qt4/lib/pkgconfig \1439 PKG_CONFIG_PATH=/opt/local/lib/pkgconfig \ 1470 1440 pkg-config QtCore --cflags` 1471 1441 INCQT4=`strip_I "$FLGQT4"` 1472 1442 LIBQT4=`\ 1473 PKG_CONFIG_PATH=/ usr/lib/qt4/lib/pkgconfig \1443 PKG_CONFIG_PATH=/opt/local/lib/pkgconfig \ 1474 1444 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \ 1475 1445 pkg-config QtCore --libs` 1476 1446 foundqt4=1 … … 1512 1482 fi 1513 1483 done 1514 1484 fi 1515 fi1516 1485 if [ -n "$foundqt4" ]; then 1517 1486 cat > $ODIR.tmp_src.cc << EOF 1518 1487 #include <cstdio> … … 1532 1501 [ -n "$INCQT4" ] && I_INCQT4=`prefix_I "$INCQT4"` 1533 1502 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then 1534 1503 if test_execute_path "`strip_L "$LIBQT4"`"; then 1535 if [ "$OS" = "darwin" ]; then1536 # Successful build & run the test application so add the necessary1537 # params to AutoConfig.kmk1538 cnf_append "PATH_SDK_QT4_INC" "$PATH_SDK_QT4/Frameworks"1539 cnf_append "PATH_SDK_QT4_LIB" "$PATH_SDK_QT4/Frameworks"1540 cnf_append "PATH_SDK_QT4" "$PATH_SDK_QT4/Frameworks"1541 # Check for the moc tool in the Qt directory found & some standard1542 # directories.1543 for q in $PATH_SDK_QT4 /usr /Developer/Tools/Qt; do1544 if which_wrapper "$q/bin/moc" > /dev/null; then1545 cnf_append "PATH_TOOL_QT4" "$q"1546 cnf_append "PATH_TOOL_QT4_BIN" "$q/bin"1547 fi1548 done1549 else1550 1504 # strip .../QtCore as we add components ourself 1551 1505 INCQT4=`echo "$INCQT4"|$KBUILD_SED 's|\([^ ]*\)/QtCore|\1|g; s| $||g'` 1552 1506 # store only the first path, remove all other pathes … … 1592 1546 fi 1593 1547 fi 1594 1548 done 1595 fi1596 1549 fi 1597 1550 else 1598 1551 log_failure "qt4 not working" -
kBuild/units/qt4.kmk
diff -Naur VirtualBox-4.0.0_OSE/kBuild/units/qt4.kmk VirtualBox-4.0.0_OSE.new/kBuild/units/qt4.kmk
old new 70 70 ifeq ($(PATH_SDK_QT4),) 71 71 # If target == host, try look for Qt in the various platform specific places. 72 72 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST)) 73 ifeq ($(KBUILD_TARGET),darwin)74 PATH_SDK_QT4 := $(patsubst %/Frameworks/QtCore.framework/Versions/4,%,$(firstword $(wildcard /Library/Frameworks/QtCore.framework/Versions/4)))75 else ifeq ($(KBUILD_TARGET),win)76 # No idea here yet...77 else ifeq ($(KBUILD_TARGET),ose)78 # No port...79 else80 73 # The Unices. Includes and esp. libs are tricky, so override the PATH_SDK_QT4_LIB* stuff if it doesn't work. 81 74 # Try find the general root of thing by looking for the qt3to4 program, if not found, then look for rcc. 82 75 PATH_SDK_QT4 := $(patsubst %/bin/qt3to4,%,$(firstword $(wildcard \ … … 163 156 endif 164 157 165 158 endif 166 endif # Unices167 159 endif 168 160 # Found it? 169 161 ifeq ($(PATH_SDK_QT4),) … … 178 170 179 171 # Libraries can be in either Frameworks or lib depending on how you 180 172 # build it on the mac. The .dmg installs into Frameworks but builds into lib. 181 ifeq ($(KBUILD_TARGET),darwin) 182 ifndef PATH_SDK_QT4_LIB 183 ifneq ($(wildcard $(PATH_SDK_QT4)/Frameworks),) 184 PATH_SDK_QT4_LIB ?= $(PATH_SDK_QT4)/Frameworks 185 else 186 PATH_SDK_QT4_LIB ?= $(PATH_SDK_QT4)/lib 187 endif 188 endif 189 else 190 PATH_SDK_QT4_LIB ?= $(PATH_SDK_QT4)/lib 191 PATH_SDK_QT4_INC ?= $(PATH_SDK_QT4)/include 192 endif 173 PATH_SDK_QT4_LIB ?= $(PATH_SDK_QT4)/lib 174 PATH_SDK_QT4_INC ?= $(PATH_SDK_QT4)/include 193 175 194 176 # The bits that kBuild picks up. 195 177 # (nothing here) … … 953 935 $($(target)_QT_INFIX.$(bld_trg_cpu)) \ 954 936 $($(target)_QT_INFIX.$(bld_type)) \ 955 937 $($(target)_QT_INFIX)) 956 ifeq ($(bld_trg),darwin) 957 # Adding -F to CXXFLAGS is necessary to make #include <QtCore/qstring.h> stuff work... 958 $(eval $(target)_CXXFLAGS += -F$(PATH_SDK_QT4_LIB) ) 959 $(eval $(target)_OBJCXXFLAGS += -F$(PATH_SDK_QT4_LIB) ) 960 $(eval $(target)_LDFLAGS += -F$(PATH_SDK_QT4_LIB) $(foreach module,$(qt_modules), -framework $(qt_prefix)Qt$(module)$(qt_infix)) ) 961 $(eval $(target)_INCS += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module)$(qt_infix).framework/Versions/4/Headers) ) 962 else 963 ifeq ($(bld_trg),win) 964 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module)$(qt_infix)4$(SUFF_LIB)) ) 965 ifeq ($(tool_do),LINK_PROGRAM) 966 $(eval $(target)_LIBS += $(PATH_SDK_QT4_LIB)/$(qt_prefix)qtmain$(qt_infix)$(SUFF_LIB) ) 967 endif 968 else 969 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/lib$(qt_prefix)Qt$(module)$(qt_infix)$(SUFF_DLL)) ) 970 endif 971 $(eval $(target)_INCS += $(addprefix $(PATH_SDK_QT4_INC)/Qt,$(qt_modules)) $(PATH_SDK_QT4_INC) ) 972 endif 938 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/lib$(qt_prefix)Qt$(module)$(qt_infix)$(SUFF_DLL)) ) 939 $(eval $(target)_INCS += $(addprefix $(PATH_SDK_QT4_INC)/Qt,$(qt_modules)) $(PATH_SDK_QT4_INC) ) 973 940 $(eval $(target)_DEFS += $(foreach module,$(toupper $(qt_modules)), QT_$(module)_LIB) ) 974 941 975 942