Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 564536

Summary: dev-perl/Pango-1.224.0 won't compile because of deprecated pango_cairo_font_map_create_context call
Product: Gentoo Linux Reporter: Uros <infinity80>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for deprecated pango_cairo_font_map_create_context

Description Uros 2015-10-31 06:28:27 UTC
Created attachment 415782 [details]
Patch for deprecated pango_cairo_font_map_create_context

While trying to install dev-perl/Pango, compiling failed with error:

[ CC xs/PangoLayout.c ]
xs/PangoCairo.xs: In function ‘XS_Pango__Cairo__FontMap_create_context’:
xs/PangoCairo.xs:73:2: warning: ‘pango_cairo_font_map_create_context’ is deprecated (declared at /usr/include/pango-1.0/pango/pangocairo.h:93): Use 'pango_font_map_create_context' instead [-Wdeprecated-declarations]
  context = pango_cairo_font_map_create_context (fontmap);
  ^

Solution was to use patch found at https://mail.gnome.org/archives/gtk-perl-list/2015-October/msg00006.html, also attached here.
Comment 1 Uros 2015-10-31 06:33:47 UTC
Installing dev-perl/Pango failed with error:

[ CC xs/PangoLayout.c ]
xs/PangoCairo.xs: In function ‘XS_Pango__Cairo__FontMap_create_context’:
xs/PangoCairo.xs:73:2: warning: ‘pango_cairo_font_map_create_context’ is deprecated (declared at /usr/include/pango-1.0/pango/pangocairo.h:93): Use 'pango_font_map_create_context' instead [-Wdeprecated-declarations]
  context = pango_cairo_font_map_create_context (fontmap);
  ^

Attached patch for deprecated call.
Comment 2 Patrice Clement (RETIRED) gentoo-dev 2015-11-03 20:01:44 UTC

*** This bug has been marked as a duplicate of bug 562216 ***