Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767883 - =dev-perl/GooCanvas2-0.60.0: should RDEPEND on x11-libs/goocanvas:2.0[introspection]
Summary: =dev-perl/GooCanvas2-0.60.0: should RDEPEND on x11-libs/goocanvas:2.0[introsp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-01-29 18:19 UTC by Petr Pisar
Modified: 2021-05-08 13:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2021-01-29 18:19:07 UTC
If x11-libs/goocanvas-2.0.4-r1 is built without "introspection" use flag, executing gscan2pdf program from media-gfx/gscan2pdf-2.10.2 fails:

$ gscan2pdf 
Typelib file for namespace 'GooCanvas', version '2.0' not found at /usr/lib64/perl5/vendor_perl/5.32.0/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 108.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.32.0/Gscan2pdf/Dialog/Scan.pm line 12.
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.32.0/Gscan2pdf/Dialog/Scan/CLI.pm line 8.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.32.0/Gscan2pdf/Dialog/Scan/CLI.pm line 8.
Compilation failed in require at /usr/bin/gscan2pdf line 58.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 58.

That's because =dev-perl/GooCanvas2-0.60.0 is missing the introspection flag at x11-libs/goocanvas:2 atom in RDEPENDS. The introspection is obvious from a description of dev-perl/GooCanvas2 ("Perl binding for GooCanvas2 widget using Glib::Object::Introspection").

Proposed fix:

--- /var/db/repos/gentoo/dev-perl/GooCanvas2/GooCanvas2-0.60.0.ebuild   2019-12-11 00:41:52.000000000 +0100
+++ GooCanvas2-0.60.0.ebuild    2021-01-29 19:05:20.994724758 +0100
@@ -14,7 +14,7 @@
 RESTRICT="!test? ( test )"
 
 RDEPEND="
-       x11-libs/goocanvas:2.0
+       x11-libs/goocanvas:2.0[introspection]
        dev-perl/Gtk3
 "
 DEPEND="${RDEPEND}
Comment 1 Ionen Wolkens gentoo-dev 2021-01-31 03:48:22 UTC
Could reproduce with a simple test.pl that only "use GooCanvas2;" if gooconvas[-introspection]
Comment 2 Larry the Git Cow gentoo-dev 2021-05-08 13:03:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a344440d3ed4874975a510d6487cc3b099b476af

commit a344440d3ed4874975a510d6487cc3b099b476af
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2021-05-08 12:19:44 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2021-05-08 13:03:06 +0000

    dev-perl/GooCanvas2: Fix goocanvas dependency, bug 767883
    
    Closes: https://bugs.gentoo.org/767883
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../{GooCanvas2-0.60.0.ebuild => GooCanvas2-0.60.0-r1.ebuild} | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)