From d4fa5dadd7a520a55f520a2495b97618dd4475f164ebf2bc8303998fc7ba0fa1 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Thu, 16 Jun 2011 12:15:27 +0000 Subject: [PATCH 1/3] Accepting request 73662 from home:dimstar:branches:GNOME:Factory Doh OBS-URL: https://build.opensuse.org/request/show/73662 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=66 --- pango-no-G_CONST_RETURN.patch | 444 ++++++++++++++++++++++++++++++++++ pango.changes | 6 + pango.spec | 3 + 3 files changed, 453 insertions(+) create mode 100644 pango-no-G_CONST_RETURN.patch diff --git a/pango-no-G_CONST_RETURN.patch b/pango-no-G_CONST_RETURN.patch new file mode 100644 index 0000000..c95026e --- /dev/null +++ b/pango-no-G_CONST_RETURN.patch @@ -0,0 +1,444 @@ +From 4c7807daee7189f481d7c18b56b06d7b7dba7884 Mon Sep 17 00:00:00 2001 +From: Ryan Lortie +Date: Thu, 09 Jun 2011 15:36:59 +0000 +Subject: Stop using G_CONST_RETURN in Pango + +G_CONST_RETURN is headed for deprecation (as per bug #644611). Stop +using it in Pango. + +https://bugzilla.gnome.org/show_bug.cgi?id=652202 +--- +Index: pango-1.28.4/modules/hebrew/hebrew-shaper.c +=================================================================== +--- pango-1.28.4.orig/modules/hebrew/hebrew-shaper.c ++++ pango-1.28.4/modules/hebrew/hebrew-shaper.c +@@ -167,7 +167,7 @@ static const gboolean compose_table[4][4 + #define is_composible(cur_wc, nxt_wc) (compose_table[char_type_table[ucs2iso8859_8 (cur_wc)]]\ + [char_type_table[ucs2iso8859_8 (nxt_wc)]]) + +-G_CONST_RETURN char * ++const char * + hebrew_shaper_get_next_cluster(const char *text, + gint length, + gunichar *cluster, +Index: pango-1.28.4/pango/fonts.c +=================================================================== +--- pango-1.28.4.orig/pango/fonts.c ++++ pango-1.28.4/pango/fonts.c +@@ -165,7 +165,7 @@ pango_font_description_set_family_static + * %NULL if not previously set. This has the same life-time + * as the font description itself and should not be freed. + **/ +-G_CONST_RETURN char * ++const char * + pango_font_description_get_family (const PangoFontDescription *desc) + { + g_return_val_if_fail (desc != NULL, NULL); +@@ -1927,7 +1927,7 @@ pango_font_family_init (PangoFontFamily + * Return value: the name of the family. This string is owned + * by the family object and must not be modified or freed. + **/ +-G_CONST_RETURN char * ++const char * + pango_font_family_get_name (PangoFontFamily *family) + { + g_return_val_if_fail (PANGO_IS_FONT_FAMILY (family), NULL); +@@ -2060,7 +2060,7 @@ pango_font_face_is_synthesized (PangoFon + * Return value: the face name for the face. This string is + * owned by the face object and must not be modified or freed. + **/ +-G_CONST_RETURN char * ++const char * + pango_font_face_get_face_name (PangoFontFace *face) + { + g_return_val_if_fail (PANGO_IS_FONT_FACE (face), NULL); +Index: pango-1.28.4/pango/pango-attributes.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-attributes.c ++++ pango-1.28.4/pango/pango-attributes.c +@@ -97,7 +97,7 @@ pango_attr_type_register (const gchar *n + * + * Since: 1.22 + **/ +-G_CONST_RETURN char * ++const char * + pango_attr_type_get_name (PangoAttrType type) + { + const char *result = NULL; +Index: pango-1.28.4/pango/pango-attributes.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-attributes.h ++++ pango-1.28.4/pango/pango-attributes.h +@@ -180,7 +180,7 @@ struct _PangoAttrFontDesc + }; + + PangoAttrType pango_attr_type_register (const gchar *name); +-G_CONST_RETURN char * pango_attr_type_get_name (PangoAttrType type) G_GNUC_CONST; ++const char * pango_attr_type_get_name (PangoAttrType type) G_GNUC_CONST; + + void pango_attribute_init (PangoAttribute *attr, + const PangoAttrClass *klass); +Index: pango-1.28.4/pango/pango-context.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-context.c ++++ pango-1.28.4/pango/pango-context.c +@@ -188,7 +188,7 @@ pango_context_set_matrix (PangoContext + * + * Since: 1.6 + **/ +-G_CONST_RETURN PangoMatrix * ++const PangoMatrix * + pango_context_get_matrix (PangoContext *context) + { + g_return_val_if_fail (PANGO_IS_CONTEXT (context), NULL); +Index: pango-1.28.4/pango/pango-context.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-context.h ++++ pango-1.28.4/pango/pango-context.h +@@ -84,9 +84,9 @@ void pango_context_ + PangoGravityHint hint); + PangoGravityHint pango_context_get_gravity_hint (PangoContext *context); + +-void pango_context_set_matrix (PangoContext *context, +- const PangoMatrix *matrix); +-G_CONST_RETURN PangoMatrix *pango_context_get_matrix (PangoContext *context); ++void pango_context_set_matrix (PangoContext *context, ++ const PangoMatrix *matrix); ++const PangoMatrix * pango_context_get_matrix (PangoContext *context); + + /* Break a string of Unicode characters into segments with + * consistent shaping/language engine and bidrectional level. +Index: pango-1.28.4/pango/pango-font.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-font.h ++++ pango-1.28.4/pango/pango-font.h +@@ -117,7 +117,7 @@ void pango_font_descript + const char *family); + void pango_font_description_set_family_static (PangoFontDescription *desc, + const char *family); +-G_CONST_RETURN char *pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE; ++const char *pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE; + void pango_font_description_set_style (PangoFontDescription *desc, + PangoStyle style); + PangoStyle pango_font_description_get_style (const PangoFontDescription *desc) G_GNUC_PURE; +@@ -212,7 +212,7 @@ GType pango_font_family_get_type + void pango_font_family_list_faces (PangoFontFamily *family, + PangoFontFace ***faces, + int *n_faces); +-G_CONST_RETURN char *pango_font_family_get_name (PangoFontFamily *family) G_GNUC_PURE; ++const char *pango_font_family_get_name (PangoFontFamily *family) G_GNUC_PURE; + gboolean pango_font_family_is_monospace (PangoFontFamily *family) G_GNUC_PURE; + + #ifdef PANGO_ENABLE_BACKEND +@@ -261,7 +261,7 @@ struct _PangoFontFamilyClass + GType pango_font_face_get_type (void) G_GNUC_CONST; + + PangoFontDescription *pango_font_face_describe (PangoFontFace *face); +-G_CONST_RETURN char *pango_font_face_get_face_name (PangoFontFace *face) G_GNUC_PURE; ++const char *pango_font_face_get_face_name (PangoFontFace *face) G_GNUC_PURE; + void pango_font_face_list_sizes (PangoFontFace *face, + int **sizes, + int *n_sizes); +Index: pango-1.28.4/pango/pango-fontmap.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-fontmap.c ++++ pango-1.28.4/pango/pango-fontmap.c +@@ -290,7 +290,7 @@ pango_font_map_real_load_fontset (PangoF + * + * Since: 1.4 + **/ +-G_CONST_RETURN char * ++const char * + pango_font_map_get_shape_engine_type (PangoFontMap *fontmap) + { + g_return_val_if_fail (PANGO_IS_FONT_MAP (fontmap), NULL); +Index: pango-1.28.4/pango/pango-language.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-language.c ++++ pango-1.28.4/pango/pango-language.c +@@ -319,7 +319,7 @@ pango_language_from_string (const char * + * Returns: a string representing the language tag. This is owned by + * Pango and should not be freed. + */ +-G_CONST_RETURN char * ++const char * + (pango_language_to_string) (PangoLanguage *language) + { + return pango_language_to_string (language); +@@ -531,7 +531,7 @@ static const LangInfo lang_texts[] = { + * Return value: the sample string. This value is owned by Pango + * and should not be freed. + **/ +-G_CONST_RETURN char * ++const char * + pango_language_get_sample_string (PangoLanguage *language) + { + const LangInfo *lang_info; +@@ -592,7 +592,7 @@ pango_language_get_sample_string (PangoL + + * Since: 1.22 + **/ +-G_CONST_RETURN PangoScript * ++const PangoScript * + pango_language_get_scripts (PangoLanguage *language, + int *num_scripts) + { +Index: pango-1.28.4/pango/pango-language.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-language.h ++++ pango-1.28.4/pango/pango-language.h +@@ -34,11 +34,11 @@ typedef struct _PangoLanguage PangoLangu + GType pango_language_get_type (void) G_GNUC_CONST; + PangoLanguage *pango_language_from_string (const char *language); + +-G_CONST_RETURN char *pango_language_to_string (PangoLanguage *language) G_GNUC_CONST; ++const char *pango_language_to_string (PangoLanguage *language) G_GNUC_CONST; + /* For back compat. Will have to keep indefinitely. */ + #define pango_language_to_string(language) ((const char *)language) + +-G_CONST_RETURN char *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST; ++const char *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST; + PangoLanguage *pango_language_get_default (void) G_GNUC_CONST; + + gboolean pango_language_matches (PangoLanguage *language, +@@ -48,7 +48,7 @@ gboolean pango_language_matches (P + + gboolean pango_language_includes_script (PangoLanguage *language, + PangoScript script) G_GNUC_PURE; +-G_CONST_RETURN PangoScript *pango_language_get_scripts (PangoLanguage *language, ++const PangoScript *pango_language_get_scripts (PangoLanguage *language, + int *num_scripts); + + G_END_DECLS +Index: pango-1.28.4/pango/pango-layout.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-layout.c ++++ pango-1.28.4/pango/pango-layout.c +@@ -677,7 +677,7 @@ pango_layout_set_font_description (Pango + * + * Since: 1.8 + **/ +-G_CONST_RETURN PangoFontDescription * ++const PangoFontDescription * + pango_layout_get_font_description (PangoLayout *layout) + { + g_return_val_if_fail (PANGO_IS_LAYOUT (layout), NULL); +@@ -1087,7 +1087,7 @@ pango_layout_set_text (PangoLayout *layo + * + * Return value: the text in the @layout. + **/ +-G_CONST_RETURN char* ++const char* + pango_layout_get_text (PangoLayout *layout) + { + g_return_val_if_fail (PANGO_IS_LAYOUT (layout), NULL); +Index: pango-1.28.4/pango/pango-layout.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-layout.h ++++ pango-1.28.4/pango/pango-layout.h +@@ -116,7 +116,7 @@ void pango_layout_set_markup_w + void pango_layout_set_font_description (PangoLayout *layout, + const PangoFontDescription *desc); + +-G_CONST_RETURN PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout); ++const PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout); + + void pango_layout_set_width (PangoLayout *layout, + int width); +Index: pango-1.28.4/pango/pango-ot-ruleset.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-ot-ruleset.c ++++ pango-1.28.4/pango/pango-ot-ruleset.c +@@ -107,7 +107,7 @@ pango_ot_ruleset_finalize (GObject *obje + * + * Since: 1.18 + **/ +-G_CONST_RETURN PangoOTRuleset * ++const PangoOTRuleset * + pango_ot_ruleset_get_for_description (PangoOTInfo *info, + const PangoOTRulesetDescription *desc) + { +Index: pango-1.28.4/pango/pango-renderer.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-renderer.c ++++ pango-1.28.4/pango/pango-renderer.c +@@ -1352,7 +1352,7 @@ pango_renderer_set_matrix (PangoRenderer + * + * Since: 1.8 + **/ +-G_CONST_RETURN PangoMatrix * ++const PangoMatrix * + pango_renderer_get_matrix (PangoRenderer *renderer) + { + g_return_val_if_fail (PANGO_IS_RENDERER (renderer), NULL); +Index: pango-1.28.4/pango/pango-renderer.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-renderer.h ++++ pango-1.28.4/pango/pango-renderer.h +@@ -249,7 +249,7 @@ PangoColor *pango_renderer_get_color (Pa + + void pango_renderer_set_matrix (PangoRenderer *renderer, + const PangoMatrix *matrix); +-G_CONST_RETURN PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer); ++const PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer); + + PangoLayout *pango_renderer_get_layout (PangoRenderer *renderer); + PangoLayoutLine *pango_renderer_get_layout_line (PangoRenderer *renderer); +Index: pango-1.28.4/pango/pango-script.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-script.c ++++ pango-1.28.4/pango/pango-script.c +@@ -164,10 +164,10 @@ pango_script_iter_free (PangoScriptIter + * Since: 1.4 + **/ + void +-pango_script_iter_get_range (PangoScriptIter *iter, +- G_CONST_RETURN char **start, +- G_CONST_RETURN char **end, +- PangoScript *script) ++pango_script_iter_get_range (PangoScriptIter *iter, ++ const char **start, ++ const char **end, ++ PangoScript *script) + { + if (start) + *start = iter->script_start; +Index: pango-1.28.4/pango/pango-script.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-script.h ++++ pango-1.28.4/pango/pango-script.h +@@ -128,12 +128,12 @@ PangoScript pango_script_for_unichar + + PangoScriptIter *pango_script_iter_new (const char *text, + int length); +-void pango_script_iter_get_range (PangoScriptIter *iter, +- G_CONST_RETURN char **start, +- G_CONST_RETURN char **end, +- PangoScript *script); +-gboolean pango_script_iter_next (PangoScriptIter *iter); +-void pango_script_iter_free (PangoScriptIter *iter); ++void pango_script_iter_get_range (PangoScriptIter *iter, ++ const char **start, ++ const char **end, ++ PangoScript *script); ++gboolean pango_script_iter_next (PangoScriptIter *iter); ++void pango_script_iter_free (PangoScriptIter *iter); + + #include + +Index: pango-1.28.4/pango/pango-utils.c +=================================================================== +--- pango-1.28.4.orig/pango/pango-utils.c ++++ pango-1.28.4/pango/pango-utils.c +@@ -689,7 +689,7 @@ DllMain (HINSTANCE hinstDLL, + * Return value: the Pango sysconf directory. The returned string should + * not be freed. + */ +-G_CONST_RETURN char * ++const char * + pango_get_sysconf_subdirectory (void) + { + #ifdef G_OS_WIN32 +@@ -718,7 +718,7 @@ pango_get_sysconf_subdirectory (void) + * Return value: the Pango lib directory. The returned string should + * not be freed. + */ +-G_CONST_RETURN char * ++const char * + pango_get_lib_subdirectory (void) + { + #ifdef G_OS_WIN32 +Index: pango-1.28.4/pango/pango-utils.h +=================================================================== +--- pango-1.28.4.orig/pango/pango-utils.h ++++ pango-1.28.4/pango/pango-utils.h +@@ -82,13 +82,13 @@ gboolean pango_parse_stretch (const char + * stored in the registry). The returned string should not be + * g_free'd. + */ +-G_CONST_RETURN char * pango_get_sysconf_subdirectory (void) G_GNUC_PURE; ++const char * pango_get_sysconf_subdirectory (void) G_GNUC_PURE; + + /* Ditto for LIBDIR/pango. On Win32, use the same Pango + * installation directory. This returned string should not be + * g_free'd either. + */ +-G_CONST_RETURN char * pango_get_lib_subdirectory (void) G_GNUC_PURE; ++const char * pango_get_lib_subdirectory (void) G_GNUC_PURE; + + #endif /* PANGO_ENABLE_BACKEND */ + +@@ -131,12 +131,12 @@ gboolean pango_is_zero_width (gunichar c + int pango_version (void) G_GNUC_CONST; + + /* Return run-time Pango version as an string */ +-G_CONST_RETURN char * pango_version_string (void) G_GNUC_CONST; ++const char * pango_version_string (void) G_GNUC_CONST; + + /* Check that run-time Pango is as new as required */ +-G_CONST_RETURN char * pango_version_check (int required_major, +- int required_minor, +- int required_micro) G_GNUC_CONST; ++const char * pango_version_check (int required_major, ++ int required_minor, ++ int required_micro) G_GNUC_CONST; + + G_END_DECLS + +Index: pango-1.28.4/pango/pangocairo-context.c +=================================================================== +--- pango-1.28.4.orig/pango/pangocairo-context.c ++++ pango-1.28.4/pango/pangocairo-context.c +@@ -260,7 +260,7 @@ pango_cairo_context_set_font_options (Pa + * + * Since: 1.10 + **/ +-G_CONST_RETURN cairo_font_options_t * ++const cairo_font_options_t * + pango_cairo_context_get_font_options (PangoContext *context) + { + PangoCairoContextInfo *info; +@@ -286,7 +286,7 @@ pango_cairo_context_get_font_options (Pa + * Return value: the combined set of font options. This value is owned + * by the context and must not be modified or freed. + **/ +-G_CONST_RETURN cairo_font_options_t * ++const cairo_font_options_t * + _pango_cairo_context_get_merged_font_options (PangoContext *context) + { + PangoCairoContextInfo *info = get_context_info (context, TRUE); +Index: pango-1.28.4/pango/pangoft2.c +=================================================================== +--- pango-1.28.4.orig/pango/pangoft2.c ++++ pango-1.28.4/pango/pangoft2.c +@@ -520,7 +520,7 @@ ft_error_compare (const void *pkey, + return ((ft_error_description *) pkey)->code - ((ft_error_description *) pbase)->code; + } + +-G_CONST_RETURN char * ++const char * + _pango_ft2_ft_strerror (FT_Error error) + { + #undef __FTERRORS_H__ +Index: pango-1.28.4/pango/pangox-fontmap.c +=================================================================== +--- pango-1.28.4.orig/pango/pangox-fontmap.c ++++ pango-1.28.4/pango/pangox-fontmap.c +@@ -1441,7 +1441,7 @@ pango_x_fontmap_atom_from_name (PangoFon + } + + +-G_CONST_RETURN char * ++const char * + pango_x_fontmap_name_from_atom (PangoFontMap *fontmap, + Atom atom) + { +@@ -1645,7 +1645,7 @@ pango_x_family_list_faces (PangoFontFami + } + } + +-static G_CONST_RETURN char * ++static const char * + pango_x_family_get_name (PangoFontFamily *family) + { + PangoXFamily *xfamily = PANGO_X_FAMILY (family); diff --git a/pango.changes b/pango.changes index b6a17e8..8223562 100644 --- a/pango.changes +++ b/pango.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 15 09:09:39 UTC 2011 - dimstar@opensuse.org + +- Add pango-no-G_CONST_RETURN.patch: Do not use G_CONST_RETURN, + patch taken from upstream git (commit 4c7807da). + ------------------------------------------------------------------- Mon May 2 12:18:16 CEST 2011 - vuntz@opensuse.org diff --git a/pango.spec b/pango.spec index 729a0cb..1407205 100644 --- a/pango.spec +++ b/pango.spec @@ -31,6 +31,8 @@ Source2: macros.pango Source99: baselibs.conf # PATCH-FIX-UPSTREAM pango64.patch bgo129534 -- needed for biarch. Unfortunately, this is not good enough for usptream. Patch0: pango64.patch +# PATCH-FIX-UPSTREAM pango-no-G_CONST_RETURN.patch bgo#644611 dimstar@opensuse.org -- Do not use G_CONST_RETURN, taken from upstream git. +Patch1: pango-no-G_CONST_RETURN.patch BuildRequires: gcc-c++ BuildRequires: gtk-doc BuildRequires: pkg-config @@ -126,6 +128,7 @@ to develop applications that require these. cp -a %{S:1} . %patch0 -p0 %endif +%patch1 -p1 %build %configure --disable-static --with-pic From e0571ccf3edc8a674e503cd8ea9cdb0d3d7453a1618604332a9c2eb1a78ada93 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 16 Jun 2011 15:45:04 +0000 Subject: [PATCH 2/3] Accepting request 73877 from home:vuntz:branches:GNOME:Factory Add url tag OBS-URL: https://build.opensuse.org/request/show/73877 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=67 --- pango.changes | 8 ++++++++ pango.spec | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pango.changes b/pango.changes index 8223562..efbfb63 100644 --- a/pango.changes +++ b/pango.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jun 16 17:10:32 CEST 2011 - vuntz@opensuse.org + +- Add Url tag. +- Change Obsoletes for pango-doc from <= to < to avoid rpmlint + warning. This is safe as we've updated to new versions several + times since removing pango-doc. + ------------------------------------------------------------------- Wed Jun 15 09:09:39 UTC 2011 - dimstar@opensuse.org diff --git a/pango.spec b/pango.spec index 1407205..61668d6 100644 --- a/pango.spec +++ b/pango.spec @@ -25,6 +25,7 @@ Group: System/Libraries Version: 1.28.4 Release: 1 Summary: Library for Layout and Rendering of Text +Url: http://www.pango.org/ Source: ftp://ftp.gnome.org/pub/GNOME/sources/pango/1.18/%{name}-%{version}.tar.bz2 Source1: README.SuSE Source2: macros.pango @@ -109,8 +110,8 @@ Group: Development/Libraries/GNOME %ifarch ppc64 Obsoletes: pango-devel-64bit %endif -Obsoletes: pango-doc <= %{version} Provides: pango-doc = %{version} +Obsoletes: pango-doc < %{version} %description devel Pango is a library for layout and rendering of text, with an emphasis From 6c62a9bed179ef730b685cf9e2ceea0614301af4d9f03ae45b865caf0c920e7f Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 17 Jun 2011 06:56:35 +0000 Subject: [PATCH 3/3] Accepting request 73908 from home:vuntz:branches:GNOME:Factory Update to 1.29.3 OBS-URL: https://build.opensuse.org/request/show/73908 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=68 --- pango-1.28.4.tar.bz2 | 3 - pango-1.29.3.tar.bz2 | 3 + pango-no-G_CONST_RETURN.patch | 444 ---------------------------------- pango.changes | 10 + pango.spec | 5 +- 5 files changed, 14 insertions(+), 451 deletions(-) delete mode 100644 pango-1.28.4.tar.bz2 create mode 100644 pango-1.29.3.tar.bz2 delete mode 100644 pango-no-G_CONST_RETURN.patch diff --git a/pango-1.28.4.tar.bz2 b/pango-1.28.4.tar.bz2 deleted file mode 100644 index 60704be..0000000 --- a/pango-1.28.4.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7eb035bcc10dd01569a214d5e2bc3437de95d9ac1cfa9f50035a687c45f05a9f -size 1503441 diff --git a/pango-1.29.3.tar.bz2 b/pango-1.29.3.tar.bz2 new file mode 100644 index 0000000..eb12aa7 --- /dev/null +++ b/pango-1.29.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a177f455f358a9b075e3b5d7e04891d90380c551e3ec28125e3d9aacca7dd43b +size 1470053 diff --git a/pango-no-G_CONST_RETURN.patch b/pango-no-G_CONST_RETURN.patch deleted file mode 100644 index c95026e..0000000 --- a/pango-no-G_CONST_RETURN.patch +++ /dev/null @@ -1,444 +0,0 @@ -From 4c7807daee7189f481d7c18b56b06d7b7dba7884 Mon Sep 17 00:00:00 2001 -From: Ryan Lortie -Date: Thu, 09 Jun 2011 15:36:59 +0000 -Subject: Stop using G_CONST_RETURN in Pango - -G_CONST_RETURN is headed for deprecation (as per bug #644611). Stop -using it in Pango. - -https://bugzilla.gnome.org/show_bug.cgi?id=652202 ---- -Index: pango-1.28.4/modules/hebrew/hebrew-shaper.c -=================================================================== ---- pango-1.28.4.orig/modules/hebrew/hebrew-shaper.c -+++ pango-1.28.4/modules/hebrew/hebrew-shaper.c -@@ -167,7 +167,7 @@ static const gboolean compose_table[4][4 - #define is_composible(cur_wc, nxt_wc) (compose_table[char_type_table[ucs2iso8859_8 (cur_wc)]]\ - [char_type_table[ucs2iso8859_8 (nxt_wc)]]) - --G_CONST_RETURN char * -+const char * - hebrew_shaper_get_next_cluster(const char *text, - gint length, - gunichar *cluster, -Index: pango-1.28.4/pango/fonts.c -=================================================================== ---- pango-1.28.4.orig/pango/fonts.c -+++ pango-1.28.4/pango/fonts.c -@@ -165,7 +165,7 @@ pango_font_description_set_family_static - * %NULL if not previously set. This has the same life-time - * as the font description itself and should not be freed. - **/ --G_CONST_RETURN char * -+const char * - pango_font_description_get_family (const PangoFontDescription *desc) - { - g_return_val_if_fail (desc != NULL, NULL); -@@ -1927,7 +1927,7 @@ pango_font_family_init (PangoFontFamily - * Return value: the name of the family. This string is owned - * by the family object and must not be modified or freed. - **/ --G_CONST_RETURN char * -+const char * - pango_font_family_get_name (PangoFontFamily *family) - { - g_return_val_if_fail (PANGO_IS_FONT_FAMILY (family), NULL); -@@ -2060,7 +2060,7 @@ pango_font_face_is_synthesized (PangoFon - * Return value: the face name for the face. This string is - * owned by the face object and must not be modified or freed. - **/ --G_CONST_RETURN char * -+const char * - pango_font_face_get_face_name (PangoFontFace *face) - { - g_return_val_if_fail (PANGO_IS_FONT_FACE (face), NULL); -Index: pango-1.28.4/pango/pango-attributes.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-attributes.c -+++ pango-1.28.4/pango/pango-attributes.c -@@ -97,7 +97,7 @@ pango_attr_type_register (const gchar *n - * - * Since: 1.22 - **/ --G_CONST_RETURN char * -+const char * - pango_attr_type_get_name (PangoAttrType type) - { - const char *result = NULL; -Index: pango-1.28.4/pango/pango-attributes.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-attributes.h -+++ pango-1.28.4/pango/pango-attributes.h -@@ -180,7 +180,7 @@ struct _PangoAttrFontDesc - }; - - PangoAttrType pango_attr_type_register (const gchar *name); --G_CONST_RETURN char * pango_attr_type_get_name (PangoAttrType type) G_GNUC_CONST; -+const char * pango_attr_type_get_name (PangoAttrType type) G_GNUC_CONST; - - void pango_attribute_init (PangoAttribute *attr, - const PangoAttrClass *klass); -Index: pango-1.28.4/pango/pango-context.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-context.c -+++ pango-1.28.4/pango/pango-context.c -@@ -188,7 +188,7 @@ pango_context_set_matrix (PangoContext - * - * Since: 1.6 - **/ --G_CONST_RETURN PangoMatrix * -+const PangoMatrix * - pango_context_get_matrix (PangoContext *context) - { - g_return_val_if_fail (PANGO_IS_CONTEXT (context), NULL); -Index: pango-1.28.4/pango/pango-context.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-context.h -+++ pango-1.28.4/pango/pango-context.h -@@ -84,9 +84,9 @@ void pango_context_ - PangoGravityHint hint); - PangoGravityHint pango_context_get_gravity_hint (PangoContext *context); - --void pango_context_set_matrix (PangoContext *context, -- const PangoMatrix *matrix); --G_CONST_RETURN PangoMatrix *pango_context_get_matrix (PangoContext *context); -+void pango_context_set_matrix (PangoContext *context, -+ const PangoMatrix *matrix); -+const PangoMatrix * pango_context_get_matrix (PangoContext *context); - - /* Break a string of Unicode characters into segments with - * consistent shaping/language engine and bidrectional level. -Index: pango-1.28.4/pango/pango-font.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-font.h -+++ pango-1.28.4/pango/pango-font.h -@@ -117,7 +117,7 @@ void pango_font_descript - const char *family); - void pango_font_description_set_family_static (PangoFontDescription *desc, - const char *family); --G_CONST_RETURN char *pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE; -+const char *pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE; - void pango_font_description_set_style (PangoFontDescription *desc, - PangoStyle style); - PangoStyle pango_font_description_get_style (const PangoFontDescription *desc) G_GNUC_PURE; -@@ -212,7 +212,7 @@ GType pango_font_family_get_type - void pango_font_family_list_faces (PangoFontFamily *family, - PangoFontFace ***faces, - int *n_faces); --G_CONST_RETURN char *pango_font_family_get_name (PangoFontFamily *family) G_GNUC_PURE; -+const char *pango_font_family_get_name (PangoFontFamily *family) G_GNUC_PURE; - gboolean pango_font_family_is_monospace (PangoFontFamily *family) G_GNUC_PURE; - - #ifdef PANGO_ENABLE_BACKEND -@@ -261,7 +261,7 @@ struct _PangoFontFamilyClass - GType pango_font_face_get_type (void) G_GNUC_CONST; - - PangoFontDescription *pango_font_face_describe (PangoFontFace *face); --G_CONST_RETURN char *pango_font_face_get_face_name (PangoFontFace *face) G_GNUC_PURE; -+const char *pango_font_face_get_face_name (PangoFontFace *face) G_GNUC_PURE; - void pango_font_face_list_sizes (PangoFontFace *face, - int **sizes, - int *n_sizes); -Index: pango-1.28.4/pango/pango-fontmap.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-fontmap.c -+++ pango-1.28.4/pango/pango-fontmap.c -@@ -290,7 +290,7 @@ pango_font_map_real_load_fontset (PangoF - * - * Since: 1.4 - **/ --G_CONST_RETURN char * -+const char * - pango_font_map_get_shape_engine_type (PangoFontMap *fontmap) - { - g_return_val_if_fail (PANGO_IS_FONT_MAP (fontmap), NULL); -Index: pango-1.28.4/pango/pango-language.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-language.c -+++ pango-1.28.4/pango/pango-language.c -@@ -319,7 +319,7 @@ pango_language_from_string (const char * - * Returns: a string representing the language tag. This is owned by - * Pango and should not be freed. - */ --G_CONST_RETURN char * -+const char * - (pango_language_to_string) (PangoLanguage *language) - { - return pango_language_to_string (language); -@@ -531,7 +531,7 @@ static const LangInfo lang_texts[] = { - * Return value: the sample string. This value is owned by Pango - * and should not be freed. - **/ --G_CONST_RETURN char * -+const char * - pango_language_get_sample_string (PangoLanguage *language) - { - const LangInfo *lang_info; -@@ -592,7 +592,7 @@ pango_language_get_sample_string (PangoL - - * Since: 1.22 - **/ --G_CONST_RETURN PangoScript * -+const PangoScript * - pango_language_get_scripts (PangoLanguage *language, - int *num_scripts) - { -Index: pango-1.28.4/pango/pango-language.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-language.h -+++ pango-1.28.4/pango/pango-language.h -@@ -34,11 +34,11 @@ typedef struct _PangoLanguage PangoLangu - GType pango_language_get_type (void) G_GNUC_CONST; - PangoLanguage *pango_language_from_string (const char *language); - --G_CONST_RETURN char *pango_language_to_string (PangoLanguage *language) G_GNUC_CONST; -+const char *pango_language_to_string (PangoLanguage *language) G_GNUC_CONST; - /* For back compat. Will have to keep indefinitely. */ - #define pango_language_to_string(language) ((const char *)language) - --G_CONST_RETURN char *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST; -+const char *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST; - PangoLanguage *pango_language_get_default (void) G_GNUC_CONST; - - gboolean pango_language_matches (PangoLanguage *language, -@@ -48,7 +48,7 @@ gboolean pango_language_matches (P - - gboolean pango_language_includes_script (PangoLanguage *language, - PangoScript script) G_GNUC_PURE; --G_CONST_RETURN PangoScript *pango_language_get_scripts (PangoLanguage *language, -+const PangoScript *pango_language_get_scripts (PangoLanguage *language, - int *num_scripts); - - G_END_DECLS -Index: pango-1.28.4/pango/pango-layout.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-layout.c -+++ pango-1.28.4/pango/pango-layout.c -@@ -677,7 +677,7 @@ pango_layout_set_font_description (Pango - * - * Since: 1.8 - **/ --G_CONST_RETURN PangoFontDescription * -+const PangoFontDescription * - pango_layout_get_font_description (PangoLayout *layout) - { - g_return_val_if_fail (PANGO_IS_LAYOUT (layout), NULL); -@@ -1087,7 +1087,7 @@ pango_layout_set_text (PangoLayout *layo - * - * Return value: the text in the @layout. - **/ --G_CONST_RETURN char* -+const char* - pango_layout_get_text (PangoLayout *layout) - { - g_return_val_if_fail (PANGO_IS_LAYOUT (layout), NULL); -Index: pango-1.28.4/pango/pango-layout.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-layout.h -+++ pango-1.28.4/pango/pango-layout.h -@@ -116,7 +116,7 @@ void pango_layout_set_markup_w - void pango_layout_set_font_description (PangoLayout *layout, - const PangoFontDescription *desc); - --G_CONST_RETURN PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout); -+const PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout); - - void pango_layout_set_width (PangoLayout *layout, - int width); -Index: pango-1.28.4/pango/pango-ot-ruleset.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-ot-ruleset.c -+++ pango-1.28.4/pango/pango-ot-ruleset.c -@@ -107,7 +107,7 @@ pango_ot_ruleset_finalize (GObject *obje - * - * Since: 1.18 - **/ --G_CONST_RETURN PangoOTRuleset * -+const PangoOTRuleset * - pango_ot_ruleset_get_for_description (PangoOTInfo *info, - const PangoOTRulesetDescription *desc) - { -Index: pango-1.28.4/pango/pango-renderer.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-renderer.c -+++ pango-1.28.4/pango/pango-renderer.c -@@ -1352,7 +1352,7 @@ pango_renderer_set_matrix (PangoRenderer - * - * Since: 1.8 - **/ --G_CONST_RETURN PangoMatrix * -+const PangoMatrix * - pango_renderer_get_matrix (PangoRenderer *renderer) - { - g_return_val_if_fail (PANGO_IS_RENDERER (renderer), NULL); -Index: pango-1.28.4/pango/pango-renderer.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-renderer.h -+++ pango-1.28.4/pango/pango-renderer.h -@@ -249,7 +249,7 @@ PangoColor *pango_renderer_get_color (Pa - - void pango_renderer_set_matrix (PangoRenderer *renderer, - const PangoMatrix *matrix); --G_CONST_RETURN PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer); -+const PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer); - - PangoLayout *pango_renderer_get_layout (PangoRenderer *renderer); - PangoLayoutLine *pango_renderer_get_layout_line (PangoRenderer *renderer); -Index: pango-1.28.4/pango/pango-script.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-script.c -+++ pango-1.28.4/pango/pango-script.c -@@ -164,10 +164,10 @@ pango_script_iter_free (PangoScriptIter - * Since: 1.4 - **/ - void --pango_script_iter_get_range (PangoScriptIter *iter, -- G_CONST_RETURN char **start, -- G_CONST_RETURN char **end, -- PangoScript *script) -+pango_script_iter_get_range (PangoScriptIter *iter, -+ const char **start, -+ const char **end, -+ PangoScript *script) - { - if (start) - *start = iter->script_start; -Index: pango-1.28.4/pango/pango-script.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-script.h -+++ pango-1.28.4/pango/pango-script.h -@@ -128,12 +128,12 @@ PangoScript pango_script_for_unichar - - PangoScriptIter *pango_script_iter_new (const char *text, - int length); --void pango_script_iter_get_range (PangoScriptIter *iter, -- G_CONST_RETURN char **start, -- G_CONST_RETURN char **end, -- PangoScript *script); --gboolean pango_script_iter_next (PangoScriptIter *iter); --void pango_script_iter_free (PangoScriptIter *iter); -+void pango_script_iter_get_range (PangoScriptIter *iter, -+ const char **start, -+ const char **end, -+ PangoScript *script); -+gboolean pango_script_iter_next (PangoScriptIter *iter); -+void pango_script_iter_free (PangoScriptIter *iter); - - #include - -Index: pango-1.28.4/pango/pango-utils.c -=================================================================== ---- pango-1.28.4.orig/pango/pango-utils.c -+++ pango-1.28.4/pango/pango-utils.c -@@ -689,7 +689,7 @@ DllMain (HINSTANCE hinstDLL, - * Return value: the Pango sysconf directory. The returned string should - * not be freed. - */ --G_CONST_RETURN char * -+const char * - pango_get_sysconf_subdirectory (void) - { - #ifdef G_OS_WIN32 -@@ -718,7 +718,7 @@ pango_get_sysconf_subdirectory (void) - * Return value: the Pango lib directory. The returned string should - * not be freed. - */ --G_CONST_RETURN char * -+const char * - pango_get_lib_subdirectory (void) - { - #ifdef G_OS_WIN32 -Index: pango-1.28.4/pango/pango-utils.h -=================================================================== ---- pango-1.28.4.orig/pango/pango-utils.h -+++ pango-1.28.4/pango/pango-utils.h -@@ -82,13 +82,13 @@ gboolean pango_parse_stretch (const char - * stored in the registry). The returned string should not be - * g_free'd. - */ --G_CONST_RETURN char * pango_get_sysconf_subdirectory (void) G_GNUC_PURE; -+const char * pango_get_sysconf_subdirectory (void) G_GNUC_PURE; - - /* Ditto for LIBDIR/pango. On Win32, use the same Pango - * installation directory. This returned string should not be - * g_free'd either. - */ --G_CONST_RETURN char * pango_get_lib_subdirectory (void) G_GNUC_PURE; -+const char * pango_get_lib_subdirectory (void) G_GNUC_PURE; - - #endif /* PANGO_ENABLE_BACKEND */ - -@@ -131,12 +131,12 @@ gboolean pango_is_zero_width (gunichar c - int pango_version (void) G_GNUC_CONST; - - /* Return run-time Pango version as an string */ --G_CONST_RETURN char * pango_version_string (void) G_GNUC_CONST; -+const char * pango_version_string (void) G_GNUC_CONST; - - /* Check that run-time Pango is as new as required */ --G_CONST_RETURN char * pango_version_check (int required_major, -- int required_minor, -- int required_micro) G_GNUC_CONST; -+const char * pango_version_check (int required_major, -+ int required_minor, -+ int required_micro) G_GNUC_CONST; - - G_END_DECLS - -Index: pango-1.28.4/pango/pangocairo-context.c -=================================================================== ---- pango-1.28.4.orig/pango/pangocairo-context.c -+++ pango-1.28.4/pango/pangocairo-context.c -@@ -260,7 +260,7 @@ pango_cairo_context_set_font_options (Pa - * - * Since: 1.10 - **/ --G_CONST_RETURN cairo_font_options_t * -+const cairo_font_options_t * - pango_cairo_context_get_font_options (PangoContext *context) - { - PangoCairoContextInfo *info; -@@ -286,7 +286,7 @@ pango_cairo_context_get_font_options (Pa - * Return value: the combined set of font options. This value is owned - * by the context and must not be modified or freed. - **/ --G_CONST_RETURN cairo_font_options_t * -+const cairo_font_options_t * - _pango_cairo_context_get_merged_font_options (PangoContext *context) - { - PangoCairoContextInfo *info = get_context_info (context, TRUE); -Index: pango-1.28.4/pango/pangoft2.c -=================================================================== ---- pango-1.28.4.orig/pango/pangoft2.c -+++ pango-1.28.4/pango/pangoft2.c -@@ -520,7 +520,7 @@ ft_error_compare (const void *pkey, - return ((ft_error_description *) pkey)->code - ((ft_error_description *) pbase)->code; - } - --G_CONST_RETURN char * -+const char * - _pango_ft2_ft_strerror (FT_Error error) - { - #undef __FTERRORS_H__ -Index: pango-1.28.4/pango/pangox-fontmap.c -=================================================================== ---- pango-1.28.4.orig/pango/pangox-fontmap.c -+++ pango-1.28.4/pango/pangox-fontmap.c -@@ -1441,7 +1441,7 @@ pango_x_fontmap_atom_from_name (PangoFon - } - - --G_CONST_RETURN char * -+const char * - pango_x_fontmap_name_from_atom (PangoFontMap *fontmap, - Atom atom) - { -@@ -1645,7 +1645,7 @@ pango_x_family_list_faces (PangoFontFami - } - } - --static G_CONST_RETURN char * -+static const char * - pango_x_family_get_name (PangoFontFamily *family) - { - PangoXFamily *xfamily = PANGO_X_FAMILY (family); diff --git a/pango.changes b/pango.changes index efbfb63..08227f0 100644 --- a/pango.changes +++ b/pango.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Jun 17 00:41:31 CEST 2011 - vuntz@opensuse.org + +- Update to version 1.29.3: + + Minor fix in 1.29.1 tarball +- Changes from version 1.29.1: + + Lots of introspection markup added + + Misc fixes +- Drop pango-no-G_CONST_RETURN.patch: fixed upstream. + ------------------------------------------------------------------- Thu Jun 16 17:10:32 CEST 2011 - vuntz@opensuse.org diff --git a/pango.spec b/pango.spec index 61668d6..ba55a83 100644 --- a/pango.spec +++ b/pango.spec @@ -22,7 +22,7 @@ Name: pango License: LGPLv2.1+ Group: System/Libraries -Version: 1.28.4 +Version: 1.29.3 Release: 1 Summary: Library for Layout and Rendering of Text Url: http://www.pango.org/ @@ -32,8 +32,6 @@ Source2: macros.pango Source99: baselibs.conf # PATCH-FIX-UPSTREAM pango64.patch bgo129534 -- needed for biarch. Unfortunately, this is not good enough for usptream. Patch0: pango64.patch -# PATCH-FIX-UPSTREAM pango-no-G_CONST_RETURN.patch bgo#644611 dimstar@opensuse.org -- Do not use G_CONST_RETURN, taken from upstream git. -Patch1: pango-no-G_CONST_RETURN.patch BuildRequires: gcc-c++ BuildRequires: gtk-doc BuildRequires: pkg-config @@ -129,7 +127,6 @@ to develop applications that require these. cp -a %{S:1} . %patch0 -p0 %endif -%patch1 -p1 %build %configure --disable-static --with-pic