]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
- rel 4; no ORIGIN on linux auto/th/VirtualBox-3_2_10-4
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 25 Oct 2010 17:00:33 +0000 (17:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    VirtualBox-noorigin.patch -> 1.1
    VirtualBox.spec -> 1.319

VirtualBox-noorigin.patch [new file with mode: 0644]
VirtualBox.spec

diff --git a/VirtualBox-noorigin.patch b/VirtualBox-noorigin.patch
new file mode 100644 (file)
index 0000000..eafb016
--- /dev/null
@@ -0,0 +1,37 @@
+Index: Config.kmk
+===================================================================
+--- Config.kmk (wersja 33269)
++++ Config.kmk (wersja 33316)
+@@ -567,6 +567,8 @@
+ ifdef VBOX_WITH_HARDENING
+  if1of ($(KBUILD_TARGET), solaris)
+   VBOX_PATH_APP_PRIVATE      = /opt/VirtualBox/$(if-expr $(KBUILD_TARGET_ARCH) == "amd64",amd64,i386)
++ else ifeq ($(KBUILD_TARGET),linux)
++  VBOX_PATH_APP_PRIVATE      = /opt/VirtualBox
+  else ifeq ($(KBUILD_TARGET),darwin)
+   VBOX_PATH_APP_PRIVATE      = /Applications/VirtualBox.app/Contents/MacOS
+  else ifeq ($(KBUILD_TARGET),freebsd)
+@@ -599,7 +601,7 @@
+ # depending on the location of the object.)
+ #VBOX_WITH_RUNPATH = /usr/lib/virtualbox
+ ifdef VBOX_WITH_HARDENING
+- if1of ($(KBUILD_TARGET), freebsd solaris)
++ if1of ($(KBUILD_TARGET), freebsd linux solaris)
+   VBOX_WITH_RUNPATH = $(VBOX_PATH_APP_PRIVATE)
+  endif
+ endif
+@@ -607,12 +609,10 @@
+ # Because of the setuid usage on all ELF platforms when hardening the build
+ # things gets a bit complicated since the $ORIGIN+setuid policy differs.
+ #VBOX_WITH_ORIGIN=1
+-ifdef VBOX_WITH_HARDENING
+- if1of ($(KBUILD_TARGET), linux)
++ifndef VBOX_WITH_HARDENING
++ if1of ($(KBUILD_TARGET), linux solaris)
+   VBOX_WITH_ORIGIN = 1
+  endif
+-else if1of ($(KBUILD_TARGET), linux solaris)
+- VBOX_WITH_ORIGIN = 1
+ endif
+ # Enable the system wide support service/daemon.
+ # Work in progress, but required for hardening on Windows.
index 372788b677fe1a203921ab97b6807483568768a2..8ff8b0923c3cd2dac09561b41c92d3421fb27483 100644 (file)
@@ -27,7 +27,7 @@
 %define                _enable_debug_packages  0
 %endif
 
-%define                rel             3
+%define                rel             4
 %define                pname           VirtualBox
 
 Summary:       VirtualBox OSE - x86 hardware virtualizer
@@ -56,6 +56,7 @@ Patch1:               %{pname}-export_modules.patch
 Patch2:                %{pname}-VBoxSysInfo.patch
 Patch3:                %{pname}-warning_workaround.patch
 Patch4:                %{pname}-vnc.patch
+Patch5:                %{pname}-noorigin.patch
 URL:           http://www.virtualbox.org/
 BuildRequires: rpmbuild(macros) >= 1.535
 %if %{with userspace}
@@ -407,6 +408,7 @@ Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik obsługi DRM.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p0
 
 %{__sed} -i -e 's,$VBOX_DOC_PATH,%{_docdir}/%{name}-%{version},' src/VBox/Installer/linux/virtualbox.desktop
 %{__sed} -i -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/linux/virtualbox.desktop
This page took 0.180066 seconds and 4 git commands to generate.