devel/p5-Glib: fix runtime with Perl 5.40

PR:	286804 (maintainer timeout)
This commit is contained in:
Mathieu Arnold
2025-06-01 21:29:12 +02:00
parent f07d03c986
commit 0708344221
2 changed files with 15 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
PORTNAME= Glib
PORTVERSION= 1.3294
PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN \
SF/gtk2-perl/Glib/${PORTVERSION}

View File

@@ -0,0 +1,14 @@
Fix runtime starting with Perl 5.40 by adding back Perl's ccflqgs to Glib's
ccflags when building.
--- Makefile.PL.orig 2025-05-17 07:25:21 UTC
+++ Makefile.PL
@@ -183,7 +183,7 @@ our $glib = ExtUtils::Depends->new ('Glib');
# add -I. and -I./build to the include path so we can find our own files.
# this will be inherited by dependant modules, so they can find their
# generated files.
-$glib->set_inc (' -I. ' . $glibcfg{cflags} . ' ' . $gthreadcfg{cflags});
+$glib->set_inc (' -I. ' . $glibcfg{cflags} . ' ' . $gthreadcfg{cflags} . ' ' . $Config::Config{ccflags});
$glib->set_libs ($glibcfg{libs} . ' ' . $gthreadcfg{libs});
my $cwd = cwd();
$glib->add_typemaps (map {File::Spec->catfile($cwd,$_)} 'typemap');