From: Jan Palus Date: Thu, 20 Dec 2018 17:56:24 +0000 (+0100) Subject: add patch to workaround sed 4.6 regression/changed behavior X-Git-Tag: auto/th/VirtualBox-6.0.0-2~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2FVirtualBox.git;a=commitdiff_plain;h=504aafd6cd463e579621cdbef227d1700ef3a8bb add patch to workaround sed 4.6 regression/changed behavior sample input (include/VBox/Graphics/VBoxVideoGuest.h) DECLHIDDEN(int) VBoxHGSMIGetModeHints(PHGSMIGUESTCOMMANDCONTEXT pCtx, unsigned cScreens, VBVAMODEHINT *paHints); incorrect output: LC_ALL=C sed -f ./src/VBox/Additions/linux/drm/indent.sed include/VBox/Graphics/VBoxVideoGuest.h ... int hgsmi_get_mode_hints(PHGSMIGUESTCOMMANDCONTEXT ctx, unsigned screens, struct vbva_modehint *hints); ... correct output: LC_ALL=C.UTF-8 sed -f ./src/VBox/Additions/linux/drm/indent.sed include/VBox/Graphics/VBoxVideoGuest.h ... int hgsmi_get_mode_hints(struct gen_pool * ctx, unsigned screens, struct vbva_modehint *hints); ... PHGSMIGUESTCOMMANDCONTEXT -> struct gen_pool * is not done --- diff --git a/VirtualBox-sed-4.6.patch b/VirtualBox-sed-4.6.patch new file mode 100644 index 0000000..8b08e48 --- /dev/null +++ b/VirtualBox-sed-4.6.patch @@ -0,0 +1,11 @@ +--- VirtualBox-6.0.0/src/VBox/Additions/linux/export_modules.sh.orig 2018-12-20 18:52:22.251544899 +0100 ++++ VirtualBox-6.0.0/src/VBox/Additions/linux/export_modules.sh 2018-12-20 18:52:43.561388418 +0100 +@@ -16,7 +16,7 @@ + # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. + # + +-export LC_ALL=C ++export LC_ALL=C.UTF-8 + + # The below is GNU-specific. See VBox.sh for the longer Solaris/OS X version. + TARGET=`readlink -e -- "${0}"` || exit 1 diff --git a/VirtualBox.spec b/VirtualBox.spec index 56d9f01..5f4dc88 100644 --- a/VirtualBox.spec +++ b/VirtualBox.spec @@ -81,6 +81,7 @@ Patch13: %{pname}-no-scrextend.patch Patch14: %{pname}-multipython.patch Patch15: %{pname}-lightdm-1.19.2.patch Patch16: %{pname}-no-vboxvideo.patch +Patch17: %{pname}-sed-4.6.patch URL: http://www.virtualbox.org/ %if %{with userspace} %ifarch %{x8664} @@ -549,6 +550,7 @@ cd ../..\ %patch14 -p0 %patch15 -p0 %patch16 -p0 +%patch17 -p1 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in