Commit Graph

64 Commits

Author SHA1 Message Date
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Michail Frolov 571a810fd4 lang/perl: Upgraded to Perl 5.24.1
Signed-off-by: Michail Frolov <frolovm@pobox.com>
2017-05-10 14:46:25 -04:00
Hannu Nyman 19bb3f7eaf Merge pull request #3740 from pprindeville/fix-perlmod-stripping
perlmod: global knob to disable comment stripping modules
2017-01-11 23:39:14 +02:00
Philip Prindeville 785b67a27e perlmod: global knob to disable comment stripping modules
Certain strings are misinterpreted as comments by perlmod.mk and removed
when they shouldn't be (in particular, perl-cgi).  Enable this whenever
you have sufficient flash space.

Globally, CONFIG_PERL_NOCOMMENT=y (default) causes comments to be stripped
as before.  However, a package (like perl-cgi) can override this with
PKG_LEAVE_COMMENTS=1.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-01-11 14:31:09 -07:00
Matthias Schiffer 4a984a8d60
treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424 for more information on
STAGING_DIR_HOSTPKG.

STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release
(it is equivalent to $(STAGING_DIR)/host), so this simple search/replace
cleanup is safe to apply. Doing this cleanup now will be useful for the
Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting
with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream.

Also fixes a typo in the dbus Makefile ("STAGIND_DIR").

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-10 18:25:54 +01:00
Jo-Philipp Wich 0d18627cd2 perl: securely handle duplicate environment variables [CVE-2016-2381]
Stephane Chazelas discovered a bug in the environment handling in Perl.

Perl provides a Perl-space hash variable, %ENV, in which environment
variables can be looked up.  If a variable appears twice in envp, only
the last value would appear in %ENV, but getenv would return the first.
Perl's taint security mechanism would be applied to the value in %ENV,
but not to the other rest of the environment.  This could result in an
ambiguous environment causing environment variables to be propagated to
subprocesses, despite the protections supposedly offered by taint
checking.

With this update Perl changes the behavior to match the following:

 a) %ENV is populated with the first environment variable, as getenv
    would return.
 b) Duplicate environment entries are removed.

References:

 * http://perl5.git.perl.org/perl.git/commit/ae37b791a73a9e78dedb89fb2429d2628cf58076
 * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2381

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-03-01 17:26:51 +01:00
Naoir 305b844767 Merge pull request #2267 from jow-/CVE-2015-8607
perl: ensure File::Spec::canonpath() preserves taint [CVE-2015-8607]
2016-01-23 15:52:09 +01:00
Felix Fietkau 9f8e5aca34 treewide: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST), sync with changes in trunk
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2016-01-20 21:56:03 +01:00
Jo-Philipp Wich f73e358558 perl: ensure File::Spec::canonpath() preserves taint [CVE-2015-8607]
Beginning in PathTools 3.47 and/or perl 5.20.0, the File::Spec::canonpath()
routine returned untained strings even if passed tainted input. This defect
undermines the guarantee of taint propagation, which is sometimes used to
ensure that unvalidated user input does not reach sensitive code.

This defect was found and reported by David Golden of MongoDB, and a patch
was provided by Tony Cook.

References:

 * https://rt.perl.org/Public/Bug/Display.html?id=126862
 * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8607

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-14 12:17:56 +01:00
Marcel Denia a23ffef7e9 perl: Update to 5.22.1
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-12-21 17:53:02 +01:00
Marcel Denia 59d24044b3 perl: Fix uClibc handling
Configuration scripts expect the libc identifier to be "uclibc" in case we're using it,
OpenWrt provides "uClibc". Oh well...

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-11-30 01:36:46 +01:00
Marcel Denia bb06539632 perl: Set gccversion configuration symbol correctly
This was previously manually set to '4.8.0'. Aside from just being incorrect,
it also breaks Errno's GCC5 detection.

Fixes #2044.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-11-29 22:39:39 +01:00
Marcel Denia 6552e55ea7 perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-11-20 12:53:13 +01:00
Marcel Denia e16d7305dd perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-09-25 11:50:52 +02:00
Marcel Denia 7baa440416 perl: Bump PKG_RELEASE
Despite being just a packaging update, this update packs quite a few changes.

To start things off, we're finally passing perl's testsuite on at least
x86/musl. There are a lot of skipped tests left, as well as some oddities.
Nothing too heavy though. Making this happen was an ongoing effort since the
perl-5.20.1 release.
We still can't run module testsuites and I don't expect all target/libc
combinations to pass yet. So we'll leave test suite support marked as
experimental.

We've also switched from the old collection of target-specific configuration
files to a new, more flexible and easier-to-maintain system based on
perlconfig.pl. It'll generate a suitable configuration file using information
found in it's *.config files as well as command-line parameters passed.
See the POD and files/README.config for details.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-09-01 09:23:25 +02:00
Marcel Denia f6a7779041 perl: Include vmsish.t and Internals.t in perl-tests-common
There is no other place for them really.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-09-01 09:23:24 +02:00
Marcel Denia c038495015 perl: Disable OS/2 tests
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-09-01 09:23:24 +02:00
Marcel Denia afad970139 perl: Switch to split configuration files
This replaces the previously used collection of configuration files for every single
architecture in conjunction with hacky overrides, which became an increasing burden to maintain.

