[From nobody Thu Jul 23 11:19:12 2026
Received: (at submit) by bugs.debian.org; 31 Jan 2018 16:46:08 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1-bugs.debian.org_2005_01_02
 (2015-04-28) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-22.1 required=4.0 tests=BAYES_00, MURPHY_DRUGS_REL8, 
 RCVD_IN_DNSWL_MED, TXREP, T_RP_MATCHES_RCVD, URIBL_CNKR,
 XMAILER_REPORTBUG, 
 X_DEBBUGS_CC autolearn=ham autolearn_force=no
 version=3.4.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 17; hammy, 150; neutral, 58; spammy,
 0. spammytokens: hammytokens:0.000-+--HX-Debbugs-Cc:sk:debian-,
 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug,
 0.000-+--H*UA:reportbug
Return-path: &lt;glaubitz@physik.fu-berlin.de&gt;
Received: from outpost17.zedat.fu-berlin.de ([130.133.4.110])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from &lt;glaubitz@physik.fu-berlin.de&gt;)
 id 1egvWR-0003sJ-QG
 for submit@bugs.debian.org; Wed, 31 Jan 2018 16:46:08 +0000
Received: from relay1.zedat.fu-berlin.de ([130.133.4.67])
 by outpost.zedat.fu-berlin.de (Exim 4.85)
 with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256)
 (envelope-from &lt;glaubitz@physik.fu-berlin.de&gt;)
 id &lt;1egvWN-000kQr-NI&gt;; Wed, 31 Jan 2018 17:46:03 +0100
Received: from z6.physik.fu-berlin.de ([160.45.32.137] helo=z6)
 by relay1.zedat.fu-berlin.de (Exim 4.85)
 with esmtps (TLSv1.2:AES256-GCM-SHA384:256)
 (envelope-from &lt;glaubitz@physik.fu-berlin.de&gt;)
 id &lt;1egvWN-001jbR-KA&gt;; Wed, 31 Jan 2018 17:46:03 +0100
Received: from glaubitz by z6 with local (Exim 4.90)
 (envelope-from &lt;glaubitz@physik.fu-berlin.de&gt;)
 id 1egvWK-0005BS-VW; Wed, 31 Jan 2018 17:46:01 +0100
Content-Type: multipart/mixed; boundary=&quot;===============1366310983224547003==&quot;
MIME-Version: 1.0
From: John Paul Adrian Glaubitz &lt;glaubitz@physik.fu-berlin.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: mysql-5.7: Please add patch to fix protobuf on sparc64
Message-ID: &lt;151741716095.19095.7911108577004449775.reportbug@z6.physik.fu-berlin.de&gt;
X-Mailer: reportbug 7.1.8
Date: Wed, 31 Jan 2018 17:46:00 +0100
X-Debbugs-Cc: debian-sparc@lists.debian.org
X-Originating-IP: 160.45.32.137
X-ZEDAT-Hint: RVA
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============1366310983224547003==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: mysql-5.7
Version: 5.7.21-1
Severity: normal
Tags: patch
User: debian-sparc@lists.debian.org
Usertags: sparc64

Hi!

mysql-5.7 FTBFS on sparc64 because the embedded version of protobuf
is ancient and is missing a patch to fix the platform definitions
for sparc64.

I'm attaching a patch which fixes this. Please include it in the
next upload.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

--===============1366310983224547003==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;sparc64-fix.patch&quot;

Description: Fix protobuf platform definitions on sparc64
Author: John Paul Adrian Glaubitz &lt;glaubitz@physik.fu-berlin.de&gt;
Last-Update: 2018-01-31

--- mysql-5.7-5.7.20.orig/extra/protobuf/protobuf-2.6.1/src/google/protobuf/stubs/platform_macros.h
+++ mysql-5.7-5.7.20/extra/protobuf/protobuf-2.6.1/src/google/protobuf/stubs/platform_macros.h
@@ -67,7 +67,7 @@
 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1
 #elif defined(sparc)
 #define GOOGLE_PROTOBUF_ARCH_SPARC 1
-#ifdef SOLARIS_64BIT_ENABLED
+#if defined(__sparc_v9__) || defined(__sparcv9) || defined(__arch64__)
 #define GOOGLE_PROTOBUF_ARCH_64_BIT 1
 #else
 #define GOOGLE_PROTOBUF_ARCH_32_BIT 1

--===============1366310983224547003==--
]