Commit Graph

30 Commits

Author SHA1 Message Date
Thomas Petazzoni
7a70788a22 microperl: fix MICROPERL_INSTALL_TARGET_CMDS
The MICROPERL_INSTALL_TARGET_CMDS used the following construct in a
for loop:

		[ -d $(@D)/lib/$$j ] && cp -af $(@D)/lib/$$j \
			$(TARGET_DIR)/$(MICROPERL_MODS_DIR) ; \
		[ -f $(@D)/lib/$$i ] && $(INSTALL) -m 0644 -D $(@D)/lib/$$i \
			$(TARGET_DIR)/$(MICROPERL_MODS_DIR)/$$i; \

The problem is that when at the last iteration, the second test (-f)
fails, then the whole loop ends with a non-zero error code, and makes
aborts the build. This happens for example if the last Perl modules in
the list is Time::Local, because such modules are taken care of by the
first condition (that copies a complete directory).

By moving to full if statements, we ensure that the return code is
zero even if the condition was false.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-03-27 10:30:31 +02:00
Gustavo Zacarias
335260afd4 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.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-03-08 22:50:31 +01:00
Arnout Vandecappelle (Essensium/Mind)
cb9a5877b8 microperl: fix host build
It misses -lm when compiling miniperl

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-03-06 22:21:39 +01:00
Martin Hicks
43987641d3 microperl compile fix with ccache enabled
Just a simple quote problem with $(HOSTCC)

Signed-off-by: Martin Hicks <mort@bork.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-02-08 22:23:58 +01:00
Thomas Petazzoni
a1c8fa41f6 Update all packages to quote $(TARGET_CC)
Now that TARGET_CC contains several space-separated words, it must be
used quoted everywhere.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-07-07 08:20:21 +02:00
Peter Korsgaard
062cebb08f microperl: fix build with /bin/sh = dash
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-05-27 09:53:01 +02:00
Peter Korsgaard
78f2cb70e2 package/microperl: fix build
There seems to be some confusion about makefile/Makefile, so just fixup
both files for now to keep it safe.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-11-30 22:31:50 +01:00
Thomas Petazzoni
3c35d55ea9 packages: use qstrip
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-09-05 14:43:17 +02:00
Will Newton
422ce6536b package: Remove unnecessary dependencies on uclibc.
A C library will have been built by the toolchain makefiles, so there is no
need for packages to explicitly depend on uclibc.

Signed-off-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-03 20:22:38 +02:00
Thomas Petazzoni
6cd57ce392 microperl: fix build
Fix the little build systems hacks that no longer applied to the
version of Perl being used. With these fixes in place, microperl
builds and runs properly simple Perl commands on the target.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-08-04 15:48:40 +02:00
Peter Korsgaard
5b1dbd2031 microperl: strip target binary 2009-02-04 23:51:06 +00:00
Ulf Samuelsson
51a28ab3d3 Avoid the use of subshell in microperl 2009-01-25 23:44:53 +00:00
Ulf Samuelsson
ed7f49bf49 Fix make problems with perl 2009-01-25 08:14:37 +00:00
Peter Korsgaard
4a7bfd2775 package/: convert to DOWNLOAD helper 2009-01-16 11:42:52 +00:00
Peter Korsgaard
ac1d92c425 package/: get rid of unneeded $(strip ..) 2008-12-08 08:15:27 +00:00
Peter Korsgaard
02a623ddf9 buildroot: remove trailing spaces
for i in `find -name 'Config*' -o -name 'Makefile*' -o -name '*.mk'`;
do
	sed -i 's/ \+$//' $i;
done
2008-08-04 19:07:05 +00:00
Peter Korsgaard
4683420c4c Kconfig: remove 'default n'
'default n' is the default, so there's no need to say it explicitly.
2008-07-17 20:01:44 +00:00
Bernhard Reutner-Fischer
956d3eb78b - semicolon touchup. No other changes 2007-08-22 09:56:41 +00:00
Ulf Samuelsson
e1621a4a2a Use <package>_VERSION in all <package>.mk instead of <package>_VER 2007-07-11 14:06:06 +00:00
Bernhard Reutner-Fischer
842686b9fb - minor tweak to naming of microperl module list in the config 2007-02-04 19:20:45 +00:00
Bernhard Reutner-Fischer
46369b2995 - it misses Carp/Heavy.pm but is unable to diagnose this fact and just throws "unknown error".
Now automake at least fails with an explicit error..
2007-01-29 20:15:24 +00:00
Bernhard Reutner-Fischer
6f07d3907e - start populating perl stuff into the rootfs to make automake work 2007-01-29 20:06:00 +00:00
Bernhard Reutner-Fischer
b17c61938e - remove some hardcoded occurances of "make" and use the proper variable instead 2007-01-21 21:32:49 +00:00
Bernhard Reutner-Fischer
c854c67059 - remove unused variable 2006-12-15 13:36:48 +00:00
Bernhard Reutner-Fischer
8d2a2206ed - add config option to specify modules to be copied to the target. 2006-12-15 13:34:29 +00:00
Bernhard Reutner-Fischer
35561e74c5 - fix microperl uconfig and pass the target cflags in properly. 2006-11-24 09:49:16 +00:00
Bernhard Reutner-Fischer
8cb09f11ee - bump version 2006-11-22 15:22:57 +00:00
Bernhard Reutner-Fischer
6e2823c1fa - add and use BR2_BZCAT config option. 2006-11-17 15:43:51 +00:00
Mike Frysinger
c7a147d643 ver bump to 5.8.7 2005-09-09 04:51:38 +00:00
Eric Andersen
ac39d3b13f Patch from ralphs adding microperl, per
http://bugs.uclibc.org/view.php?id=123
2005-02-25 02:27:54 +00:00