summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libzypp/libzypp/arm-workaround-global-constructor.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/libzypp/libzypp/arm-workaround-global-constructor.patch')
-rw-r--r--meta/recipes-extended/libzypp/libzypp/arm-workaround-global-constructor.patch23
1 files changed, 12 insertions, 11 deletions
diff --git a/meta/recipes-extended/libzypp/libzypp/arm-workaround-global-constructor.patch b/meta/recipes-extended/libzypp/libzypp/arm-workaround-global-constructor.patch
index 86458d7e75..bfdb29b593 100644
--- a/meta/recipes-extended/libzypp/libzypp/arm-workaround-global-constructor.patch
+++ b/meta/recipes-extended/libzypp/libzypp/arm-workaround-global-constructor.patch
@@ -8,14 +8,15 @@ before the usage of _foo during the initialization of the compatibility
8table. 8table.
9 9
10The patch, along with a similar change to the recipe generation of the 10The patch, along with a similar change to the recipe generation of the
11poky-arch.h file, remove the DEF_BUILTIN globals and replace them with 11oe-arch.h file, remove the DEF_BUILTIN globals and replace them with
12immediate strings wherever they are used. 12immediate strings wherever they are used.
13 13
14Signed-off-by: Mark Hatle <mark.hatle@windriver.com> 14Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
15 15
16diff -ur git.orig/zypp/Arch.cc git/zypp/Arch.cc 16Index: git/zypp/Arch.cc
17--- git.orig/zypp/Arch.cc 2011-03-29 14:15:32.695079271 -0500 17===================================================================
18+++ git/zypp/Arch.cc 2011-03-29 14:17:22.680910025 -0500 18--- git.orig/zypp/Arch.cc 2011-08-04 21:03:31.000000000 -0700
19+++ git/zypp/Arch.cc 2011-08-04 21:04:16.635480895 -0700
19@@ -152,13 +152,10 @@ 20@@ -152,13 +152,10 @@
20 // NOTE: Thake care CompatBits::IntT is able to provide one 21 // NOTE: Thake care CompatBits::IntT is able to provide one
21 // bit for each architecture. 22 // bit for each architecture.
@@ -24,13 +25,13 @@ diff -ur git.orig/zypp/Arch.cc git/zypp/Arch.cc
24- DEF_BUILTIN( all ); 25- DEF_BUILTIN( all );
25- DEF_BUILTIN( any ); 26- DEF_BUILTIN( any );
26- DEF_BUILTIN( noarch ); 27- DEF_BUILTIN( noarch );
27
28-#include "poky-arch.h"
29-#undef DEF_BUILTIN
30+/* Global constructors are not working properly on ARM, avoid the 28+/* Global constructors are not working properly on ARM, avoid the
31+ * known bad case and merge constructors in with the usages 29+ * known bad case and merge constructors in with the usages
32+ */ 30+ */
33 31
32-#include "oe-arch.h"
33-#undef DEF_BUILTIN
34
34 /////////////////////////////////////////////////////////////////// 35 ///////////////////////////////////////////////////////////////////
35 // 36 //
36@@ -227,9 +224,9 @@ 37@@ -227,9 +224,9 @@
@@ -46,7 +47,7 @@ diff -ur git.orig/zypp/Arch.cc git/zypp/Arch.cc
46 /////////////////////////////////////////////////////////////////// 47 ///////////////////////////////////////////////////////////////////
47 // Define the CompatibleWith relation: 48 // Define the CompatibleWith relation:
48 // 49 //
49@@ -305,9 +302,9 @@ 50@@ -331,9 +328,9 @@
50 /////////////////////////////////////////////////////////////////// 51 ///////////////////////////////////////////////////////////////////
51 52
52 const Arch Arch_empty ( IdString::Empty ); 53 const Arch Arch_empty ( IdString::Empty );
@@ -57,9 +58,9 @@ diff -ur git.orig/zypp/Arch.cc git/zypp/Arch.cc
57+ const Arch Arch_any( IdString ( "any" ) ); 58+ const Arch Arch_any( IdString ( "any" ) );
58+ const Arch Arch_noarch( IdString ( "noarch" ) ); 59+ const Arch Arch_noarch( IdString ( "noarch" ) );
59 60
60 #define POKY_PROTO 1 61 #define OE_PROTO 1
61 #include "poky-arch.h" 62 #include "oe-arch.h"
62@@ -316,7 +316,7 @@ 63@@ -345,7 +342,7 @@
63 // METHOD TYPE : Ctor 64 // METHOD TYPE : Ctor
64 // 65 //
65 Arch::Arch() 66 Arch::Arch()