]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
drop x8664-build patch and filterout -fPIC instead
authorJan Palus <atler@pld-linux.org>
Sun, 1 Mar 2015 10:09:12 +0000 (11:09 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 1 Mar 2015 10:15:04 +0000 (11:15 +0100)
see https://www.virtualbox.org/pipermail/vbox-dev/2015-February/012863.html
for details

VirtualBox.spec
x8664-build.patch [deleted file]

index 0a58e342beb08d309d6c87da93b9778c8e961244..de83938f2caf51d55d5f617ca2f142cc15b65c85 100644 (file)
@@ -81,8 +81,7 @@ Patch8:               lightdm-greeter-g++-link.patch
 Patch9:                pld-guest.patch
 Patch10:       16-no-update.patch
 Patch11:       18-system-xorg.patch
-Patch12:       x8664-build.patch
-Patch13:       %{pname}-all-translations.patch
+Patch12:       %{pname}-all-translations.patch
 URL:           http://www.virtualbox.org/
 %if %{with userspace}
 %ifarch %{x8664}
@@ -524,8 +523,7 @@ cd ../..\
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
-%patch12 -p1
-%patch13 -p0
+%patch12 -p0
 
 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
        -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
@@ -554,6 +552,11 @@ cd -
 cp -p src/VBox/Frontends/VirtualBox/images/os_{linux26,pld}.png
 cp -p src/VBox/Frontends/VirtualBox/images/os_{linux26,pld}_64.png
 
+# don't force whole userspace to be built with -fPIC
+# see https://www.virtualbox.org/pipermail/vbox-dev/2015-February/012863.html
+%define                filterout_c             -fPIC
+%define                filterout_cxx           -fPIC
+
 cat <<'EOF'>> LocalConfig.kmk
 %{?with_verbose:KBUILD_VERBOSE=3}
 USERNAME=%(id -un)
@@ -581,6 +584,9 @@ VBOX_WITH_TESTCASES :=
 VBOX_WITH_TESTSUITE :=
 EOF
 
+%undefine      filterout_c
+%undefine      filterout_cxx
+
 %build
 %if %{with userspace}
 ./configure \
diff --git a/x8664-build.patch b/x8664-build.patch
deleted file mode 100644 (file)
index 70382fb..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/VBox/Runtime/common/ldr/ldrkStuff.cpp        2014-07-20 17:50:52.918200154 +0200
-+++ b/src/VBox/Runtime/common/ldr/ldrkStuff.cpp        2014-07-20 22:59:50.360692743 +0200
-@@ -368,7 +368,7 @@
-  * We provide our own based on IPRT instead of using the kLdr ones.
-  */
- extern "C" const KRDROPS g_kLdrRdrFileOps;
--extern "C" const KRDROPS g_kLdrRdrFileOps =
-+const KRDROPS g_kLdrRdrFileOps __attribute__((section(".rodata"))) =
- {
-     /* .pszName = */        "IPRT",
-     /* .pNext = */          NULL,
This page took 0.154147 seconds and 4 git commands to generate.