Fixes a number of outstanding bugs and oddities, with the most important one being the
previously wrong signal order(as shown by ext/POSIX/t/sigaction.t).

See files/perlconfig.pl's POD and files/README.config for details.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-09-01 09:23:15 +02:00
Marcel Denia 7a545cc9b3 perl: Update to 5.22.0
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-06-18 23:58:45 +02:00
Marcel Denia 38be10c1bc perl: Disable strerror_r usage with musl
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-06-18 23:58:45 +02:00
Marcel Denia 273d4bd6a7 perl: Have perl's major version number in one central place
This will simplify updating the package in the future.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-06-18 23:58:45 +02:00
Jo-Philipp Wich f9ac3e632b perl: fix musl compatibility
- Add patch to inhibit the libm IEEE math switch on musl
 - Add postprocessing for config.sh to the Makefile to fixup
   defines for musl, idea taken
   from http://patchwork.openembedded.org/patch/91707/

This is the least invasive approach I could come up to fix the build
failure asap. Another possibility is maintaining yet another set of
musl specific architecture config files, but I think that this introduces
a lot of maintenance overhead.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-17 17:42:00 +02:00
Marcel Denia 3202055a46 perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-05-27 02:03:56 +02:00
Marcel Denia 109ac2c383 perl: Enable threading in host-perl as well if threading is selected
While host-perl only exists to run build scripts(and thus, should have
no influence on built packages at all), most packages depend heavily on the
feature set of the perl installation that ran their configuration scripts.
This change makes them see that threading support is enabled(if it actually
is selected).

We can't use configuration symbol overrides for this one, as they are
visible to host-perl as well. Using overrides would make it act as if it
had threading support enabled without actually having it.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-05-27 02:03:56 +02:00
John Crispin 98be2ca3e0 global: change all instances of USE_EGLIBC to USE_GLIBC
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-03-12 20:52:37 +01:00
Marcel Denia 404a4362ac perl: Update to 5.20.2
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-02-16 15:15:49 +01:00
Marcel Denia 39518078d8 perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-02-07 23:22:54 +01:00
Marcel Denia 60b61d35fb perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-02-04 13:57:27 +01:00
Marcel Denia 8ab3731392 perl: Cleanup
- Update copyright notice
- Make perlbase-experimental's TITLE show up in menuconfig again
- Formatting changes

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-02-04 13:56:30 +01:00
Marcel Denia 4248b8b72d perl: Add new CONFIG_PERL_THREADS option for enabling threading support
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-02-04 13:51:16 +01:00
Marcel Denia a32cb24122 perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-01-10 15:19:10 +01:00
Marcel Denia 13f4a02172 perl: Update to 5.20.1
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-11-06 08:18:43 +01:00
Marcel Denia ce54424c81 perl: Update perlbase.mk
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-11-06 08:18:42 +01:00
Marcel Denia 95058be605 perl: Add basic test support
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-11-06 08:18:42 +01:00
Marcel Denia 4715296a79 perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-10-16 11:12:45 +02:00
John Crispin 1881ab2550 perl: create the Host install path before using it
this caused a compile fail on the BB builder

Signed-off-by: John Crispin <blogic@openwrt.org>
2014-08-31 10:07:27 +02:00
Marcel Denia 2f2601deda perl: Update license identifiers to match SPDX
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-14 17:14:23 +02:00
Marcel Denia 0589ca524f perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-14 17:14:23 +02:00
Marcel Denia d98f1cc781 perl: Unify host and target build directories
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-14 17:14:23 +02:00
Marcel Denia 505bf74aa3 perl: Include installed extensions in host-perl
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-14 17:14:23 +02:00
Marcel Denia c02ebc0072 perl: Install libperl.so
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-14 17:14:22 +02:00
Marcel Denia dfc4b6969f perl: Install full /usr/lib/perl5 tree into STAGING_DIR
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-14 17:14:22 +02:00
Marcel Denia edebd9121a lang/perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-24 03:04:30 +02:00
Marcel Denia 8995386673 lang/perl: Cleanup
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-23 09:14:56 +02:00
Marcel Denia 3e4f400a49 lang/perl: Update license information
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-23 09:14:18 +02:00
Marcel Denia 51850177b9 lang/perl: Install target headers to staging directory
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-22 16:18:54 +02:00
Marcel Denia 8f8698ad20 lang/perl: Filter -g3 in TARGET_CFLAGS
-g3 will make the build fail in Compress-Raw-Zlib with
  ld: final link failed: Memory exhausted
This bug is actually documented[1] and fixed by filtering that flag. Since
we're passing CFLAGS manually, we need to do the same to make things work.
I suspect that this is actually a linker or library bug, but for now let's
just replicate the official fix.

[1] https://rt.cpan.org/Public/Bug/Display.html?id=88936

Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-21 03:29:17 +02:00
Marcel Denia 8b5c73e859 lang/perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-20 05:18:11 +02:00
Marcel Denia 6dcc322af5 lang/perl: Bump PKG_RELEASE
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-19 08:29:18 +02:00
Marcel Denia 62b042909d lang/perl: Build relocatable host perl
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-07-19 08:19:13 +02:00