File virtualbox-sed-params.patch of Package virtualbox

Index: VirtualBox-5.2.0/src/VBox/Main/Makefile.kmk
===================================================================
--- VirtualBox-5.2.0.orig/src/VBox/Main/Makefile.kmk
+++ VirtualBox-5.2.0/src/VBox/Main/Makefile.kmk
@@ -1521,7 +1521,7 @@ $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
 	$(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
 		--stringparam generating "dtrace-probes" \
 		-o "$@" $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
-	$(QUIET)$(SED) -e '' -o "$@.tmp" \
+	$(QUIET)$(SED) -e '' --output "$@.tmp" \
 		"$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start.d" \
 		"$@" \
 		"$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end.d"
Index: VirtualBox-5.2.0/src/VBox/Devices/Makefile.kmk
===================================================================
--- VirtualBox-5.2.0.orig/src/VBox/Devices/Makefile.kmk
+++ VirtualBox-5.2.0/src/VBox/Devices/Makefile.kmk
@@ -892,8 +892,7 @@ if !defined(VBOX_ONLY_EXTPACKS)
 	$(call MSG_TOOL,iasl,VBoxDD,$<,$@)
 	$(QUIET)$(RM) -f $@ $@.tmp $@.pre
 	$(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
-	$(QUIET)$(SED) -e "s/<NL>/\n/g" \
-		--output $@.pre1 $@.pre
+	$(QUIET)$(SED) -e "s/<NL>/\n/g" $@.pre > $@.pre1
 	$(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre1
 	$(QUIET)$(MV) -f $@ $@.tmp
 	$(QUIET)$(SED) -e "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \