diff options
author | 2009-10-16 16:46:31 +0000 | |
---|---|---|
committer | 2009-10-16 16:46:31 +0000 | |
commit | 3ac6ce4daf2d991f09070a2271c9c1745312b2a7 (patch) | |
tree | 3bed1eee184627b4dedc9f6654adb0e3c39a77ed /x11-libs/qt-webkit | |
parent | added version 4.6.0_beta1 (diff) | |
download | gentoo-2-3ac6ce4daf2d991f09070a2271c9c1745312b2a7.tar.gz gentoo-2-3ac6ce4daf2d991f09070a2271c9c1745312b2a7.tar.bz2 gentoo-2-3ac6ce4daf2d991f09070a2271c9c1745312b2a7.zip |
added version 4.6.0_beta1
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'x11-libs/qt-webkit')
-rw-r--r-- | x11-libs/qt-webkit/ChangeLog | 8 | ||||
-rw-r--r-- | x11-libs/qt-webkit/files/sparc-qt-webkit-sigbus.patch | 148 | ||||
-rw-r--r-- | x11-libs/qt-webkit/qt-webkit-4.6.0_beta1.ebuild | 38 |
3 files changed, 193 insertions, 1 deletions
diff --git a/x11-libs/qt-webkit/ChangeLog b/x11-libs/qt-webkit/ChangeLog index 41b7b6eecc21..a2f2f7d38eb5 100644 --- a/x11-libs/qt-webkit/ChangeLog +++ b/x11-libs/qt-webkit/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-libs/qt-webkit # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-webkit/ChangeLog,v 1.55 2009/10/11 17:14:19 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-webkit/ChangeLog,v 1.56 2009/10/16 16:46:30 wired Exp $ + +*qt-webkit-4.6.0_beta1 (16 Oct 2009) + + 16 Oct 2009; Alex Alexander <wired@gentoo.org> + +qt-webkit-4.6.0_beta1.ebuild, +files/sparc-qt-webkit-sigbus.patch: + added version 4.6.0_beta1 11 Oct 2009; Raúl Porcel <armin76@gentoo.org> qt-webkit-4.5.2-r1.ebuild: alpha/ia64 stable wrt #286653 diff --git a/x11-libs/qt-webkit/files/sparc-qt-webkit-sigbus.patch b/x11-libs/qt-webkit/files/sparc-qt-webkit-sigbus.patch new file mode 100644 index 000000000000..7bb297f988ef --- /dev/null +++ b/x11-libs/qt-webkit/files/sparc-qt-webkit-sigbus.patch @@ -0,0 +1,148 @@ +commit 11c220f6d31898a7a1dfafd5d96619fefe6ba597 +Author: Mike Hommey <glandium@debian.org> +Date: Sun Jul 6 10:37:28 2008 +0200 + + Fixed some alignment problems on sparc + + (and some that might occur on arm, too). + + Some compiler warnings about alignment remain, but I don't know if they are + a real problem yet. + +diff --git a/JavaScriptCore/wtf/FastMalloc.cpp b/JavaScriptCore/wtf/FastMalloc.cpp +index 1ba1290..7f08646 100644 +--- a/JavaScriptCore/wtf/FastMalloc.cpp ++++ b/JavaScriptCore/wtf/FastMalloc.cpp +@@ -1824,13 +1824,13 @@ static TCMalloc_Central_FreeListPadded central_cache[kNumClasses]; + + // Page-level allocator + static SpinLock pageheap_lock = SPINLOCK_INITIALIZER; +-static void* pageheap_memory[(sizeof(TCMalloc_PageHeap) + sizeof(void*) - 1) / sizeof(void*)]; ++static uint64_t pageheap_memory[(sizeof(TCMalloc_PageHeap) + sizeof(uint64_t) - 1) / sizeof(uint64_t)]; + static bool phinited = false; + + // Avoid extra level of indirection by making "pageheap" be just an alias + // of pageheap_memory. + typedef union { +- void* m_memory; ++ uint64_t* m_memory; + TCMalloc_PageHeap* m_pageHeap; + } PageHeapUnion; + +diff --git a/JavaScriptCore/wtf/ListHashSet.h b/JavaScriptCore/wtf/ListHashSet.h +index 5aa13cd..ce09222 100644 +--- a/JavaScriptCore/wtf/ListHashSet.h ++++ b/JavaScriptCore/wtf/ListHashSet.h +@@ -122,7 +122,7 @@ namespace WTF { + : m_freeList(pool()) + , m_isDoneWithInitialFreeList(false) + { +- memset(m_pool.pool, 0, sizeof(m_pool.pool)); ++ memset(m_pool, 0, sizeof(m_pool)); + } + + Node* allocate() +@@ -166,7 +166,7 @@ namespace WTF { + } + + private: +- Node* pool() { return reinterpret_cast<Node*>(m_pool.pool); } ++ Node* pool() { return reinterpret_cast<Node*>(m_pool); } + Node* pastPool() { return pool() + m_poolSize; } + + bool inPool(Node* node) +@@ -177,10 +177,7 @@ namespace WTF { + Node* m_freeList; + bool m_isDoneWithInitialFreeList; + static const size_t m_poolSize = 256; +- union { +- char pool[sizeof(Node) * m_poolSize]; +- double forAlignment; +- } m_pool; ++ uint32_t m_pool[(sizeof(Node) * m_poolSize + sizeof(uint32_t) - 1) / sizeof(uint32_t)]; + }; + + template<typename ValueArg> struct ListHashSetNode { +diff --git a/JavaScriptCore/wtf/Platform.h b/JavaScriptCore/wtf/Platform.h +index d935052..ce44c25 100644 +--- a/JavaScriptCore/wtf/Platform.h ++++ b/JavaScriptCore/wtf/Platform.h +@@ -172,6 +172,23 @@ + #define WTF_PLATFORM_X86_64 1 + #endif + ++/* PLATFORM(SPARC) */ ++#if defined(__sparc__) \ ++ || defined(__sparc) ++#define WTF_PLATFORM_SPARC 1 ++#define WTF_PLATFORM_BIG_ENDIAN 1 ++#endif ++ ++/* For undefined platforms */ ++#if !defined(WTF_PLATFORM_BIG_ENDIAN) && !defined(WTF_PLATFORM_MIDDLE_ENDIAN) ++#include <sys/param.h> ++#if __BYTE_ORDER == __BIG_ENDIAN ++#define WTF_PLATFORM_BIG_ENDIAN 1 ++#elif __BYTE_ORDER == __PDP_ENDIAN ++#define WTF_PLATFORM_MIDDLE_ENDIAN 1 ++#endif ++#endif ++ + /* Compiler */ + + /* COMPILER(MSVC) */ +diff --git a/JavaScriptCore/wtf/Vector.h b/JavaScriptCore/wtf/Vector.h +index 41ab32c..671b20b 100644 +--- a/JavaScriptCore/wtf/Vector.h ++++ b/JavaScriptCore/wtf/Vector.h +@@ -386,8 +386,7 @@ namespace WTF { + static const size_t m_inlineBufferSize = inlineCapacity * sizeof(T); + T* inlineBuffer() { return reinterpret_cast<T*>(&m_inlineBuffer); } + +- // FIXME: Nothing guarantees this buffer is appropriately aligned to hold objects of type T. +- char m_inlineBuffer[m_inlineBufferSize]; ++ uint64_t m_inlineBuffer[(m_inlineBufferSize + sizeof(uint64_t) - 1) / sizeof(uint64_t)]; + }; + + template<typename T, size_t inlineCapacity = 0> +diff --git a/WebCore/platform/text/AtomicString.cpp b/WebCore/platform/text/AtomicString.cpp +index d908dca..1460904 100644 +--- a/WebCore/platform/text/AtomicString.cpp ++++ b/WebCore/platform/text/AtomicString.cpp +@@ -94,7 +94,7 @@ static inline bool equal(StringImpl* string, const UChar* characters, unsigned l + if (string->length() != length) + return false; + +-#if PLATFORM(ARM) ++#if PLATFORM(ARM) || PLATFORM(SPARC) + const UChar* stringCharacters = string->characters(); + for (unsigned i = 0; i != length; ++i) { + if (*stringCharacters++ != *characters++) +diff --git a/WebCore/platform/text/StringHash.h b/WebCore/platform/text/StringHash.h +index 1eba8c7..8e16b51 100644 +--- a/WebCore/platform/text/StringHash.h ++++ b/WebCore/platform/text/StringHash.h +@@ -46,6 +46,15 @@ namespace WebCore { + if (aLength != bLength) + return false; + ++#if PLATFORM(ARM) || PLATFORM(SPARC) ++ const UChar* aChars = a->characters(); ++ const UChar* bChars = b->characters(); ++ for (unsigned i = 0; i != aLength; ++i) ++ if (*aChars++ != *bChars++) ++ return false; ++ ++ return true; ++#else + const uint32_t* aChars = reinterpret_cast<const uint32_t*>(a->characters()); + const uint32_t* bChars = reinterpret_cast<const uint32_t*>(b->characters()); + +@@ -58,6 +67,7 @@ namespace WebCore { + return false; + + return true; ++#endif + } + + static unsigned hash(const RefPtr<StringImpl>& key) { return key->hash(); } diff --git a/x11-libs/qt-webkit/qt-webkit-4.6.0_beta1.ebuild b/x11-libs/qt-webkit/qt-webkit-4.6.0_beta1.ebuild new file mode 100644 index 000000000000..fab3e91f06c8 --- /dev/null +++ b/x11-libs/qt-webkit/qt-webkit-4.6.0_beta1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-webkit/qt-webkit-4.6.0_beta1.ebuild,v 1.1 2009/10/16 16:46:30 wired Exp $ + +EAPI="2" +inherit qt4-build + +DESCRIPTION="The Webkit module for the Qt toolkit" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="kde" + +DEPEND="~x11-libs/qt-core-${PV}[debug=,ssl] + ~x11-libs/qt-gui-${PV}[debug=] + !kde? ( || ( ~x11-libs/qt-phonon-${PV}:${SLOT}[debug=] media-sound/phonon ) ) + kde? ( media-sound/phonon )" +RDEPEND="${DEPEND}" + +QT4_TARGET_DIRECTORIES="src/3rdparty/webkit/WebCore tools/designer/src/plugins/qwebview" +QT4_EXTRACT_DIRECTORIES=" +include/ +src/ +tools/" +QCONFIG_ADD="webkit" +QCONFIG_DEFINE="QT_WEBKIT" + +src_prepare() { + [[ $(tc-arch) == "ppc64" ]] && append-flags -mminimal-toc #241900 + if use sparc; then + epatch "${FILESDIR}"/sparc-qt-webkit-sigbus.patch + fi + qt4-build_src_prepare +} + +src_configure() { + myconf="${myconf} -webkit" + qt4-build_src_configure +} |