public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-libs/qmf/files: qmf-4.0.2-include.patch qmf-4.0.2-visibility.patch
@ 2013-08-01  8:08 Davide Pesavento (pesa)
  0 siblings, 0 replies; only message in thread
From: Davide Pesavento (pesa) @ 2013-08-01  8:08 UTC (permalink / raw
  To: gentoo-commits

pesa        13/08/01 08:08:27

  Added:                qmf-4.0.2-include.patch qmf-4.0.2-visibility.patch
  Log:
  Fix build with gcc-4.7 (bug 426458).
  
  (Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 17A85C72)

Revision  Changes    Path
1.1                  net-libs/qmf/files/qmf-4.0.2-include.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/qmf/files/qmf-4.0.2-include.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/qmf/files/qmf-4.0.2-include.patch?rev=1.1&content-type=text/plain

Index: qmf-4.0.2-include.patch
===================================================================
From f3ef1f7f6eb9e456465924c63ade2a036079c85f Mon Sep 17 00:00:00 2001
From: Davide Pesavento <davidepesa@gmail.com>
Date: Sun, 28 Jul 2013 21:27:16 -0700
Subject: [PATCH] Add missing include.

Fixes the following compilation errors with gcc 4.7 and later.

messageserver.cpp: In static member function 'static void MessageServer::hupSignalHandler(int)':
messageserver.cpp:501:5: error: '::write' has not been declared
messageserver.cpp: In member function 'void MessageServer::handleSigHup()':
messageserver.cpp:508:5: error: '::read' has not been declared

Change-Id: I6fbcf2cba884f5e285c0259e020c60f4a44173b4
Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
---
 src/tools/messageserver/messageserver.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/tools/messageserver/messageserver.cpp b/src/tools/messageserver/messageserver.cpp
index b749f03..5fbedf9 100644
--- a/src/tools/messageserver/messageserver.cpp
+++ b/src/tools/messageserver/messageserver.cpp
@@ -61,6 +61,7 @@ extern "C" {
 }
 
 #if defined(Q_OS_UNIX)
+#include <unistd.h>
 int MessageServer::sighupFd[2];
 #endif
 
-- 
1.7.1




1.1                  net-libs/qmf/files/qmf-4.0.2-visibility.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/qmf/files/qmf-4.0.2-visibility.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/qmf/files/qmf-4.0.2-visibility.patch?rev=1.1&content-type=text/plain

Index: qmf-4.0.2-visibility.patch
===================================================================
From a84920f307cd4c5661f09dc41e562ff949d6779c Mon Sep 17 00:00:00 2001
From: Davide Pesavento <davidepesa@gmail.com>
Date: Sun, 28 Jul 2013 23:40:16 -0700
Subject: [PATCH] libqmfclient: export a few private classes used by messageserver.

Since version 4.7.0, gcc constraints the ELF visibility of template
instantiations to the visibility of its template arguments (see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35688).

Therefore all explicit instantiations of QPrivatelyImplemented<> in
qmailinstantiations.cpp are now hidden, because the template arguments
are private classes that have hidden visibility.

This commit restores pre-gcc-4.7 behavior by exporting the symbols
required to build messageserver successfully.

Change-Id: I7c0ae91a56cac390f1e73418af486578da665a94
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
---
 src/libraries/qmfclient/qmailmessage_p.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libraries/qmfclient/qmailmessage_p.h b/src/libraries/qmfclient/qmailmessage_p.h
index 256c6b4..8a93432 100644
--- a/src/libraries/qmfclient/qmailmessage_p.h
+++ b/src/libraries/qmfclient/qmailmessage_p.h
@@ -59,7 +59,7 @@
 
 // These classes are implemented via qmailmessage.cpp and qmailinstantiations.cpp
 
-class QMailMessageHeaderFieldPrivate : public QPrivateImplementationBase
+class QMF_EXPORT QMailMessageHeaderFieldPrivate : public QPrivateImplementationBase
 {
 public:
     QMailMessageHeaderFieldPrivate();
@@ -127,7 +127,7 @@ private:
 };
 
 
-class QMailMessageBodyPrivate : public QPrivateImplementationBase
+class QMF_EXPORT QMailMessageBodyPrivate : public QPrivateImplementationBase
 {
 public:
     QMailMessageBodyPrivate();
@@ -169,7 +169,7 @@ private:
 };
 
 
-class QMailMessagePartContainerPrivate : public QPrivateImplementationBase
+class QMF_EXPORT QMailMessagePartContainerPrivate : public QPrivateImplementationBase
 {
 public:
     template<typename Derived>
@@ -356,7 +356,7 @@ private:
 };
 
 
-class QMailMessageMetaDataPrivate : public QPrivateImplementationBase
+class QMF_EXPORT QMailMessageMetaDataPrivate : public QPrivateImplementationBase
 {
 public:
     QMailMessageMetaDataPrivate();
-- 
1.7.1






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-01  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01  8:08 [gentoo-commits] gentoo-x86 commit in net-libs/qmf/files: qmf-4.0.2-include.patch qmf-4.0.2-visibility.patch Davide Pesavento (pesa)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox