Accepting request 115964 from home:mseben:branches:Virtualization

update to 4.1.14 and fix the issue with kmk_sed

OBS-URL: https://build.opensuse.org/request/show/115964
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=86
This commit is contained in:
Michal Seben 2012-04-29 18:59:19 +00:00 committed by Git OBS Bridge
parent b205c733a8
commit db801598e3
10 changed files with 666 additions and 33 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0912c9dc43c06afd4c95e5ff45d53dba13ec579848fb8da3c61e80de4bba16c6
size 5063631

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e974eb385f8bcf91c575e47c7c43a0a63bfbd7a7c277d819f8371ecb7ad655a
size 46324408

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13790fa065bd90a533a5090a0d2aa13914e6a6d81290d7e16626800c78a11ca6
size 46317829

580
vbox-kmk_sed.diff Normal file
View File

@ -0,0 +1,580 @@
Index: VirtualBox-4.1.14/src/recompiler/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/recompiler/Makefile.kmk
+++ VirtualBox-4.1.14/src/recompiler/Makefile.kmk
@@ -240,14 +240,14 @@ $$(VBoxREMImp_0_OUTDIR)/VBoxREMImp.c: $(
$(QUIET)$(APPEND) $@ '# define EXPORT'
$(QUIET)$(APPEND) $@ '#endif'
$(QUIET)$(APPEND) $@ ''
- $(QUIET)$(SED) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed --append $@ $<
+ $(QUIET)$(SED) -f $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed >> $@ $<
$$(VBoxREMImp_0_OUTDIR)/VBoxREMOS2.def: $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(MAKEFILE_CURRENT) | $$(dir $$@)
$(SED) \
-e 's/^[ \t][ \t]*REMR3/ _REMR3/' \
-e 's/\.[Dd][Ll][Ll]//' \
-e 's/^LIBRARY .*/LIBRARY VBoxREM INITINSTANCE TERMINSTANCE\nDATA MULTIPLE\n/' \
- --output $@ \
+ > $@ \
$<
$$(VBoxREMImp_0_OUTDIR)/VBoxREMWin.def: $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(MAKEFILE_CURRENT) | $$(dir $$@)
Index: VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Frontends/VirtualBox/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/Frontends/VirtualBox/Makefile.kmk
@@ -713,8 +713,8 @@ $$(VirtualBox_0_OUTDIR)/include/COMWrapp
$(QUIET)$(RM) -f $@ $@.tmp $@.h $@.cpp
$(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/src/globals/COMWrappers.xsl $<
- $(QUIET)$(SED) -e '1,/\/\/ wrapper definitions/ !d' \
- --output $@.tmp $@
+ $(QUIET)/usr/bin/sed -e '1,/\/\/ wrapper definitions/ !d' \
+ $@ >$@.tmp
$(QUIET)$(CP) --changed $@.tmp $@.h
$(QUIET)$(APPEND) -t -n $@.tmp \
@@ -726,7 +726,7 @@ $$(VirtualBox_0_OUTDIR)/include/COMWrapp
''
$(QUIET)$(SED) -e '/\/\/ wrapper definitions/,9999999 !d' \
-e 's/^inline //' \
- --append $@.tmp $@
+ $@ >> $@.tmp
$(QUIET)$(CP) --changed $@.tmp $@.cpp
$(QUIET)$(RM) -f $@.tmp
@@ -754,9 +754,8 @@ $(VBOX_VIRTUALBOX4_OUT_DIR)/VirtualBoxBr
-e 's;@VBOX_VBOX_48PX_PNG@;$(VBOX_BRAND_GUI_VBOX_48PX_PNG);g' \
-e 's;@VBOX_VBOX_64PX_PNG@;$(VBOX_BRAND_GUI_VBOX_64PX_PNG);g' \
-e 's;@VBOX_CUBE_42PX_PNG@;$(VBOX_BRAND_GUI_CUBE_42PX_PNG);g' \
- --output $@ \
- $<
-
+ $< \
+ > $@
#
# Precompiled header - non-functional atm.
@@ -928,7 +927,7 @@ $$(VirtualBoxVM.app_0_OUTDIR)/VM-Info.pl
-e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
-e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
-e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
- --output $@ $<
+ $< > $@
PROGRAMS += vmstarter
vmstarter_TEMPLATE = VBOXR3EXE
@@ -957,7 +956,7 @@ $$(vmstarter.app_0_OUTDIR)/vmstarter-Inf
-e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
-e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
-e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
- --output $@ $<
+ $< > $@
endif # darwin
#
Index: VirtualBox-4.1.14/kBuild/units/qt4.kmk
===================================================================
--- VirtualBox-4.1.14.orig/kBuild/units/qt4.kmk
+++ VirtualBox-4.1.14/kBuild/units/qt4.kmk
@@ -415,16 +415,16 @@ define TOOL_QT4_RCC_QRC_CMDS
-e 's/^.*<file[[:blank:]][^>]*>\([^<]*\)<\/file>.*$$$$/\1/' \
-e 's|^[^/][^:]|$(abspathex $(dir $(source)),$(defpath))/&|' \
-e 's|$$$$| \\|' \
- --append $(dep) \
- $(source)
+ $(source) \
+ >> $(dep)
$(QUIET2)$(APPEND) $(dep)
$(QUIET2)$(SED) \
-e '/^[[:blank:]]*<file[[:blank:]][^>]*>/!d' \
-e 's/^.*<file[[:blank:]][^>]*>\([^<]*\)<\/file>.*$$$$/\1/' \
-e 's|^[^/][^:]|$(abspathex $(dir $(source)),$(defpath))/&|' \
-e 's|$$$$|:\n|' \
- --append $(dep) \
- $(source)
+ $(source) \
+ >> $(dep)
$(QUIET2)$(APPEND) $(dep)
endef
Index: VirtualBox-4.1.14/kBuild/header.kmk
===================================================================
--- VirtualBox-4.1.14.orig/kBuild/header.kmk
+++ VirtualBox-4.1.14/kBuild/header.kmk
@@ -690,7 +690,7 @@ RMDIR_EXT := $(KBUILD_BIN_PATH)/kmk_rm
RMDIR_INT := kmk_builtin_rmdir
RMDIR := $(RMDIR_INT)
-SED_EXT := $(KBUILD_BIN_PATH)/kmk_sed$(HOSTSUFF_EXE)
+SED_EXT := /usr/bin/sed
SED_INT := $(SED_EXT)
SED := $(SED_EXT)
Index: VirtualBox-4.1.14/src/VBox/Devices/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Devices/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/Devices/Makefile.kmk
@@ -506,7 +506,7 @@ if !defined(VBOX_ONLY_EXTPACKS)
$(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
$(QUIET)$(MV) -f $@ $@.tmp
$(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
- --output $@ $@.tmp
+ $@.tmp > $@
$(QUIET)$(RM) -f $@.tmp
@@ -519,7 +519,7 @@ if !defined(VBOX_ONLY_EXTPACKS)
$(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre
$(QUIET)$(MV) -f $@ $@.tmp
$(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
- --output $@ $@.tmp
+ >$@.tmp > $@
$(QUIET)$(RM) -f $@.tmp $@.pre
Index: VirtualBox-4.1.14/src/VBox/Installer/linux/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Installer/linux/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/Installer/linux/Makefile.kmk
@@ -91,11 +91,11 @@ $$(linux-misc_0_OUTDIR)/virtualbox.deskt
ifdef VBOX_PATH_PACKAGE_DOCS
$(QUIET)$(SED) -e "s+@VBOX_DOC_PATH@+$(VBOX_PATH_PACKAGE_DOCS)+" \
-e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
- --output $@ $<
+ > $@ $<
else
$(QUIET)$(SED) -e "s+@VBOX_DOC_PATH@+/opt/VirtualBox+" \
-e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
- --output $@ $<
+ > $@ $<
endif
INSTALLS += linux-icons
@@ -342,7 +342,7 @@ $(VBOX_LNX_INST_OUT_DIR)/vboxballoonctrl
-e "s|%NOLSB%|yes|g" \
-e "s|%DEBIAN%||g" \
-e "s|%PACKAGE%|virtualbox|g" \
- --output $@ \
+ > $@ \
$<
$(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxdrv.sh.in | $$(dir $$@)
@@ -351,7 +351,7 @@ $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh: $(V
-e "s|%DEBIAN%||g" \
-e "s|%PACKAGE%|virtualbox|g" \
-e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \
- --output $@ \
+ > $@ \
$<
$(VBOX_LNX_INST_OUT_DIR)/vboxweb-service.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxweb-service.sh.in | $$(dir $$@)
@@ -359,7 +359,7 @@ $(VBOX_LNX_INST_OUT_DIR)/vboxweb-service
-e "s|%NOLSB%|yes|g" \
-e "s|%DEBIAN%||g" \
-e "s|%PACKAGE%|virtualbox|g" \
- --output $@ \
+ > $@ \
$<
$(VBOX_LNX_INST_OUT_DIR)/install.sh: $(VBOX_PATH_LNX_INST_SRC)/install.sh $(VBOX_PATH_LNX_INST_SRC)/installer-utils.sh $(VBOX_VERSION_STAMP) $(VBOX_SVN_REV_KMK).ts | $$(dir $$@)
@@ -374,7 +374,7 @@ $(VBOX_LNX_INST_OUT_DIR)/install.sh: $(V
-e "r $(PATH_ROOT)/src/VBox/Installer/linux/installer-utils.sh" \
-e 'd' \
-e '}' \
- --output $@ \
+ > $@ \
$<
#
Index: VirtualBox-4.1.14/src/VBox/VMM/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/VMM/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/VMM/Makefile.kmk
@@ -270,7 +270,7 @@ if defined(VBOX_WITH_RAW_MODE) && $(inte
ifeq ($(VBOX_LDR_FMT32),lx)
VMMRCBuiltin_SOURCES = $(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def
$$(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRCBuiltin.def | $$(dir $$@)
- $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
+ $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' > $@ $<
endif
@@ -288,7 +288,7 @@ if defined(VBOX_WITH_RAW_MODE) && $(inte
-e '/not-os2/d' \
-e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
-e 's/[ \t]DATA[ \t]*/ /' \
- --output $@ \
+ > $@ \
$<
$(APPEND) "$@" ""
$(APPEND) "$@" " ___ehInit"
@@ -296,7 +296,7 @@ if defined(VBOX_WITH_RAW_MODE) && $(inte
$(SED) \
-e '/not-win/d' \
-e '/not-$(KBUILD_TARGET_ARCH)/d' \
- --output $@ $<
+ > $@ $<
endif
endif # RC && (pe || lx)
@@ -318,14 +318,14 @@ if1of ($(VBOX_LDR_FMT), pe lx)
-e '/not-amd64/d' \
-e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
-e 's/[ \t]DATA[ \t]*/ /' \
- --output $@ $<
+ > $@ $<
$(APPEND) "$@" ""
$(APPEND) "$@" " ___ehInit"
else
$(SED) \
-e '/not-win/d' \
-e '/not-$(KBUILD_TARGET_ARCH)/d' \
- --output $@ $<
+ > $@ $<
endif
endif # R0: pe + lx
Index: VirtualBox-4.1.14/src/VBox/HostDrivers/Support/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/HostDrivers/Support/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/HostDrivers/Support/Makefile.kmk
@@ -148,7 +148,7 @@ $$(SUPR0_0_OUTDIR)/SUPR0.def: $(PATH_SUB
-e 's/^[ \t][ \t]*\([gA-Z]\)/ _\1/' \
-e 's/[ \t]DATA[ \t]*/ /' \
-e 's/g_pSUPGlobalInfoPage/g_SUPGlobalInfoPage/' \
- --output $@.tmp\
+ > $@.tmp\
$<
$(MV) -f $@.tmp $@
endif
@@ -284,7 +284,7 @@ $$(vboxdrv-mod_0_OUTDIR)/build_in_tmp: \
$(QUIET)$(SED) \
-e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
-e "s;_MODULE_;vboxdrv;g" \
- -e "s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<
+ -e "s;_BUILDTYPE_;${KBUILD_TYPE};g" > $@ $<
$(QUIET)chmod 0755 $@
includedep $(PATH_TARGET)/vboxdrv-mod-1.dep
@@ -294,7 +294,7 @@ $$(vboxdrv-mod_0_OUTDIR)/Makefile: \
| $$(dir $$@)
$(call MSG_TOOL,Creating,,$@)
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" > $@ $<
else
$(QUIET)$(CP) -f $< $@
endif
@@ -328,7 +328,7 @@ ifdef VBOX_WITH_DTRACE_R0DRV
VBoxDrv_CLEAN += $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.tmp
$$(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h: $(PATH_SUB_CURRENT)/SUPDrv-dtrace.d | $$(dir $$@)
dtrace -C -h -o $@.tmp -s $<
- $(SED) -e '/<unistd\.h>/d' $@.tmp --output $@
+ $(SED) -e '/<unistd\.h>/d' $@.tmp > $@
$(RM) -f $@.tmp
endif
@@ -350,7 +350,7 @@ $$(VBoxDrv.kext_0_OUTDIR)/Info.plist: \
-e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
-e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
-e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
- --output $@ \
+ > $@ \
$<
# Common manual loader script.
@@ -425,7 +425,7 @@ $$(vboxdrv-mod_0_OUTDIR)/Makefile: \
$(call MSG_TOOL,Creating,,$@)
$(QUIET)$(RM) -f -- $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" > $@ $<
else
$(QUIET)$(CP) -f $< $@
endif
Index: VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxPci/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/HostDrivers/VBoxPci/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxPci/Makefile.kmk
@@ -69,7 +69,7 @@ $$(VBoxPci-src_0_OUTDIR)/Makefile: \
| $$(dir $$@)
$(QUIET)$(RM) -f -- $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" > $@ $<
else
$(QUIET)$(CP) -f $< $@
endif
@@ -81,7 +81,7 @@ $$(VBoxPci-src_0_OUTDIR)/build_in_tmp: \
| $$(dir $$@)
$(call MSG_TOOL,Creating,,$@)
$(QUIET)$(RM) -f -- $@
- $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxpci;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<
+ $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxpci;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" > $@ $<
$(QUIET)$(CHMOD) 0755 $@
endif # Supported platform.
Index: VirtualBox-4.1.14/src/VBox/Additions/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Additions/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/Additions/Makefile.kmk
@@ -91,7 +91,7 @@ ifndef VBOX_ONLY_TESTSUITE
-e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
-e 'd' \
-e '}' \
- --output $@ \
+ > $@ \
$<
$(QUIET)$(CHMOD) a+rx,u+w $@
@@ -104,7 +104,7 @@ ifndef VBOX_ONLY_TESTSUITE
-e "r $(PATH_ROOT)/src/VBox/Installer/linux/sh-utils.sh" \
-e 'd' \
-e '}' \
- --output $@ \
+ > $@ \
$<
$(QUIET)$(CHMOD) a+rx,u+w $@
endif # KBUILD_TARGET == linux
Index: VirtualBox-4.1.14/src/VBox/Devices/EFI/Firmware2/VBoxPkg/env.cmd
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Devices/EFI/Firmware2/VBoxPkg/env.cmd
+++ VirtualBox-4.1.14/src/VBox/Devices/EFI/Firmware2/VBoxPkg/env.cmd
@@ -81,7 +81,7 @@ echo s,C:\\Program Files (x86)\\Microsof
echo s,C:\\WINDDK\\3790.1830,%KBUILD_DEVTOOLS%/win.x86/ddk/6001,>> tmp_vbox_env.sed
echo s,C:\ASL,%KBUILD_DEVTOOLS%/win.x86/bin,>> tmp_vbox_env.sed
echo s,c:/cygwin,c:/no-cygwin-please,>> tmp_vbox_env.sed
-kmk_sed -f tmp_vbox_env.sed --append "%WORKSPACE%\Conf\tools_def.txt" "%WORKSPACE%\BaseTools\Conf\tools_def.template"
+kmk_sed -f tmp_vbox_env.sed "%WORKSPACE%\BaseTools\Conf\tools_def.template" >> "%WORKSPACE%\Conf\tools_def.txt"
if not errorlevel 0 goto error_sed
del tmp_vbox_env.sed
Index: VirtualBox-4.1.14/src/libs/kStuff/kStuff/kProfiler2/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/libs/kStuff/kStuff/kProfiler2/Makefile.kmk
+++ VirtualBox-4.1.14/src/libs/kStuff/kStuff/kProfiler2/Makefile.kmk
@@ -195,7 +195,7 @@ kPrf2WinApiWrappersImp-$(KBUILD_TARGET_A
$(SED) -f kPrf2WinApi-dumpbin.sed --output $@.tmp2 $@.tmp
$(APPEND) $@ 'LIBRARY kPrf2WinApiWrappers'
$(APPEND) $@ 'EXPORTS'
- $(SED) -f kPrf2WinApi-genimp.sed --append $@ $@.tmp2
+ $(SED) -f kPrf2WinApi-genimp.sed $@.tmp2 >> $@
$(RM) -f $@.tmp $@.tmp2
endif
Index: VirtualBox-4.1.14/src/libs/xpcom18a4/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/libs/xpcom18a4/Makefile.kmk
+++ VirtualBox-4.1.14/src/libs/xpcom18a4/Makefile.kmk
@@ -1384,6 +1384,6 @@ $(PATH_TARGET)/xpcom-namespace-cleanup.m
-e 's/\<_etext$$/&;/p'\
-e 's/\<_fini$$/&;/p' \
-e 's/\<_init$$/&;/p' \
- --append $@
+ >> $@
$(QUIET)$(APPEND) $@ '};'
Index: VirtualBox-4.1.14/src/VBox/Additions/linux/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Additions/linux/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/Additions/linux/Makefile.kmk
@@ -380,7 +380,7 @@ $(VBOX_LNX_ADD_INST_STAGE_DIR)install.sh
-e "s;_USERNAME_;$(USERNAME);g" \
-e "s;_ARCH_;$(KBUILD_TARGET_ARCH);g" \
-e "s;_UNINSTALL_SCRIPTS_;vboxadd-x11 vboxadd-timesync vboxadd-service vboxadd;g" \
- --output $@ \
+ > $@ \
$<
$(QUIET)$(CHMOD) 0755 $@
OTHER_CLEAN += \
Index: VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk
@@ -81,7 +81,7 @@ $$(VBoxNetAdp.kext_0_OUTDIR)/Info.plist:
-e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
-e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
-e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
- --output $@ \
+ > $@ \
$<
INSTALLS.darwin += Scripts-darwin-adp
@@ -117,7 +117,7 @@ $$(VBoxNetAdp-src_0_OUTDIR)/Makefile: \
| $$(dir $$@)
$(QUIET)$(RM) -f -- $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" > $@ $<
else
$(QUIET)$(CP) -f $< $@
endif
Index: VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
@@ -85,7 +85,7 @@ $$(VBoxNetFlt.kext_0_OUTDIR)/Info.plist:
-e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
-e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
-e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
- --output $@ \
+ > $@ \
$<
INSTALLS.darwin += Scripts-darwin
@@ -384,7 +384,7 @@ ifeq ($(KBUILD_TARGET),linux)
| $$(dir $$@)
$(QUIET)$(RM) -f -- $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
+ $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" $< > $@
else
$(QUIET)$(CP) -f $< $@
endif
@@ -397,7 +397,7 @@ ifeq ($(KBUILD_TARGET),linux)
| $$(dir $$@)
$(call MSG_TOOL,Creating,,$@)
$(QUIET)$(RM) -f -- $@
- $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxnetflt;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<
+ $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxnetflt;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" $< > $@
$(QUIET)$(CHMOD) 0755 $@
endif # linux
@@ -429,11 +429,11 @@ $(PATH_OUT)/opt_netgraph.h:
$(QUIET)$(RM) -f -- $@
$(QUIET)$(CP) -f $< $@
ifndef VBOX_WITH_HARDENING
- $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@.tmp $@
+ $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" $@ > $@.tmp
${QUIET}$(MV) -f $@.tmp $@
endif
ifndef VBOX_WITH_NETFLT_VIMAGE
- $(QUIET)$(SED) -e "s;-DVIMAGE;;g" --output $@.tmp $@
+ $(QUIET)$(SED) -e "s;-DVIMAGE;;g" $@ > $@.tmp
${QUIET}$(MV) -f $@.tmp $@
endif
endif # freebsd
Index: VirtualBox-4.1.14/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
@@ -93,7 +93,7 @@ VBOX_BCC_JOBS += $(VgaBiosBin_0_OUTDIR)/
# 4. preprocess intermediate assembly.
$$(VgaBiosBin_0_OUTDIR)/vgabios1.s: $$(VgaBiosBin_0_OUTDIR)/vgabios0.s
$(call MSG_TOOL,Adjusting BCC Assembly,VgaBiosBin,$<,$@)
- $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^
+ $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' $^ > $@
# 5. assemble
$$(VgaBiosBin_0_OUTDIR)/vgabios.tmp $$(VgaBiosBin_0_OUTDIR)/vgabios.lst: $$(VgaBiosBin_0_OUTDIR)/vgabios1.s
Index: VirtualBox-4.1.14/Config.kmk
===================================================================
--- VirtualBox-4.1.14.orig/Config.kmk
+++ VirtualBox-4.1.14/Config.kmk
@@ -2282,7 +2282,7 @@ else
-e '/not-$(KBUILD_TARGET)/d' \
-e '/not-$(KBUILD_TARGET_ARCH)/d' \
-f $(PATH_ROOT)/src/bldprogs/deftoimp.sed \
- --append $$@ $(addprefix $(PATH_SUB_CURRENT)/,$(3))
+ >> $$@ $(addprefix $(PATH_SUB_CURRENT)/,$(3))
endif
endef # VBOX_GENERATE_IMPORT_TARGET_DEF
Index: VirtualBox-4.1.14/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/Makefile.kmk
+++ VirtualBox-4.1.14/Makefile.kmk
@@ -1533,7 +1533,7 @@ endif
-e '/ *DECL_INVALID(/d' \
-e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
\
- --append $@.tmp \
+ >> $@.tmp \
$(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h include/VBox/vmm/*.h)) \
include/iprt/cdefs.h
$(CAT_EXT) $@.tmp \
Index: VirtualBox-4.1.14/src/VBox/VMM/testcase/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/VMM/testcase/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/VMM/testcase/Makefile.kmk
@@ -387,7 +387,7 @@ $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStruc
--output $@.tmp $@.dump
$(QUIET)$(SED) -e '/VM_size$$/d' -e '/VMCPU_size$$/d' \
-e '/00[0-9a-fA-F]* [aA] [^_.]*_size$$/!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^_.]*\)_size/ CHECK_SIZE(\2, 0x0\1);/' \
- --append $@.tmp $@.dump
+ >> $@.tmp $@.dump
$(QUIET)$(MV) -f $@.tmp $@
$(QUIET)$(RM) -f $@.dump
Index: VirtualBox-4.1.14/doc/manual/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/doc/manual/Makefile.kmk
+++ VirtualBox-4.1.14/doc/manual/Makefile.kmk
@@ -308,9 +308,9 @@ $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(V
$(QUIET)$(SED) -e '1,/<!--\$$VIRTUALBOX_CHANGELOG_IMPL-->/!d' \
-e 's/<!--\$$VIRTUALBOX_CHANGELOG_IMPL-->//' \
--output $@ $@.tmp
- $(QUIET)$(SED) -e 's/<?xml version=\"1.0\" encoding=\"UTF-8\"?>//g' --append $@ $(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml
+ $(QUIET)$(SED) -e 's/<?xml version=\"1.0\" encoding=\"UTF-8\"?>//g' > $@ $(VBOX_PATH_MANUAL_SRC)/user_ChangeLogImpl.xml
$(QUIET)$(SED) -e '/<!--\$$VIRTUALBOX_CHANGELOG_IMPL-->/,$$!d' \
- -e 's/<!--\$$VIRTUALBOX_CHANGELOG_IMPL-->//' --append $@ $@.tmp
+ -e 's/<!--\$$VIRTUALBOX_CHANGELOG_IMPL-->//' > $@ $@.tmp
$(foreach f,$(VBOX_MANUAL_LANGUAGES),$(VBOX_PATH_MANUAL_OUTBASE)/$f/user_VBoxManage.xml): \
$(VBOX_PATH_MANUAL_OUTBASE)/% : \
@@ -333,9 +333,9 @@ $(foreach f,$(VBOX_MANUAL_LANGUAGES),$(V
$(if $(eq $(KBUILD_TARGET),darwin), -E 'DYLD_FALLBACK_LIBRARY_PATH=$(dir $(LIB_RUNTIME))') \
-- \
$(VBOXMANAGEPATH) --dumpopts
- $(QUIET)$(SED) -e 's/</\&lt;/g' -e 's/>/\&gt;/g' --append $@ $@.tmp2
+ $(QUIET)$(SED) -e 's/</\&lt;/g' -e 's/>/\&gt;/g' > $@ $@.tmp2
$(QUIET)$(SED) -e '/\$$VBOX_MANAGE_OUTPUT/,$$!d' \
- -e 's/.*\$$VBOX_MANAGE_OUTPUT//' --append $@ $@.tmp
+ -e 's/.*\$$VBOX_MANAGE_OUTPUT//' > $@ $@.tmp
$(QUIET)$(RM) -f $@.tmp $@.tmp2
VBOX_MANUAL_APIREF_TMP = $(VBOX_PATH_MANUAL_OUTBASE)/en_US/SDKRef_apiref.xml
@@ -369,9 +369,9 @@ $(VBOX_PATH_MANUAL_OUTBASE)/en_US/SDKRef
$(QUIET)$(SED) -e '1,/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->/!d' \
-e 's/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->//' \
--output $@ $@.tmp
- $(QUIET)$(SED) -e 's/<?xml version=\"1.0\" encoding=\"utf-8\"?>//g' --append $@ $(VBOX_MANUAL_APIREF_TMP)
+ $(QUIET)$(SED) -e 's/<?xml version=\"1.0\" encoding=\"utf-8\"?>//g' > $@ $(VBOX_MANUAL_APIREF_TMP)
$(QUIET)$(SED) -e '/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->/,$$!d' \
- -e 's/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->//' --append $@ $@.tmp
+ -e 's/<!--\$$VIRTUALBOX_MAIN_API_REFERENCE-->//' > $@ $@.tmp
# $(QUIET)$(MV) -f $@.tmp $@
Index: VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/Makefile.kmk
===================================================================
--- VirtualBox-4.1.14.orig/src/VBox/Additions/common/VBoxGuest/Makefile.kmk
+++ VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/Makefile.kmk
@@ -174,7 +174,7 @@ ifeq ($(KBUILD_TARGET),linux)
$(QUIET)$(SED) \
-e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
-e "s;_BUILDTYPE_;$(KBUILD_TYPE);g" \
- --output $@ $<
+ > $@ $<
$$(vboxguest-sh_0_OUTDIR)/do_dkms: \
$(PATH_ROOT)/src/VBox/HostDrivers/linux/do_dkms \
@@ -185,7 +185,7 @@ ifeq ($(KBUILD_TARGET),linux)
-e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
-e "s;_MODULE_;vboxguest;g" \
-e "s;_OLDMODULES_;vboxguest vboxadd vboxsf vboxvfs vboxvideo;g" \
- --output $@ $<
+ > $@ $<
$(QUIET)$(CHMOD) a+rx,u+w $@
# scripts.
@@ -202,7 +202,7 @@ ifeq ($(KBUILD_TARGET),linux)
$(VBOX_VERSION_STAMP) \
| $$(dir $$@)
$(call MSG_TOOL,Creating,,$@)
- $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxguest;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<
+ $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxguest;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" > $@ $<
$(QUIET)$(CHMOD) 0755 $@
endif # Linux

View File

@ -28,7 +28,7 @@ Index: src/VBox/Main/src-client/ConsoleImpl.cpp
===================================================================
--- src/VBox/Main/src-client/ConsoleImpl.cpp.orig
+++ src/VBox/Main/src-client/ConsoleImpl.cpp
@@ -6040,13 +6040,13 @@ HRESULT Console::consoleInitReleaseLog(c
@@ -6146,13 +6146,13 @@ HRESULT Console::consoleInitReleaseLog(c
char szTmp[256];
RTTimeSpecToString(RTTimeNow(&timeSpec), szTmp, sizeof(szTmp));
RTLogRelLogger(pReleaseLogger, 0, ~0U,
@ -42,26 +42,6 @@ Index: src/VBox/Main/src-client/ConsoleImpl.cpp
- __DATE__, __TIME__, szTmp);
+ szTmp);
vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp));
if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
Index: src/VBox/Main/src-server/generic/OpenGLTestApp.cpp
===================================================================
--- src/VBox/Main/src-server/generic/OpenGLTestApp.cpp.orig
+++ src/VBox/Main/src-server/generic/OpenGLTestApp.cpp
@@ -142,13 +142,12 @@ static int vboxInitLogging(const char *p
char szTmp[256];
RTTimeSpecToString(RTTimeNow(&timeSpec), szTmp, sizeof(szTmp));
RTLogRelLogger(loggerRelease, 0, ~0U,
- "VBoxTestGL %s r%u %s (%s %s) release log\n"
+ "VBoxTestGL %s r%u %s release log\n"
#ifdef VBOX_BLEEDING_EDGE
"EXPERIMENTAL build " VBOX_BLEEDING_EDGE "\n"
#endif
"Log opened %s\n",
- VBOX_VERSION_STRING, RTBldCfgRevision(), VBOX_BUILD_TARGET,
- __DATE__, __TIME__, szTmp);
+ VBOX_VERSION_STRING, RTBldCfgRevision(), VBOX_BUILD_TARGET, szTmp);
vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp));
if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
Index: src/VBox/Frontends/VBoxFB/VBoxFB.cpp
@ -221,7 +201,7 @@ Index: src/VBox/Main/webservice/vboxweb.cpp
===================================================================
--- src/VBox/Main/webservice/vboxweb.cpp.orig
+++ src/VBox/Main/webservice/vboxweb.cpp
@@ -666,7 +666,7 @@ static void WebLogHeaderFooter(PRTLOGGER
@@ -739,7 +739,7 @@ static void WebLogHeaderFooter(PRTLOGGER
#endif
"Log opened %s\n",
VBOX_VERSION_STRING, RTBldCfgRevision(), VBOX_BUILD_TARGET,
@ -230,3 +210,33 @@ Index: src/VBox/Main/webservice/vboxweb.cpp
int vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp));
if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
Index: src/VBox/Additions/common/VBoxService/VBoxService.cpp
===================================================================
--- src/VBox/Additions/common/VBoxService/VBoxService.cpp.orig
+++ src/VBox/Additions/common/VBoxService/VBoxService.cpp
@@ -157,10 +157,10 @@ static void VBoxServiceLogHeaderFooter(P
case RTLOGPHASE_BEGIN:
{
pfnLog(pLoggerRelease,
- "VBoxService %s r%s (verbosity: %d) %s (%s %s) release log\n"
+ "VBoxService %s r%s (verbosity: %d) %s (%s %s) release log\n"
"Log opened %s\n",
RTBldCfgVersion(), RTBldCfgRevisionStr(), g_cVerbosity, VBOX_BUILD_TARGET,
- __DATE__, __TIME__, szTmp);
+ "openSUSE","Buildservice",szTmp);
int vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp));
if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
Index: src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp
===================================================================
--- src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp.orig
+++ src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp
@@ -148,7 +148,7 @@ static int vboxInitLogging(const char *p
#endif
"Log opened %s\n",
VBOX_VERSION_STRING, RTBldCfgRevision(), VBOX_BUILD_TARGET,
- __DATE__, __TIME__, szTmp);
+ "openSUSE", "Buildservice", szTmp);
vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp));
if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f8b2f9dc3ed86501428fedf300d6d532f4dc385e022e73611f71d42d85613ef
size 5075922

View File

@ -1,7 +1,7 @@
VBOX_WITH_TESTCASES =
VBOX_WITH_TESTSUITE =
VBOX_WITH_ORIGIN :=
BOX_WITH_REGISTRATION_REQUEST =
VBOX_WITH_REGISTRATION_REQUEST =
VBOX_WITH_UPDATE_REQUEST =
VBOX_PATH_APP_PRIVATE_ARCH := /usr/lib/virtualbox
VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH)

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Sun Apr 29 16:02:54 UTC 2012 - mseben@gmail.com
- use workaround for issue with kmk_sed and gcc4.7 http://svn.netlabs.org/kbuild/ticket/112,
which breaks build, instead of kmk_sed use /usr/bin/sed
-------------------------------------------------------------------
Sat Apr 28 19:38:57 UTC 2012 - mseben@gmail.com
- update to virtualbox 4.1.14 (This is a maintenance release):
* Network: fixed the problem with packets larger than MTU-4 when PCnet or PRO/1000 was bridged to certain types of adapters on OS X hosts (bug #3783)
* NAT: fixed a segfault under rare circumstances
* 3D Support: fixed Windows WDDM video driver crash for SMP guests (bugs #10200, #10331)
* Windows Guest Additions, VRDP: fixed occasional text corruption (bug #3001)
-------------------------------------------------------------------
Sun Apr 22 09:13:59 UTC 2012 - mseben@gmail.com
- added workaround patch (vbox-kmk_sed.diff) : drop double brackets [[ and ]]
from sed definition (errmsg.sed file), because kmk_sed (kbuild package) builded
with gcc4.7 can't process them properly, see bug details http://svn.netlabs.org/kbuild/ticket/112
-------------------------------------------------------------------
Sat Apr 21 10:25:41 UTC 2012 - mseben@gmail.com

View File

@ -26,6 +26,9 @@ BuildRequires: fdupes
%if %suse_version < 1210
BuildRequires: hal-devel
%endif
%if %suse_version > 1210
BuildRequires: sed
%endif
%if %suse_version >= 1210
BuildRequires: glibc-devel-static
%endif
@ -77,7 +80,7 @@ BuildRequires: xorg-x11-libXt-devel-32bit
%endif
#
ExclusiveArch: %ix86 x86_64
Version: 4.1.12
Version: 4.1.14
Release: 0
Summary: VirtualBox is an Emulator
License: GPL-2.0+
@ -89,7 +92,7 @@ Url: http://www.virtualbox.org/
# WARNING: This is not a comment, but the real command to repack souce
#%(bash %{_sourcedir}/virtualbox-patch-source.sh VirtualBox-%{version}.tar.bz2)
Source0: VirtualBox-%{version}-patched.tar.bz2
Source1: VirtualBox-%{version}-UserManual.pdf
Source1: %{name}-%{version}-UserManual.pdf
Source2: %{name}-60-vboxdrv.rules
Source3: %{name}-60-vboxguest.rules
Source4: %{name}-default.virtualbox
@ -250,10 +253,28 @@ Development file for %{name}
%patch103
%patch104 -p1
#copy user manual
%__cp %{S:1} ./UserManual.pdf
%__cp %{S:1} UserManual.pdf
#copy kbuild config
%__cp %{S:10} LocalConfig.kmk
#
##########################
####workaround kmk_sed --v
#instead of kmk_sed use /usr/bin/sed because of bug http://svn.netlabs.org/kbuild/ticket/112,
#but we have to create wrapper which will handle --append and --outpout options which are not provided by /usr/bin/sed
cat >> kmk_sed <<EOF
#!/bin/bash
while [ "\$#" != "0" ]; do
pass=\${pass}" \$1"
[ "\$1" == "-e" ] && shift && pass=\${pass}" '\$1'"
shift
done
eval "sed \$(echo "\$pass" | sed -e "s/--output=/>/g;s/--append=/>/g;s/--output/>/g;s/--append/>>/g");"
EOF
chmod +x ./kmk_sed
echo "SED = $RPM_BUILD_DIR/VirtualBox-%{version}/kmk_sed" >> LocalConfig.kmk
####workaround kmk_sed --^
##########################
#
%build
#ensure we dont ever use them
rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*}