[perl-Glib] perl-5.26.0 compatibility
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib] perl-5.26.0 compatibility
- Date: Mon, 3 Apr 2017 13:49:25 +0000 (UTC)
commit 249475ee36b11185514e1adf5dd2bbf36e56209f
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Mon Apr 3 15:48:15 2017 +0200
perl-5.26.0 compatibility
Perl 5.26.0 will no longer include '.' in @INC by default, so adjust all
'require' statements that made this assumption.
Makefile.PL | 6 +++---
apidoc.pl | 2 +-
lib/Glib/GenPod.pm | 2 +-
lib/Glib/MakeHelper.pm | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index e042192..59cbafe 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -48,7 +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.
-require 'lib/Glib/MakeHelper.pm';
+require './lib/Glib/MakeHelper.pm';
mkdir 'build', 0777;
@@ -195,7 +195,7 @@ $glib->save_config ('build/IFiles.pm');
# exports list needed for win32, unused on others
our @exports;
-require 'Glib.exports';
+require './Glib.exports';
# On OpenBSD, any program that directly or indirectly wants to load
# libpthread.so must do so from the start. But when perl is built without
@@ -257,7 +257,7 @@ __EOW__
# rule to build the documentation
sub MY::postamble
{
- require 'lib/Glib/MakeHelper.pm';
+ require './lib/Glib/MakeHelper.pm';
# $glib will be undefined if any of our dependencies couldn't be found;
# don't do anything in this case.
return unless defined $glib;
diff --git a/apidoc.pl b/apidoc.pl
index d24b4b0..4bdefae 100644
--- a/apidoc.pl
+++ b/apidoc.pl
@@ -10,7 +10,7 @@ die "usage: $0 header footer xsfiles...\n"
# load the data from xsdocparse... predeclare its vars to keep perl
# happy about "possible typo" warnings.
our ($xspods, $data);
-require $data;
+require "./$data";
$/ = undef;
diff --git a/lib/Glib/GenPod.pm b/lib/Glib/GenPod.pm
index dc3257b..94c2387 100644
--- a/lib/Glib/GenPod.pm
+++ b/lib/Glib/GenPod.pm
@@ -244,7 +244,7 @@ sub xsdoc2pod
die "usage: $0 datafile [outdir]\n"
unless defined $datafile;
- require $datafile;
+ require "./$datafile";
my @files = ();
diff --git a/lib/Glib/MakeHelper.pm b/lib/Glib/MakeHelper.pm
index 61c1e62..386b717 100644
--- a/lib/Glib/MakeHelper.pm
+++ b/lib/Glib/MakeHelper.pm
@@ -65,7 +65,7 @@ sub do_pod_files
# try to get it from pwd first, then fall back to installed
# this is so Glib will get associated copy, and everyone else
# should use the installed glib copy
- eval { require 'lib/Glib/ParseXSDoc.pm'; 1; } or require Glib::ParseXSDoc;
+ eval { require './lib/Glib/ParseXSDoc.pm'; 1; } or require Glib::ParseXSDoc;
$@ = undef;
import Glib::ParseXSDoc;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]