Skip to contentSkip to conversation

microperl: bump to version 5.12.4 and convert to gentargets

PATCH New Gustavo Zacarias 2 participants 2 messages Mar 7, 2012 – Mar 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microperl: bump to version 5.12.4 and convert to gentargets

* Convert microperl to gentargets infrastructure
* Bump to a more modern version 5.12.4
* Introduce the bundle options to simplify people's lives

host-microperl is a fully-fledged perl.

For the time being we can't build XS modules thus breaking target automake support for example since it requires IO.

target-automake was broken before anyway since the automake version bump.

---
 package/microperl/Config.in                        |   27 ++-
 .../microperl/microperl-no-signal-handlers.patch   |   22 ++
 package/microperl/microperl-uudmap.patch           |   47 ++++
 package/microperl/microperl.mk                     |  250 +++++++++++---------
 4 files changed, 228 insertions(+), 118 deletions(-)
 create mode 100644 package/microperl/microperl-no-signal-handlers.patch
 create mode 100644 package/microperl/microperl-uudmap.patch
package/microperl/Config.in +20 -7
index 82f964c..256e271 100644
@@ -3,12 +3,25 @@ config BR2_PACKAGE_MICROPERL
 	help
 	  Perl without operating-specific functions such as readdir.
 
+if BR2_PACKAGE_MICROPERL
+
 config BR2_PACKAGE_MICROPERL_MODULES
-	string "microperl modules"
-	default ""
-	depends on BR2_PACKAGE_MICROPERL
+	string "additional modules"
+	help
+	  List of space-separated microperl modules to copy to the rootfs.
+
+	  Examples: warnings.pm Getopt/Std.pm Time::Local
+
+	  Module dependencies are not automatic so check your needs.
+	  You can't use XS modules like IO.
+
+menu "module bundles"
+
+config BR2_PACKAGE_MICROPERL_BUNDLE_CGI
+	bool "CGI"
 	help
-	  List of microperl modules to copy to the rootfs.
-	  E.g.
-	  warnings.pm warnings/register.pm strict.pm constant.pm vars.pm
-	  Exporter.pm Exporter/Heavy.pm Carp.pm Getopt/Long.pm
+	  Copy required modules to do CGI scripting.
+
+endmenu
+
+endif
package/microperl/microperl-no-signal-handlers.patch new file +22 -0
new file mode 100644
index 0000000..3c9aa41
@@ -0,0 +1,22 @@
+Backport of http://perl5.git.perl.org/perl.git/commitdiff/01d65469392dfc0a?hp=a82b5f080d91ffe184d8ac4795ac71e72e612c2f
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+
+diff -Nura perl-5.12.3/miniperlmain.c perl-5.12.3-nosig/miniperlmain.c
+--- perl-5.12.3/miniperlmain.c	2011-01-09 17:20:57.000000000 -0300
++++ perl-5.12.3-nosig/miniperlmain.c	2011-04-14 10:16:53.564639438 -0300
+@@ -116,12 +116,14 @@
+     if (!exitstatus)
+         perl_run(my_perl);
+ 
++#ifndef PERL_MICRO
+     /* 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);
+ 	}
+     }
++#endif
+ 
+     exitstatus = perl_destruct(my_perl);
+ 
package/microperl/microperl-uudmap.patch new file +47 -0

47 lines not on this page · raw message

package/microperl/microperl.mk +139 -111

261 lines not on this page · raw message

Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 microperl: bump to version 5.12.4 and convert to gentargets

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> * Convert microperl to gentargets infrastructure Gustavo> * Bump to a more modern version 5.12.4 Gustavo> * Introduce the bundle options to simplify people's lives

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard