Commit Graph

1023 Commits

Author SHA1 Message Date
Rosen Penev cbfd07701b jamvm: Add host build
Needed for classpath. GCJ is also needed but that can be dealt with
separately.

Fix compilation with musl by defining _GNU_SOURCE. What's funny here is
that if __USE_GNU gets replaced, the host build fails. The man page says
_GNU_SOURCE for pthread_getattr_np but glibc violates that statement.

Removed classpath dependency. classpaths must select jamvm, not the other
way around.

Removed target whitelist. Switched to blacklist.

Fixed License information.

Various other cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from 2972cc98eb and synced
from master)
2020-01-24 22:01:47 -08:00
Daniel Santos 539c26b2ea jamvm: Clarify and clean up package description
Clean up white space and properly clarify the Java version implemented.

Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
(cherry-picked from 69c5f1dac6)
2020-01-24 22:00:22 -08:00
Guo Li e480e046e3 jamvm: Use <fenv.h> instead of <fpu_control.h>
musl libc (http://musl-libc.org lack the non-standard <fpu_control.h>
header, which is used in src/os/linux/{i386,x86_64}/init.c files to
setup the floating point precision. This patch makes it use the
standard C <fenv.h> header instead.

Original patch at Felix Janda at
https://sourceforge.net/p/jamvm/patches/6/

Signed-off-by: Guo Li <uxgood.org@gmail.com>
(cherry-picked from 2f96d96aff)
2020-01-24 21:58:03 -08:00
Rosen Penev 4b2bdd0199
luasocket: Replace -fpic with $(FPIC)
This is causing linking errors on i386 and ppc.

Also removed custom warnings an optimization levels that override stock
settings.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from ecb4fcca0c)
2020-01-11 18:56:23 -08:00
Laurent Papier 2605babc8b
luasocket: fix build on mpc85xx
Signed-off-by: Laurent Papier <papier[at]tuxfan.net>
(cherry-picked from cb44bfebd5)
2020-01-11 18:54:46 -08:00
Luiz Angelo Daros de Luca 09b00c08f5 ruby: bump to 2.4.4
This release includes some bug fixes and some security fixes.

* CVE-2017-17742: HTTP response splitting in WEBrick
* CVE-2018-6914: Unintentional file and directory creation with directory traversal in tempfile and tmpdir
* CVE-2018-8777: DoS by large request in WEBrick
* CVE-2018-8778: Buffer under-read in String#unpack
* CVE-2018-8779: Unintentional socket creation by poisoned NUL byte in UNIXServer and UNIXSocket
* CVE-2018-8780: Unintentional directory traversal by poisoned NUL byte in Dir
* Multiple vulnerabilities in RubyGems

There are also some bug fixes

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2018-03-29 11:37:25 -03:00
Luiz Angelo Daros de Luca 2c4ea103d0 ruby: bump to 2.4.3
This release includes some bug fixes and a security fix.

CVE-2017-17405: Command injection vulnerability in Net::FTP

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
(cherry picked from commit fc01053917)
2017-12-23 01:18:00 -02:00
Arturo Rinaldi fe63607e88 python: declare explicit Host/Compile to fix pgen tool installation error
Signed-off-by: Arturo Rinaldi arty.net2@gmail.com
[squash commits, fix commit title]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-12-12 17:08:37 +01:00
Alexandru Ardelean 7cf09e3ec4 python: update to version 2.7.14 for branch 17.01
Bump version and overwrite patches from master,
since those were refreshed (at some point).

I got an email notification about some CVEs
for branch 17.01, so I decided to update Python.

Technically, one seems to be for SolidWorks
from what I can tell, but upgrading should be easy.

```
Hello Alexandru Ardelean,

The package python is vulnerable to the following CVEs:
CVE-2014-4616
  https://nvd.nist.gov/vuln/detail/CVE-2014-4616

CVE-2017-100015
  https://nvd.nist.gov/vuln/detail/CVE-2017-100015

Please consider updating or patching the package.
```

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-12-05 15:22:29 +02:00
Luiz Angelo Daros de Luca ea9ca5ed7e ruby: bump to 2.4.2
This release contains some security fixes.

 CVE-2017-0898: Buffer underrun vulnerability in Kernel.sprintf
 CVE-2017-10784: Escape sequence injection vulnerability in the Basic authentication of WEBrick
 CVE-2017-14033: Buffer underrun vulnerability in OpenSSL ASN1 decode
 CVE-2017-14064: Heap exposure in generating JSON
 Multiple vulnerabilities in RubyGems
 Update bundled libyaml to version 0.1.7.

