# HG changeset patch # User Christopher Rogers # Date 1286592798 0 # Node ID d9be1b1a5d961668bfd2b95f6f89085456fea944 # Parent 55448c722f2d968140f8aa6812440f5169765d3b Up: perl, perl-core, microperl to 5.12.2. Added patch for microperl to compile. Also microperl is now compile in perl receipt. diff -r 55448c722f2d -r d9be1b1a5d96 microperl/receipt --- a/microperl/receipt Fri Oct 08 23:49:12 2010 +0000 +++ b/microperl/receipt Sat Oct 09 02:53:18 2010 +0000 @@ -1,32 +1,12 @@ # SliTaz package receipt. PACKAGE="microperl" -VERSION="5.10.0" +VERSION="5.12.2" CATEGORY="development" SHORT_DESC="A micro version of Perl." MAINTAINER="pankso@slitaz.org" +WEB_SITE="http://www.perl.org/" WANTED="perl" -WEB_SITE="http://www.perl.org/" - -# Rules to configure and make the package. -# -# Microperl is a special package. We need to sed uconfig.sh and -# regenerate the Makefile.micro to modify the configuration. -# -compile_rules() -{ - cd $src - # Install in /usr (default is /usr/local). - sed -i s/'usr\/local'/'usr'/ uconfig.sh - # Sed to search mods in /usr/lib/perl5. - sed -i s/'perl5\/5.9'/'perl5'/ uconfig.sh - # Optimisation. - sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh - # Make it! - make -f Makefile.micro regen_uconfig && - make -f Makefile.micro && - strip microperl -} # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 55448c722f2d -r d9be1b1a5d96 perl-core/receipt --- a/perl-core/receipt Fri Oct 08 23:49:12 2010 +0000 +++ b/perl-core/receipt Sat Oct 09 02:53:18 2010 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="perl-core" -VERSION="5.10.0" +VERSION="5.12.2" CATEGORY="development" SHORT_DESC="Minimal Perl interpreter." MAINTAINER="erjo@slitaz.org" diff -r 55448c722f2d -r d9be1b1a5d96 perl/receipt --- a/perl/receipt Fri Oct 08 23:49:12 2010 +0000 +++ b/perl/receipt Sat Oct 09 02:53:18 2010 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="perl" -VERSION="5.10.0" +VERSION="5.12.2" CATEGORY="development" SHORT_DESC="Full Perl interpreter and modules." MAINTAINER="pankso@slitaz.org" @@ -19,6 +19,20 @@ ./configure.gnu --prefix=/usr && make -j 4 && make DESTDIR=$PWD/_pkg install + + # make microperl here + # patch to fix compiling microperl + patch -p0 -i ../stuff/miniperlmain.patch + # Install in /usr (default is /usr/local). + sed -i s/'usr\/local'/'usr'/ uconfig.sh + # Sed to search mods in /usr/lib/perl5. + sed -i s/'perl5\/5.12'/'perl5'/ uconfig.sh + # Optimisation. + sed -i s/'unknown'/'i486-pc-linux-gnu'/ uconfig.sh + # Make it! + make -f Makefile.micro regen_uconfig && + make -f Makefile.micro && + strip microperl } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 55448c722f2d -r d9be1b1a5d96 perl/stuff/miniperlmain.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl/stuff/miniperlmain.patch Sat Oct 09 02:53:18 2010 +0000 @@ -0,0 +1,16 @@ +--- miniperlmain.c.orig ++++ miniperlmain.c +@@ -117,13 +117,6 @@ + if (!exitstatus) + perl_run(my_perl); + +- /* Unregister our signal handler before destroying my_perl */ +- for (i = 0; PL_sig_name[i]; i++) { +- if (rsignal_state(PL_sig_num[i]) == (Sighandler_t) PL_csighandlerp) { +- rsignal(PL_sig_num[i], (Sighandler_t) SIG_DFL); +- } +- } +- + exitstatus = perl_destruct(my_perl); + + perl_free(my_perl);