Skip to contentSkip to conversation

qt5base: add Fedora patch to fix powerpc build

PATCH New Fatih Aşıcı 2 participants 2 messages Nov 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt5base: add Fedora patch to fix powerpc build

Fixes http://autobuild.buildroot.net/results/e57/e57dea01c3c1a4e3269580972890192c37d41697/

---
 package/qt5/qt5base/qt5base-0008-qatomic-ppc.patch | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/qt5/qt5base/qt5base-0008-qatomic-ppc.patch
package/qt5/qt5base/qt5base-0008-qatomic-ppc.patch new file +29 -0
new file mode 100644
index 0000000..906b56a
@@ -0,0 +1,29 @@
+Set loadAcquire() as const
+
+Fixes powerpc build.
+
+Fetched-from: https://bugzilla.redhat.com/attachment.cgi?id=812643
+Signed-off-by: Fatih A??c? <[email protected]>
+
+Index: qtbase-opensource-src-5.1.1/src/corelib/thread/qoldbasicatomic.h
+===================================================================
+--- qtbase-opensource-src-5.1.1.orig/src/corelib/thread/qoldbasicatomic.h
++++ qtbase-opensource-src-5.1.1/src/corelib/thread/qoldbasicatomic.h
+@@ -63,7 +63,7 @@ public:
+     // Atomic API, implemented in qatomic_XXX.h
+ 
+     int load() const { return _q_value; }
+-    int loadAcquire() { return _q_value; }
++    int loadAcquire() const { return _q_value; }
+     void store(int newValue) { _q_value = newValue; }
+     void storeRelease(int newValue) { _q_value = newValue; }
+ 
+@@ -107,7 +107,7 @@ public:
+     // Atomic API, implemented in qatomic_XXX.h
+ 
+     T *load() const { return _q_value; }
+-    T *loadAcquire() { return _q_value; }
++    T *loadAcquire() const { return _q_value; }
+     void store(T *newValue) { _q_value = newValue; }
+     void storeRelease(T *newValue) { _q_value = newValue; }
+ 
Signature · 1 line
1.8.4.rc3
#1 lore raw

PATCH 1/1 qt5base: add Fedora patch to fix powerpc build

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fatih" == Fatih A??c? <[email protected]> writes:

Fixes http://autobuild.buildroot.net/results/e57/e57dea01c3c1a4e3269580972890192c37d41697/

It would be nice to note the details about where/when it has been submitted upstream, so I've added that and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard