Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562216 - dev-perl/Pango-1.224.0 fails to compile
Summary: dev-perl/Pango-1.224.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 562390 564536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-04 09:57 UTC by Markus Walter
Modified: 2016-03-06 07:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,6.23 KB, text/plain)
2015-10-04 09:57 UTC, Markus Walter
Details
build log (Pango-1.224.0:20151004-084627.log,4.59 KB, text/plain)
2015-10-04 09:57 UTC, Markus Walter
Details
Pango-1.226-linking.patch (Pango-1.226-linking.patch,217 bytes, patch)
2015-10-21 21:33 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2015-10-04 09:57:04 UTC
Created attachment 413688 [details]
emerge --info

On my hardened ~amd64 machine with gcc-5.2.0 I see the following a bit misterious error. Please advise on how to proceed.

chmod 755 blib/arch/auto/Pango/Pango.so
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pango.bs blib/arch/auto/Pango/Pango.bs 644
Generating POD...
Can't load 'blib/arch/auto/Pango/Pango.so' for module Pango: blib/arch/auto/Pango/Pango.so: undefined symbol: pango_cairo_update_layout at /usr/lib64/perl5/5.22.0/x86_64-linux/DynaLoader.pm line 193.
 at -e line 0.
Compilation failed in require.
Comment 1 Markus Walter 2015-10-04 09:57:32 UTC
Created attachment 413690 [details]
build log
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2015-10-06 12:10:16 UTC
*** Bug 562390 has been marked as a duplicate of this bug. ***
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-10-14 19:52:46 UTC
This is due to recent pkg-config no longer adding spaces around libs, and Makefile.PL just appending the new libraries, resulting in
-lglib-2.0-lpangocairo-1.0
instead of 
-lglib-2.0 -lpangocairo-1.0
as argument.

This patch should fix the issue:
https://github.com/voidlinux/void-packages/blob/master/srcpkgs/perl-Pango/patches/fix-pangocairo_libs.patch
Comment 4 tman 2015-10-19 20:09:47 UTC
i add(In reply to Chí-Thanh Christopher Nguyễn from comment #3)
> This is due to recent pkg-config no longer adding spaces around libs, and
> Makefile.PL just appending the new libraries, resulting in
> -lglib-2.0-lpangocairo-1.0
> instead of 
> -lglib-2.0 -lpangocairo-1.0
> as argument.
> 
> This patch should fix the issue:
> https://github.com/voidlinux/void-packages/blob/master/srcpkgs/perl-Pango/
> patches/fix-pangocairo_libs.patch

i added this to: 

 Pango # pwd
/etc/portage/patches/dev-perl/Pango


why does not patch?
Comment 5 tman 2015-10-20 06:49:29 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #3)
> This is due to recent pkg-config no longer adding spaces around libs, and
> Makefile.PL just appending the new libraries, resulting in
> -lglib-2.0-lpangocairo-1.0
> instead of 
> -lglib-2.0 -lpangocairo-1.0
> as argument.
> 
> This patch should fix the issue:
> https://github.com/voidlinux/void-packages/blob/master/srcpkgs/perl-Pango/
> patches/fix-pangocairo_libs.patch

emerge -1 gtk2-perl

 * IMPORTANT: 22 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) dev-perl/Pango-1.224.0::gentoo
 * Pango-1.224.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking Pango-1.224.tar.gz to /var/tmp/portage/dev-perl/Pango-1.224.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/Pango-1.224.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224 ...
 * Applying user patches from /etc/portage/patches//dev-perl/Pango-1.224.0 ...
 * Done with patching
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Pango-1.224.0/image/
Including generated API documentation...
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lglib-2.0-lpangocairo-1.0
Generating a Unix-style Makefile
Writing Makefile for Pango
Writing MYMETA.yml and MYMETA.json
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224 ...
 * emake OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed
make -j9 'OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed' 
Running Mkbootstrap for Pango ()
[ XS xs/PangoAttributes.xs ]
[ XS xs/Pango.xs ]
[ XS xs/PangoContext.xs ]
[ XS xs/PangoFont.xs ]
[ XS xs/PangoFontset.xs ]
[ XS xs/PangoFontMap.xs ]
[ XS xs/PangoLayout.xs ]
chmod 644 "Pango.bs"
[ XS xs/PangoRenderer.xs ]
cp pango-perl.h blib/arch/Pango/Install/pango-perl.h
cp /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224/pango.typemap blib/arch/Pango/Install/pango.typemap
cp build/pango-perl-versions.h blib/arch/Pango/Install/pango-perl-versions.h
cp /var/tmp/portage/dev-perl/Pango-1.224.0/work/Pango-1.224/build/pango-perl.typemap blib/arch/Pango/Install/pango-perl.typemap
cp build/IFiles.pm blib/arch/Pango/Install/Files.pm
cp doctypes blib/arch/Pango/Install/doctypes
cp lib/Pango.pm blib/lib/Pango.pm
cp build/pango-perl-autogen.h blib/arch/Pango/Install/pango-perl-autogen.h
[ XS xs/PangoScript.xs ]
[ XS xs/PangoTabs.xs ]
[ XS xs/PangoTypes.xs ]
[ XS xs/PangoCairo.xs ]
[ XS xs/PangoGravity.xs ]
[ XS xs/PangoMatrix.xs ]
"/usr/bin/perl" -MExtUtils::Command -e mkpath blib/lib/Pango/
Parsing XS files...
[ CC xs/PangoAttributes.c ]
[ CC xs/Pango.c ]
[ CC xs/PangoContext.c ]
[ CC xs/PangoFont.c ]
[ CC xs/PangoFontset.c ]
[ CC xs/PangoFontMap.c ]
[ CC xs/PangoLayout.c ]
[ CC xs/PangoRenderer.c ]
[ CC xs/PangoScript.c ]
[ CC xs/PangoTabs.c ]
[ CC xs/PangoTypes.c ]
[ CC xs/PangoGravity.c ]
[ CC xs/PangoMatrix.c ]
[ CC xs/PangoCairo.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);
  ^
rm -f blib/arch/auto/Pango/Pango.so
[ LD blib/arch/auto/Pango/Pango.so ]
chmod 755 blib/arch/auto/Pango/Pango.so
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pango.bs blib/arch/auto/Pango/Pango.bs 644
Generating POD...
/usr/bin/perl: symbol lookup error: blib/arch/auto/Pango/Pango.so: undefined symbol: pango_cairo_font_map_get_type
Makefile:1385: recipe for target 'build/podindex' failed
make: *** [build/podindex] Error 127
 * ERROR: dev-perl/Pango-1.224.0::gentoo failed (compile phase):
 *   emake failed
 *
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-10-21 21:33:01 UTC
Created attachment 415128 [details, diff]
Pango-1.226-linking.patch

This patch fixes the problem. AFAIK this is what upstream added to the code.
Comment 7 Patrice Clement gentoo-dev 2015-10-23 15:03:37 UTC
I can't reproduce that $!@# bug. I did install gcc 5.2.0 and switched it on and still, compilation+installation go through fine. :| Should I add the patch nonetheless?
Comment 8 Markus Walter 2015-10-23 15:14:38 UTC
(In reply to Patrice Clement from comment #7)
> I can't reproduce that $!@# bug. I did install gcc 5.2.0 and switched it on
> and still, compilation+installation go through fine. :| Should I add the
> patch nonetheless?

chithanh stated above (comment 3), that this is related to pkgconfig. The patch by polynomial-c solved the problem for me. I used dev-util/pkgconfig-0.29.
Comment 9 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2015-10-23 16:54:31 UTC
(In reply to Markus Oehme from comment #8)
> 
> chithanh stated above (comment 3), that this is related to pkgconfig. The
> patch by polynomial-c solved the problem for me. I used
> dev-util/pkgconfig-0.29.

same fix here, same version
thanks
Comment 10 Pacho Ramos gentoo-dev 2015-10-27 18:48:10 UTC
I have just hit this in stable... and patch from comment #6 works, could it be included please?

Thanks
Comment 11 Patrice Clement gentoo-dev 2015-10-28 20:51:45 UTC
commit c0020a7 (HEAD, master)
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Wed Oct 28 20:49:20 2015 +0000

    dev-perl/Pango: Add patch preventing failure at compile time. Fixes bug 562216.
    
    Package-Manager: portage-2.2.20.1
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

 create mode 100644 dev-perl/Pango/Pango-1.224.0-r1.ebuild
 create mode 100644 dev-perl/Pango/files/Pango-1.224.0-linking.patch

As usual, give it a go and report back. Thank you.
Comment 12 Pacho Ramos gentoo-dev 2015-10-28 21:45:20 UTC
It works but... why was it added with a revbump? It's only a build time fix, right? Well, if the revbump is kept, it should be fast stabilized

Thanks
Comment 13 Patrice Clement gentoo-dev 2015-11-03 20:01:44 UTC
*** Bug 564536 has been marked as a duplicate of this bug. ***