summaryrefslogtreecommitdiff
path: root/devel/pango
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-11-22 19:14:41 +0000
committersno <sno@pkgsrc.org>2009-11-22 19:14:41 +0000
commitb094cb083c888e82751185b53d6a0c31cd776321 (patch)
treee2d8b3d9efe158d1ffe0050be69d89586be286e7 /devel/pango
parentb9356cd4eb751cddfce740db6b945c91532777e0 (diff)
downloadpkgsrc-b094cb083c888e82751185b53d6a0c31cd776321.tar.gz
Adding some patches to get it a bit further compiled with Sun Studio
(see https://bugzilla.gnome.org/show_bug.cgi?id=602408). Without commiting so far I couldn't check progress over the week - sorry for the extra noise.
Diffstat (limited to 'devel/pango')
-rw-r--r--devel/pango/distinfo6
-rw-r--r--devel/pango/patches/patch-aa21
-rw-r--r--devel/pango/patches/patch-ab21
-rw-r--r--devel/pango/patches/patch-ac42
-rw-r--r--devel/pango/patches/patch-ad15
5 files changed, 104 insertions, 1 deletions
diff --git a/devel/pango/distinfo b/devel/pango/distinfo
index 3035cf3125c..2458eefb0f9 100644
--- a/devel/pango/distinfo
+++ b/devel/pango/distinfo
@@ -1,5 +1,9 @@
-$NetBSD: distinfo,v 1.77 2009/11/20 11:56:08 drochner Exp $
+$NetBSD: distinfo,v 1.78 2009/11/22 19:14:41 sno Exp $
SHA1 (pango-1.26.1.tar.bz2) = d4891a34a46ddc9a6e37bcdf0fef4cbab7391b7b
RMD160 (pango-1.26.1.tar.bz2) = cc9e3bd5d4cdfcb9c2298b75c4b02fee31816184
Size (pango-1.26.1.tar.bz2) = 1538050 bytes
+SHA1 (patch-aa) = 1a87d055dc722eff28517a11d0832ae19df5eb59
+SHA1 (patch-ab) = 12c09b12ba31be19fa0d602f89909811e6221bd8
+SHA1 (patch-ac) = 04da33d33698f7c1e7776e7c050d4fb7043ff0a3
+SHA1 (patch-ad) = 96b82ee6685eed69e324f3d1d7139a2762ae1a30
diff --git a/devel/pango/patches/patch-aa b/devel/pango/patches/patch-aa
new file mode 100644
index 00000000000..ad9dcd6824a
--- /dev/null
+++ b/devel/pango/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.18 2009/11/22 19:14:41 sno Exp $
+
+Do not enable gcc flags for non-gcc compilers
+
+--- configure.in.orig Mon Sep 21 22:14:36 2009
++++ configure.in Tue Nov 17 09:43:58 2009
+@@ -143,9 +143,12 @@
+ AC_CHECK_HEADERS(unistd.h sys/mman.h)
+
+ # Make sure we don't link to libstdc++ (needs de-gcc-fication)
+-CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
++if test "$GCC" = yes; then
++ CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
++else
++ CXXFLAGS="$CXXFLAGS -features=%all,no%except"
++fi
+
+-
+ #
+ # Win32 stuff
+ #
diff --git a/devel/pango/patches/patch-ab b/devel/pango/patches/patch-ab
new file mode 100644
index 00000000000..6b9fcf0a838
--- /dev/null
+++ b/devel/pango/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.16 2009/11/22 19:14:41 sno Exp $
+
+Do not enable gcc flags for non-gcc compilers
+
+--- configure.orig Tue Nov 17 09:42:57 2009
++++ configure Tue Nov 17 09:44:27 2009
+@@ -6106,9 +6106,12 @@
+
+
+ # Make sure we don't link to libstdc++ (needs de-gcc-fication)
+-CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
++if test "$GCC" = yes; then
++ CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
++else
++ CXXFLAGS="$CXXFLAGS -features=%all,no%except"
++fi
+
+-
+ #
+ # Win32 stuff
+ #
diff --git a/devel/pango/patches/patch-ac b/devel/pango/patches/patch-ac
new file mode 100644
index 00000000000..0dc9caf6101
--- /dev/null
+++ b/devel/pango/patches/patch-ac
@@ -0,0 +1,42 @@
+$NetBSD: patch-ac,v 1.12 2009/11/22 19:14:42 sno Exp $
+
+See https://bugzilla.gnome.org/show_bug.cgi?id=602408
+
+--- pango/opentype/hb-open-type-private.hh.orig
++++ pango/opentype/hb-open-type-private.hh
+@@ -258,7 +258,7 @@ _hb_sanitize_edit (SANITIZE_ARG_DEF,
+ #define NEUTER(Var, Val) \
+ (SANITIZE_OBJ (Var) && \
+ _hb_sanitize_edit (SANITIZE_ARG, CONST_CHARP(&(Var)), sizeof (Var)) && \
+- ((Var) = (Val), true))
++ ((Var).set (Val), true))
+
+
+ /* Template to sanitize an object. */
+@@ -345,7 +345,7 @@ struct Sanitizer
+ #define _DEFINE_INT_TYPE1_UNALIGNED(NAME, TYPE, BIG_ENDIAN, BYTES) \
+ struct NAME \
+ { \
+- inline NAME& operator = (TYPE i) { (TYPE&) v = BIG_ENDIAN (i); return *this; } \
++ inline NAME& set (TYPE i) { (TYPE&) v = BIG_ENDIAN (i); return *this; } \
+ inline operator TYPE(void) const { return BIG_ENDIAN ((TYPE&) v); } \
+ inline bool operator== (NAME o) const { return (TYPE&) v == (TYPE&) o.v; } \
+ inline bool sanitize (SANITIZE_ARG_DEF) { \
+@@ -359,7 +359,7 @@ struct Sanitizer
+ #define DEFINE_INT_TYPE1(NAME, TYPE, BIG_ENDIAN, BYTES) \
+ struct NAME \
+ { \
+- inline NAME& operator = (TYPE i) { BIG_ENDIAN##_put_unaligned(v, i); return *this; } \
++ inline NAME& set (TYPE i) { BIG_ENDIAN##_put_unaligned(v, i); return *this; } \
+ inline operator TYPE(void) const { return BIG_ENDIAN##_get_unaligned (v); } \
+ inline bool operator== (NAME o) const { return BIG_ENDIAN##_cmp_unaligned (v, o.v); } \
+ inline bool sanitize (SANITIZE_ARG_DEF) { \
+@@ -384,7 +384,7 @@ DEFINE_INT_TYPE (LONG, , 32); /* 32-bit signed integer. */
+ struct Tag : ULONG
+ {
+ inline Tag (const Tag &o) { *(ULONG*)this = (ULONG&) o; }
+- inline Tag (uint32_t i) { *(ULONG*)this = i; }
++ inline Tag (uint32_t i) { (*(ULONG*)this).set (i); }
+ inline Tag (const char *c) { *(ULONG*)this = *(ULONG*)c; }
+ inline bool operator== (const char *c) const { return *(ULONG*)this == *(ULONG*)c; }
+ /* What the char* converters return is NOT nul-terminated. Print using "%.4s" */
diff --git a/devel/pango/patches/patch-ad b/devel/pango/patches/patch-ad
new file mode 100644
index 00000000000..eef5f3f502b
--- /dev/null
+++ b/devel/pango/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.9 2009/11/22 19:14:42 sno Exp $
+
+See https://bugzilla.gnome.org/show_bug.cgi?id=602408
+
+--- pango/opentype/hb-ot-layout-common-private.hh.orig
++++ pango/opentype/hb-ot-layout-common-private.hh
+@@ -320,7 +320,7 @@ struct CoverageFormat1
+ if (HB_UNLIKELY (glyph_id > 0xFFFF))
+ return NOT_COVERED;
+ GlyphID gid;
+- gid = glyph_id;
++ gid.set (glyph_id);
+ // TODO: bsearch
+ unsigned int num_glyphs = glyphArray.len;
+ for (unsigned int i = 0; i < num_glyphs; i++)