Skip Menu |

This queue is for tickets about the Glib CPAN distribution.

Report information
The Basics
Id: 120886
Status: resolved
Priority: 0/
Queue: Glib

People
Owner: XAOC [...] cpan.org
Requestors: jkeenan [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Glib: Makefile.PL fails on perl 5 blead: no-dot-by-default-in-INC
/home/jkeenan/testing/blead/bin/perl -v |head -2 | tail -1 This is perl 5, version 26, subversion 0 (v5.26.0 (v5.25.11-27-g1b92e69)) built for x86_64-linux $ /home/jkeenan/testing/blead/bin/perl -I /home/jkeenan/testing/blead/lib Makefile.PL Can't locate lib/Glib/MakeHelper.pm in @INC (you may need to install the lib::Glib::MakeHelper module) (@INC contains: /home/jkeenan/testing/blead/lib /home/jkeenan/testing/blead/lib/perl5/site_perl/5.26.0/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/site_perl/5.26.0 /home/jkeenan/testing/blead/lib/perl5/5.26.0/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/5.26.0) at Makefile.PL line 51. Will try to submit pull request. Thank you very much. Jim Keenan
On Sun Apr 02 14:06:22 2017, JKEENAN wrote: Show quoted text
> /home/jkeenan/testing/blead/bin/perl -v |head -2 | tail -1 > This is perl 5, version 26, subversion 0 (v5.26.0 (v5.25.11-27- > g1b92e69)) built for x86_64-linux > > $ /home/jkeenan/testing/blead/bin/perl -I > /home/jkeenan/testing/blead/lib Makefile.PL > Can't locate lib/Glib/MakeHelper.pm in @INC (you may need to install > the lib::Glib::MakeHelper module) (@INC contains: > /home/jkeenan/testing/blead/lib > /home/jkeenan/testing/blead/lib/perl5/site_perl/5.26.0/x86_64-linux > /home/jkeenan/testing/blead/lib/perl5/site_perl/5.26.0 > /home/jkeenan/testing/blead/lib/perl5/5.26.0/x86_64-linux > /home/jkeenan/testing/blead/lib/perl5/5.26.0) at Makefile.PL line 51. > > Will try to submit pull request. > > Thank you very much. > Jim Keenan
I don't understand how to get 'gobject-2.0.pc' installed, so I can't get 'perl Makefile.PL' to complete. So here is a not-fully-tested patch (attached).
Subject: Glib-0001-perl-5.26.0-compatibility.patch
From 802e7e8a44abf357c0e1812a5d6b95e0234677af Mon Sep 17 00:00:00 2001 From: James E Keenan <jkeenan@cpan.org> Date: Sun, 2 Apr 2017 14:12:41 -0400 Subject: [PATCH] perl-5.26.0 compatibility --- Makefile.PL | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.PL b/Makefile.PL index e042192..d3ab331 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -48,6 +48,7 @@ unless (eval "use ExtUtils::Depends '$PREREQ_PM{'ExtUtils::Depends'}';" # client modules may use Glib::MakeHelper -- he's not installed at this # point, so we have to require him directly. +use lib '.'; require 'lib/Glib/MakeHelper.pm'; mkdir 'build', 0777; -- 2.7.4
Thanks for the heads-up. I decided to adjust all 'require' statements instead of using the catch-all "use lib '.'" approach. Change committed. To get all system dependencies, you'd need to install a package named 'libglib-dev' or similar.
On Sun Apr 02 14:15:49 2017, JKEENAN wrote: Show quoted text
> I don't understand how to get 'gobject-2.0.pc' installed, so I can't > get 'perl Makefile.PL' to complete. So here is a not-fully-tested > patch (attached).
It depends on your distro or your source of GTK+ and friends (for Windows). Recent Debian-ish distros: sudo apt-get install libglib2.0-dev Recent Red Hat-ish distros: sudo apt-get install glib2-devel Recent tarballs for Windows: it should have come with the "libglib" tarball
Brian, can this issue be resolved?
On Sun Sep 23 13:33:00 2018, TSCH wrote: Show quoted text
> Brian, can this issue be resolved?
The code changes to resolve this issue were made in 249475ee as part of the preps for Perl 5.28.0. The original poster never replied back after the above commit was released as stable release 1.325. I'm not seeing the same problem in 5.26.0 on macOS and Linux, so I'm fine with setting the ticket status to "resolved" (which I've just done).