From 6f1053225839f8280c08898345cf71cf38fdc698 Mon Sep 17 00:00:00 2001 From: Esaaprilia Salsabila Date: Thu, 18 Jul 2024 23:31:15 +0800 Subject: [PATCH] perl: fix Segmentation fault Signed-off-by: Esaaprilia Salsabila --- lang/perl/Makefile | 2 +- lang/perl/files/base.config | 3 --- lang/perl/files/libc.config | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 2d1bcc24c1ad56..441cac5cdc48dd 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=https://www.cpan.org/src/5.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/lang/perl/files/base.config b/lang/perl/files/base.config index 5a9294477febec..67232b6d83e705 100644 --- a/lang/perl/files/base.config +++ b/lang/perl/files/base.config @@ -378,9 +378,6 @@ d_open3='define' d_openat='define' d_pathconf='define' d_pause='define' -d_perl_lc_all_category_positions_init='undef' -d_perl_lc_all_separator='undef' -d_perl_lc_all_uses_name_value_pairs='define' d_perl_otherlibdirs='undef' d_phostname='undef' d_pipe='define' diff --git a/lang/perl/files/libc.config b/lang/perl/files/libc.config index 1b198981a96f15..f3607c4effd946 100644 --- a/lang/perl/files/libc.config +++ b/lang/perl/files/libc.config @@ -1,6 +1,13 @@ ($owrt:libc eq 'glibc') { perllibs="$perllibs -lbsd" ldflags="$ldflags -L$owrt:staging_dir/lib" + + d_perl_lc_all_category_positions_init='undef' + d_perl_lc_all_separator='undef' + d_perl_lc_all_uses_name_value_pairs='define' + + perl_lc_all_category_positions_init='' + perl_lc_all_separator='' } # uclibc does not provide crypt_r(). @@ -40,4 +47,11 @@ i_fcntl='define' h_fcntl='true' d_strerror_r='undef' + + d_perl_lc_all_category_positions_init='define' + d_perl_lc_all_separator='undef' + d_perl_lc_all_uses_name_value_pairs='undef' + + perl_lc_all_category_positions_init='{ 0, 1, 5, 2, 3, 4 }' + perl_lc_all_separator='' }