Browse Source

Merge pull request #5504 from pprindeville/perl-cleanup

perlmod: avoid 'do' semantics and just concatenate
lilik-openwrt-22.03
Philip Prindeville 7 years ago
committed by GitHub
parent
commit
cda0e18b27
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 14 deletions
  1. +0
    -8
      lang/perl-inline-c/patches/010-makefile_pl-dont-eval-undef.patch
  2. +1
    -1
      lang/perl/Makefile
  3. +6
    -5
      lang/perl/perlmod.mk

+ 0
- 8
lang/perl-inline-c/patches/010-makefile_pl-dont-eval-undef.patch View File

@ -1,8 +0,0 @@
--- a/Makefile.PL 2017-05-30 14:58:53.000000000 -0600
+++ b/Makefile.PL 2017-11-07 13:40:05.172119764 -0700
@@ -82,3 +82,5 @@ package
MY;
use File::ShareDir::Install qw(postamble);
}
+
+1;

+ 1
- 1
lang/perl/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=perl
PKG_VERSION:=5.26.1
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE_URL:=\
https://cpan.metacpan.org/src/5.0 \


+ 6
- 5
lang/perl/perlmod.mk View File

@ -55,9 +55,10 @@ endef
define perlmod/Configure
(cd $(if $(3),$(3),$(PKG_BUILD_DIR)); \
PERL_MM_USE_DEFAULT=1 \
$(2) \
$(PERL_CMD) -MConfig -e '$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E"; unshift(@INC, "."); unless (defined (do "./Makefile.PL")) { if ($$$$@) { die "couldn\047t parse Makefile.PL: $$$$@"; } elsif ($$$$!) { die "Could\047t run Makefile.PL: $$$$!"; } }; die "No Makefile generated!" unless -f "Makefile";' \
(echo -e 'use Config;\n\n$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E";\n' ; cat Makefile.PL) | \
PERL_MM_USE_DEFAULT=1 \
$(2) \
$(PERL_CMD) -I. -- - \
$(1) \
AR=ar \
CC=$(GNU_TARGET_NAME)-gcc \
@ -103,8 +104,8 @@ define perlmod/Configure
INSTALLVENDORMAN3DIR=" " \
LINKTYPE=dynamic \
DESTDIR=$(PKG_INSTALL_DIR) \
);
sed 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/$(PERL_VERSION)/CORE/!' -i $(if $(3),$(3),$(PKG_BUILD_DIR))/Makefile
)
sed -i -e 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/$(PERL_VERSION)/CORE/!' $(if $(3),$(3),$(PKG_BUILD_DIR))/Makefile
endef
define perlmod/Compile


Loading…
Cancel
Save