Package: google-perftools
Version: 2.0-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu quantal ubuntu-patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * Fix FTBFS on powerpc:
    - d/patches/ppc_ftbfs.patch: Patch from upstream issue tracker
      which implements Atomic64 NoBarrier functions on PPC32.

Thanks for considering the patch.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers quantal-updates
  APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500, 
'quantal')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5.0-3-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJP9LBHAAoJEL/srsug59jD78EP/0GhKEiyAVkjSThA+vDNxe03
1sFups1X8ILD32JkW4ZLfXxz+7hF7PSI32kzuuMI9SbNG/vHMJyQ3bN3IOl8zTJk
+biEeb57HcL5bSjQb/QaCPaiXPRp5RHb8jINmFIvWExzxGE3QfPlhjXFh+z7Ys5h
a49lNoM4XPFGNf23o4lkqtpn0FReDaaEON5PiH2XJNKsnrlL8Y0IKRtIVpbgYv6v
yQjz6+RrAnRJTmw3W0dUGinuXe0eGQCWLSMUw3mFMVgWOQmm90/giVgPx4oBul6I
AYdg/ChfR4HYKfN9jv3z++Rba3jq6n4reDZb6I0rY3Zm+4ihlUwDLo/Nt/jVklNa
bZgvw0lVNaEfAOvPIy/ikyB8iFAJc303Ma3cfoUubhbQGGVgzLoVS44HrLqqwD/F
uI6tKxVwvCMKdYFj7s21GJE09kfhka5UI3yFtoQ+HK4Qg11T3Ws7sLSJAYf4gSP4
XjLpxap9fk+SliqKNcim46Es5DfHpSF/1Qa9llnGM6+g4bok68ukNL0tLhbEgjvU
XrxPlpCX6l6hA33kWdmZ0eNz1M7lvtDCuryT36qmQ8KASn/7S1uvs+QF8JiTNpg1
fLDuz4Vl54OwjNiHxRWQqmJTYnuJBrEsmc5KH2eU0wqo8JJGjyLcXr/m+gVGShcN
+XQJra0dS9pHmjii227p
=Xzhf
-----END PGP SIGNATURE-----
diff -u google-perftools-2.0/debian/changelog google-perftools-2.0/debian/changelog
only in patch2:
unchanged:
--- google-perftools-2.0.orig/debian/patches/ppc_ftbfs.patch
+++ google-perftools-2.0/debian/patches/ppc_ftbfs.patch
@@ -0,0 +1,45 @@
+Description: Resolve issue with FTBFS on 32bit ppc platform
+ .
+ NoBarrier versions for Atomic64 can be implemented on PPC32
+Origin: http://code.google.com/p/gperftools/issues/detail?id=431
+
+Index: google-perftools/src/base/atomicops-internals-linuxppc.h
+===================================================================
+--- google-perftools.orig/src/base/atomicops-internals-linuxppc.h	2012-06-27 09:25:34.879532000 +0100
++++ google-perftools/src/base/atomicops-internals-linuxppc.h	2012-07-04 21:18:36.974406885 +0100
+@@ -369,14 +369,20 @@
+   return *ptr;
+ }
+ 
+-#ifdef __PPC64__
+-
+-// 64-bit Versions.
+-
++// NoBarrier versions for Atomic64 can be implemented on PPC32
+ inline void NoBarrier_Store(volatile Atomic64 *ptr, Atomic64 value) {
+   *ptr = value;
+ }
+ 
++inline Atomic64 NoBarrier_Load(volatile const Atomic64 *ptr) {
++  return *ptr;
++}
++
++
++#ifdef __PPC64__
++
++// 64-bit Versions.
++
+ inline void Acquire_Store(volatile Atomic64 *ptr, Atomic64 value) {
+   *ptr = value;
+   // This can't be _lwsync(); we need to order the immediately
+@@ -390,10 +396,6 @@
+   *ptr = value;
+ }
+ 
+-inline Atomic64 NoBarrier_Load(volatile const Atomic64 *ptr) {
+-  return *ptr;
+-}
+-
+ inline Atomic64 Acquire_Load(volatile const Atomic64 *ptr) {
+   Atomic64 value = *ptr;
+   _lwsync();

Reply via email to