And many other bugfix.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
(cherry picked from commit 699d9bef30)
2017-09-20 10:04:45 -03:00
Hannu Nyman 5c6e36f117 Merge pull request #4184 from luizluca/cc/ruby_update
[lede-17.01] ruby: bump to 2.4.1
2017-04-19 15:14:11 +03:00
Hannu Nyman 8865eb8d1b lua-bencode: download .tar.gz instead of using hg
Avoid using 'hg' (Mercurial) to download sources.

'hg' is not an official prerequisite and it is not installed
in all buildslaves in Openwrt and LEDE buildbots, which
leads to frequent build failures.

Download the .tar.gz source archive instead.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 74e53c4842)
2017-04-18 23:58:14 +03:00
Luiz Angelo Daros de Luca 6010d5617e ruby: bump to 2.4.1
This releases contains only bug and security fixes,
mostly backported from devel branch.

(cherry picked from commit 26d19b5cb1)

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2017-03-27 23:12:05 -03:00
Alexandru Ardelean 7b053941d7 python3: fix ncursesw definition collisions
setup.py seems to add the host's /usr/include/ncursesw
header.

Reported-by: Arturo Rinaldi <arturo@arduino.org>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-20 14:09:58 +02:00
Alexandru Ardelean b148812a10 python: remove setupterm() redefinition
It's not 100% aligned with the ncurses' definition.

Reported-by: Arturo Rinaldi <arturo@arduino.org>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-20 14:09:40 +02:00
Luiz Angelo Daros de Luca 49a5445a61 ruby: derive ABI version from VERSION
There might be no ABI breakage when the first two number
of version are the same.

(No change on generated packages. No need to bumb release)

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2017-02-05 20:11:03 +01:00
Michael Heimpold f225a42320 php7: update to 7.1.1
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-02-05 19:59:20 +01:00
Matthias Schiffer c51423342d php7: fix xml2-config path to unbreak build
Partially reverts 4a984a8d6. Fixes #3907.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-02-05 19:59:20 +01:00
Jo-Philipp Wich c03ff7ab8d perl-www-curl: fix build against curl >= 7.50
Import a proposed upstream bug fix to allow building against recent curl
versions. Fixes the following error observed by the buildbots:

    curlopt-constants.c:129:49: error: 'CURL_STRICTER' undeclared (first use in this function)
                 if (strEQ(name, "STRICTER")) return CURL_STRICTER;

Upstream bug: https://rt.cpan.org/Public/Bug/Display.html?id=117793

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-02-05 19:38:49 +01:00
Philip Prindeville 13e506618b perl-cgi: bump package release because of PKG_LEAVE_COMMENTS
Last commit required release increment so people would refresh to
non-broken files.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-01-11 15:40:52 -07: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
Michael Heimpold 1a8c52015c php7: add a patch to fix build on aarch64
This fixes the following build error, spotted by the LEDE buildbots:

{standard input}: Assembler messages:
{standard input}:557: Error: operand 3 should be an integer register -- `mul x0,x0,1048576'
{standard input}:558: Error: operand 3 should be an integer register -- `smulh x1,x0,1048576'
Makefile:1466: recipe for target 'ext/opcache/zend_accelerator_module.lo' failed

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-01-11 22:24:26 +01:00
Hannu Nyman d6f5933bfa Merge pull request #3739 from pprindeville/fix-perl-cgi
perl-cgi: disable comment stripping which damages module
2017-01-11 23:17:28 +02:00
Philip Prindeville 028ad67a5a perl-cgi: disable comment stripping which damages module
The macro perlmod/Install does comment stripping which gets confused by
the line:

in several files in this module, incorrectly deleting it as a comment.
It's not: it's the closure of a "= q/" literal.

See PR #3740 as this is a prerequisite.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-01-11 14:14:59 -07:00
Matthias Schiffer 3823ef9bc4 Merge pull request #3813 from NeoRaider/hostpkg
Use STAGING_DIR_HOSTPKG where appropriate
2017-01-11 21:54:09 +01:00
Hannu Nyman 9331f99784 Merge pull request #3811 from commodo/python-gmpy-drop
[RFC] python-gmpy: drop package (in favor or python-gmpy2)
2017-01-11 22:45:40 +02:00
Alexandru Ardelean b5b6ef34f4 python: bump PKG_RELEASE to 3
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-11 15:16:27 +02:00
Alexandru Ardelean 8ca02842ae python: remove `011-do-not-prefer-ncursesw.patch`
LEDE now provides libncursesw by default [even for libncurses].
No need to keep this patch around.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-11 15:16:27 +02:00
Alexandru Ardelean 4e2f4a76e3 python: use built-in libffi lib for host build
Python comes with it's own builtin libffi lib, which
seems easier to use for the host build, than trying
to use the one from the package feeds.

Also, dropping `005-fix-libffi-x86-64-configure.patch`
Not needed anymore.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-11 15:12:21 +02:00
Alexandru Ardelean ee88853e04 python: link with static libs of ssl, crypto for host builds
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-11 15:12:20 +02:00
Alexandru Ardelean 515468346a Revert "python: don't use libressl for host build"
This reverts commit ca800e60b0.
2017-01-11 15:12:20 +02:00
Alexandru Ardelean 3bfdf6797b python: drop CFLAGS in HOST_CONFIGURE_ARGS ; it's already in HOST_CONFIGURE_VARS
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-11 15:12:19 +02:00
Alexandru Ardelean ed5cd3e2ce python: remove Host/Install rule default add
I just found out that, that the BUILD_VARIANT var
is not set for the host build, so technically this code
would never get used.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-11 11:02:24 +02:00
Michael Heimpold 3fc9ae5071 php7: update to 7.1.0
Adjust patches for new upstream revision.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-01-10 23:07:41 +01: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
Alexandru Ardelean 462ca31772 python-gmpy: drop package (in favor or python-gmpy2)
Last version was released on 2013-07-28.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-10 15:23:44 +02:00
Matthias Schiffer 876d139c98
python{,3}: remove STAGING_DIR_HOSTPKG fallback definition
STAGING_DIR_HOSTPKG is now defined in both OpenWrt and LEDE, so we can
start to rely on it.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-10 02:24:29 +01:00
Yousong Zhou ea9e3b05ef luajit: move patches dir to the right place
Closes #3792

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-01-08 22:10:25 +08:00
Daniel Engberg 1c56d7e610 lang/luajit: Move to lua submenu
Move luajit to where the other lua stuff lives

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2017-01-07 19:54:01 +01:00
Hannu Nyman aebb0147e4 Merge pull request #2823 from milani/luajit
luajit: Added luajit package
2017-01-07 14:43:51 +02:00
Morteza Milani 0f3f62edb9 luajit: new package
Add luajit to repo

Signed-off-by: Morteza Milani <milani@pichak.co>
2017-01-07 15:56:53 +03:30
Alexandru Ardelean ca800e60b0 python: don't use libressl for host build
Fixes: https://github.com/openwrt/packages/issues/3767

Since commit:
f6e6341d89

libressl is built on the host-side.

Python picks it up [ via the openssl/* headers ] and assumes
it has SSL libs.
Compiling works fine, linking fails.
Doesn't look like it's because:
2fd5ce9488

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-06 15:29:21 +02:00
Hannu Nyman d45c0f1ac0 Merge pull request #3755 from commodo/python3-update-build
python3: sync makefiles with python package
2017-01-04 17:33:27 +02:00
Alexandru Ardelean 3af2027886 python3: sync makefiles with python package
Technically, this just updates build details.
No functionality change to package itself.

So, no need to increase PKG_RELEASE on this change.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-04 17:18:50 +02:00
Alexandru Ardelean f04641d3d1 python: upgrade to version 2.7.13
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-04 15:08:45 +02:00
Alexandru Ardelean 6d9137048b python: simplify/unify default build rules for python packages
Most python packages use the same build rules & vars.
So, adding them in python-package.mk.

Also, preparing for using VARIANTs for python/python3 packages.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-04 15:08:37 +02:00
Alexandru Ardelean bb2f8fa8ed python-dev: add python-lib2to3 as dependency
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-04 15:08:37 +02:00
Alexandru Ardelean 165cd9f96a python: update PYTHON_FOR_BUILD (based on python3)
PYTHON_FOR_BUILD is used to build the target python.
Nomally Python scripts detect fine the Python host interpreter
to use for building the Python target interpreter.
But, let's not leave it up to chance anymore.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-04 15:08:36 +02:00
Alexandru Ardelean 9d876738b2 python: remove argument for `--with-system-ffi` configure arg (based on python3)
And apparently `--with-system-ffi` does not take any arguments.
But it's only in Python 3.6 that a check was added for that.
After checking, Python 2.7 does not take any args either
for `--with-system-ffi` ; so, remove it [for the case when this
change may get backported].

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-04 15:08:36 +02:00