Ticket #28469: patch-build.diff
File patch-build.diff, 15.5 KB (added by carsomyr@…, 13 years ago) |
---|
-
Config.kmk
old new 1094 1094 # of VirtualBox binaries. We request though that you always use something that 1095 1095 # clearly identifies your build and makes it clear that it is not one done by 1096 1096 # the VirtualBox team. 1097 VBOX_BUILD_PUBLISHER = _ OSE1097 VBOX_BUILD_PUBLISHER = _MacPorts 1098 1098 endif 1099 1099 1100 1100 # Keep in sync with G_virtualBoxPackage in glue-jaxws.xsl and glue-java.xsl … … 2065 2065 VBOX_GCC32_CHECK_CXX = $(2) 2066 2066 else 2067 2067 VBOX_GCC_CHECK_CC = $(shell \ 2068 if $(TOOL_$(VBOX_GCC_TOOL)_CC) $(1) -S - o /dev/null -xc /dev/null > /dev/null 2>&1; \2068 if $(TOOL_$(VBOX_GCC_TOOL)_CC) $(1) -S -xc /dev/null > /dev/null 2>&1; \ 2069 2069 then echo "$(1)"; \ 2070 2070 else echo "$(2)"; fi; ) 2071 2071 2072 2072 VBOX_GCC_CHECK_CXX = $(shell \ 2073 if $(TOOL_$(VBOX_GCC_TOOL)_CXX) $(1) -S - o /dev/null -xc++ /dev/null > /dev/null 2>&1; \2073 if $(TOOL_$(VBOX_GCC_TOOL)_CXX) $(1) -S -xc++ /dev/null > /dev/null 2>&1; \ 2074 2074 then echo "$(1)"; \ 2075 2075 else echo "$(2)"; fi; ) 2076 2076 2077 2077 VBOX_GCC_CHECK_LD = $(shell \ 2078 if $(TOOL_$(VBOX_GCC_TOOL)_LD) -Wl,$(1) $(if $(eq $(KBUILD_HOST),darwin),-Wl$(COMMA)-u$(COMMA)start -Wl$(COMMA)-undefined$(COMMA)dynamic_lookup,) -nostdlib - o /dev/null -xc /dev/null > /dev/null 2>&1 ;\2078 if $(TOOL_$(VBOX_GCC_TOOL)_LD) -Wl,$(1) $(if $(eq $(KBUILD_HOST),darwin),-Wl$(COMMA)-u$(COMMA)start -Wl$(COMMA)-undefined$(COMMA)dynamic_lookup,) -nostdlib -xc /dev/null > /dev/null 2>&1 ;\ 2079 2079 then echo "-Wl,$(1)"; \ 2080 2080 else echo "$(2)"; fi; ) 2081 2081 2082 2082 VBOX_GCC32_CHECK_CXX = $(shell \ 2083 if $(TOOL_$(VBOX_GCC32_TOOL)_CXX) $(1) -S - o /dev/null -xc++ /dev/null > /dev/null 2>&1; \2083 if $(TOOL_$(VBOX_GCC32_TOOL)_CXX) $(1) -S -xc++ /dev/null > /dev/null 2>&1; \ 2084 2084 then echo "$(1)"; \ 2085 2085 else echo "$(2)"; fi; ) 2086 2086 endif … … 3945 3945 # be cleaned up properly later some time (not important now). 3946 3946 # 3947 3947 ifeq ($(VBOX_PATH_QT4),) 3948 ifeq ($(KBUILD_TARGET),darwin)3949 VBOX_PATH_QT4 := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))3950 ifeq ($(VBOX_PATH_QT4),)3951 ifneq ($(wildcard /Library/Frameworks/QtCore.framework),)3952 # Using the global installation (for OSE).3953 VBOX_PATH_QT4 ?= /usr3954 VBOX_PATH_QT4_FRAMEWORKS ?= /Library/Frameworks3955 endif3956 endif3957 else if1of ($(KBUILD_TARGET), win)3958 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))3959 else if1of ($(KBUILD_TARGET), solaris)3960 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))3961 ifneq ($(VBOX_PATH_QT4),)3962 VBOX_WITH_QT4_SUN = 13963 endif3964 endif3965 endif3966 ifeq ($(VBOX_PATH_QT4),)3967 3948 if1of ($(USERNAME), bird) 3968 3949 # gentoo (64-bit) 3969 3950 VBOX_PATH_QT4 ?= /usr -
new file LocalConfig.kmk
- + 1 VBOX_DEF_MACOSX_VERSION_MIN = 10.6 2 VBOX_DARWIN_NO_COMPACT_LINKEDIT = 3 VBOX_MACOS_10_5_WORKAROUND = -
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 # -
configure
old new 96 96 BUILD_LIBCURL= 97 97 BUILD_LIBSSL= 98 98 PASSIVE_MESA=0 99 CC=" gcc"99 CC="@CONFIGURE.CC@" 100 100 CC32="" 101 101 CC64="" 102 CXX=" g++"102 CXX="@CONFIGURE.CXX@" 103 103 CXX32="" 104 104 CXX64="" 105 105 BCC="bcc" … … 1100 1100 check_sdl() 1101 1101 { 1102 1102 test_header SDL 1103 if [ "$OS" = "darwin" ]; then1104 if [ -f "/System/Library/Frameworks/SDL.framework/SDL" ]; then1105 PATH_SDK_LIBSDL="/System/Library/Frameworks/SDL.framework"1106 elif [ -f "/Library/Frameworks/SDL.framework/SDL" ]; then1107 PATH_SDK_LIBSDL="/Library/Frameworks/SDL.framework"1108 fi1109 if [ -n "$PATH_SDK_LIBSDL" ]; then1110 foundsdl=11111 INCSDL="$PATH_SDK_LIBSDL/Headers"1112 FLDSDL="-framework SDL"1113 else1114 log_failure "SDL framework not found"1115 fail1116 fi1117 else1118 1103 if which_wrapper sdl-config > /dev/null; then 1119 1104 FLGSDL=`sdl-config --cflags` 1120 1105 INCSDL=`strip_I "$FLGSDL"` … … 1123 1108 FLDSDL= 1124 1109 foundsdl=1 1125 1110 fi 1126 fi1127 1111 [ "$OS" = "linux" -o "$OS" = "darwin" -o "$OS" = "solaris" ] && LIBSDLMAIN="" 1128 1112 if [ -n "$foundsdl" ]; then 1129 1113 cat > $ODIR.tmp_src.cc << EOF … … 1471 1455 { 1472 1456 foundqt4= 1473 1457 test_header Qt4 1474 if [ "$OS" = "darwin" ]; then1475 # First check if there is the internal version of Qt. If yes nothing else1476 # has to be done.1477 QT_INTERNAL=`/bin/ls -rd1 $PWD/tools/$BUILD_TARGET.$BUILD_PLATFORM_ARCH/qt/* 2> /dev/null`1478 for t in $QT_INTERNAL; do1479 if [ -f "$t/Frameworks/QtCoreVBox.framework/QtCoreVBox" ]; then1480 cnf_append "VBOX_WITH_QT4_SUN" "1"1481 log_success "use internal version"1482 return1483 fi1484 done1485 # Now try the user provided directory and some of the standard directories.1486 QT_TRIES="$QT4DIR /System/Library /Library"1487 for t in $QT_TRIES; do1488 if [ -f "$t/Frameworks/QtCore.framework/QtCore" ]; then1489 PATH_SDK_QT4="$t"1490 break1491 fi1492 done1493 # Add the necessary params for building the test application1494 if [ -n "$PATH_SDK_QT4" ]; then1495 foundqt4=11496 INCQT4=-I$PATH_SDK_QT4/Frameworks/QtCore.framework/Headers1497 LIBQT4=-F$PATH_SDK_QT4/Frameworks1498 FLGQT4="-framework QtCore"1499 else1500 log_failure "Qt4 framework not found (can be disabled using --disable-qt4)"1501 fail1502 fi1503 else1504 1458 if [ $QT4DIR_PKGCONFIG -eq 1 ]; then 1505 1459 # default is to use pkg-config 1506 1460 if which_wrapper pkg-config > /dev/null; then 1507 1461 # this braindead path is necessary for mdv2008.1 1508 1462 qt4_ver=`\ 1509 PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig \1510 1463 pkg-config QtCore --modversion 2>> $LOG` 1511 1464 if [ $? -ne 0 ]; then 1512 1465 log_failure "QtCore not found" 1513 1466 fail 1514 1467 else 1515 1468 FLGQT4=`\ 1516 PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig \1517 1469 pkg-config QtCore --cflags` 1518 1470 INCQT4=`strip_I "$FLGQT4"` 1519 1471 LIBQT4=`\ 1520 PKG_CONFIG_PATH=/usr/lib/qt4/lib/pkgconfig \1521 1472 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \ 1522 1473 pkg-config QtCore --libs` 1523 1474 foundqt4=1 … … 1559 1510 fi 1560 1511 done 1561 1512 fi 1562 fi1563 1513 if [ -n "$foundqt4" ]; then 1564 1514 cat > $ODIR.tmp_src.cc << EOF 1565 1515 #include <cstdio> … … 1579 1529 [ -n "$INCQT4" ] && I_INCQT4=`prefix_I "$INCQT4"` 1580 1530 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then 1581 1531 if test_execute_path "`strip_L "$LIBQT4"`"; then 1582 if [ "$OS" = "darwin" ]; then1583 # Successful build & run the test application so add the necessary1584 # params to AutoConfig.kmk1585 cnf_append "PATH_SDK_QT4_INC" "$PATH_SDK_QT4/Frameworks"1586 cnf_append "PATH_SDK_QT4_LIB" "$PATH_SDK_QT4/Frameworks"1587 cnf_append "PATH_SDK_QT4" "$PATH_SDK_QT4/Frameworks"1588 # Check for the moc tool in the Qt directory found & some standard1589 # directories.1590 for q in $PATH_SDK_QT4 /usr /Developer/Tools/Qt; do1591 if which_wrapper "$q/bin/moc" > /dev/null; then1592 cnf_append "PATH_TOOL_QT4" "$q"1593 cnf_append "PATH_TOOL_QT4_BIN" "$q/bin"1594 fi1595 done1596 else1597 1532 # strip .../QtCore as we add components ourself 1598 1533 INCQT4=`echo "$INCQT4"|$KBUILD_SED 's|\([^ ]*\)/QtCore|\1|g; s| $||g'` 1599 1534 # store only the first path, remove all other pathes … … 1639 1574 fi 1640 1575 fi 1641 1576 done 1642 fi1643 1577 fi 1644 1578 else 1645 1579 log_failure "qt4 not working" … … 2242 2176 WITH_PULSE=0 2243 2177 WITH_DBUS=0 2244 2178 WITH_KMODS=0 2245 BUILD_LIBXSLT=12246 BUILD_LIBXML2=12247 2179 [ $OSE -eq 1 ] || BUILD_LIBCURL=1 2248 2180 [ $OSE -eq 1 ] || BUILD_LIBSSL=1 2249 2181 fi … … 2281 2213 --with-openssl-dir=*) 2282 2214 OPENSSLDIR=`echo $option | cut -d'=' -f2` 2283 2215 INCCRYPTO="-I${OPENSSLDIR}/include" 2284 LIBCRYPTO="${OPENSSLDIR}/lib/libcrypto. a ${OPENSSLDIR}/lib/libssl.a"2216 LIBCRYPTO="${OPENSSLDIR}/lib/libcrypto.dylib ${OPENSSLDIR}/lib/libssl.dylib" 2285 2217 ;; 2286 2218 --with-gsoap-dir=*) 2287 2219 GSOAP=`echo $option | cut -d'=' -f2` -
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 -
src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
old new 1454 1454 1455 1455 /* Check for the already registered image */ 1456 1456 CVirtualBox vbox = vboxGlobal().virtualBox(); 1457 QString name = QString("VBoxGuestAdditions_%1.iso").arg(vbox.GetVersion().remove("_ OSE"));1457 QString name = QString("VBoxGuestAdditions_%1.iso").arg(vbox.GetVersion().remove("_MacPorts")); 1458 1458 1459 1459 CMediumVector vec = vbox.GetDVDImages(); 1460 1460 for (CMediumVector::ConstIterator it = vec.begin(); it != vec.end(); ++ it) … … 1470 1470 int result = msgCenter().cannotFindGuestAdditions(QDir::toNativeSeparators(strSrc1), QDir::toNativeSeparators(strSrc2)); 1471 1471 if (result == QIMessageBox::Yes) 1472 1472 { 1473 QString source = QString("http://download.virtualbox.org/virtualbox/%1/").arg(vbox.GetVersion().remove("_ OSE")) + name;1473 QString source = QString("http://download.virtualbox.org/virtualbox/%1/").arg(vbox.GetVersion().remove("_MacPorts")) + name; 1474 1474 QString target = QDir(vboxGlobal().virtualBox().GetHomeFolder()).absoluteFilePath(name); 1475 1475 1476 1476 UIDownloaderAdditions *pDl = UIDownloaderAdditions::create(); -
src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
old new 2833 2833 UIDownloaderUserManual *pDl = UIDownloaderUserManual::create(); 2834 2834 /* Configure User Manual downloader: */ 2835 2835 CVirtualBox vbox = vboxGlobal().virtualBox(); 2836 pDl->addSource(QString("http://download.virtualbox.org/virtualbox/%1/").arg(vbox.GetVersion().remove("_ OSE")) + strShortFileName);2836 pDl->addSource(QString("http://download.virtualbox.org/virtualbox/%1/").arg(vbox.GetVersion().remove("_MacPorts")) + strShortFileName); 2837 2837 pDl->addSource(QString("http://download.virtualbox.org/virtualbox/") + strShortFileName); 2838 2838 pDl->setTarget(strUserManualFileName2); 2839 2839 pDl->setParentWidget(mainWindowShown());