Commit Graph

1501 Commits

Author SHA1 Message Date
Alexandru Ardelean 20685f5220 python: split source packages away from compiled packages
Well, they're not yet compiled, but in the next commit
they should be.

People have been complaining [citation needed] to me
via email or via Github that Python's performance is crap
because it packages sources directly and they're not compiled.
And Python has to compile the sources on each run, and
on-the-fly.

Allowing compilation caching is also a no-no, because
I'll get complaints that the flash storage fills up
whenever a Python app runs.

So, to give the user a choice, the new de-facto packaging
for Python packages will be:
* ship compiled + [ preferably ] optimized files
* package sources separately

The problem is that this doubles the number of packages
in LEDE/OpenWrt, but build-times should not suffer a big
hit, since the compilation is done once, and the
install phase should not be too intensive.

Oh, and people don't need ship source packages if
they don't want to.
To do that, a packager needs to just call
`$(eval $(call BuildPackage,python-<package>-src))`

The `python-` prefix is important.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 18:43:41 +02:00
Alexandru Ardelean 05f8d6edf0 python,python3: drop remove .pyc & .pyo files
We'll control in the install phase what we ship [byte-codes or source files]

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:26:36 +02:00
Alexandru Ardelean 92073b047b python,python3: drop tests from all core packages
Well, this slipped by for some time.
This should make the Python core packages even more lighter.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:23:10 +02:00
Alexandru Ardelean a85b0b6b57 python3: make sure $(1)/usr/lib path exists for python3-dev package
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:23:10 +02:00
Alexandru Ardelean 6c4dcf4446 python: fix python-dev clash with python-base
Both want to install libpython.so.
python-dev should install libpython.a

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:23:10 +02:00
Alexandru Ardelean df0d0bcc00 python,python3: move PyPackage install rules in the beggining of the Package install rules
So that we can process Python sources installed
by those rules, if we need to.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:23:10 +02:00
Alexandru Ardelean 5d502e8530 python3: move filespec shell code into file
Same as for python.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:23:10 +02:00
Alexandru Ardelean 06c91a7ed8 python: move filespec shell code into file
Cleanup.
And preparation for adding a bit more functionality.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:23:10 +02:00
Alexandru Ardelean 17da988645 python,python3: fix goof with multiline command break
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-03-09 09:23:10 +02:00
Stijn Tintel f82287cf5c treewide: use name in define and eval lines
For consistency, use full name instead of $(PKG_NAME) in define and eval
lines for all packages.

I've seen reviews that asked to do this before, and I am asking the same
during reviews now. To avoid this in the future, fix this treewide so
when people use existing packages as example, we will not have to
request this change anymore.

This makes all packages consistent with both LEDE and OpenWrt base
repositories.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2017-03-08 21:15:20 +01:00
Hannu Nyman e6b3b33163 Merge pull request #4074 from commodo/python-cryptografix-fix
python-cryptography: fix build by disabling setup requirements
2017-03-06 09:59:18 +02:00
Alexandru Ardelean 274cacf365 python-cryptography: fix build by disabling setup requirements
python-cryptography tries to install other packages during setup.

However, this isn't needed, since they should have been already
resolved/installed via LEDE/OpenWrt's build system dep logic.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-26 12:38:21 +02:00
Michael Heimpold 549d470b99 php7: update to 7.1.2
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-02-24 18:10:02 +01:00
Hannu Nyman 4bceecac96 Merge pull request #3967 from commodo/python-pyscopg2
python-psycopg2: replace python-setuptools dep with python/host
2017-02-22 00:20:49 +02:00
Hannu Nyman 557485abfc Merge pull request #4039 from the-alien/master
python-ldap: update to 2.4.32
2017-02-19 23:35:19 +02:00
alien 1fbc57b6d4 python-ldap: update to 2.4.32
Signed-off-by: Dmitry Trefilov <the-alien@live.ru>
2017-02-19 22:41:18 +03:00
Hannu Nyman 9c176d0b35 Merge pull request #3860 from commodo/micropython-lib-workaround
micropython-lib: workaround the `install` build rule
2017-02-17 10:03:04 +02:00
Morteza Milani 927ca1346d luv: new package
Luv is libuv binding for lua.

Signed-off-by: Morteza Milani <milani@pichak.co>
2017-02-16 13:21:13 +00:00
Hannu Nyman 99a3b34db3 Merge pull request #3784 from diizzyy/patch-16
lang/python3-bottle: Update to 0.12.12
2017-02-15 16:52:23 +02:00
Hannu Nyman f20e7ec2ea Merge pull request #4001 from kissg1988/seafile
seafile: update to version 6.0.7
2017-02-14 09:27:37 +02:00
Gergely Kiss 1534aca7f2 seafile: update to version 6.0.7
Update several dependencies, as well:

* django-compressor -> 2.1.1
* django-constance -> 1.3.4
* django-restframework -> 3.5.4
* django-statici18n -> 1.3.0
* django -> 1.8.17
* openpyxl -> 2.4.2
* python-dateutil -> 2.6.0
* python-urllib3 -> 1.20

Signed-off-by: Gergely Kiss <mail.gery@gmail.com>
2017-02-13 22:03:14 +01:00
Hannu Nyman cc5f005e4f Merge pull request #3998 from commodo/fix-ncurses-build
python,python3: fix ncurses module build
2017-02-13 18:40:06 +02:00
Alexandru Ardelean 5d53a642db 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-13 18:30:57 +02:00
Alexandru Ardelean 6bfd17e75c 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-13 18:30:29 +02:00
alien 5358517f01 python-ldap: update to 2.4.30
Signed-off-by: Dmitry Trefilov <the-alien@live.ru>
2017-02-13 03:04:23 +03:00
Alexandru Ardelean 4772aec581 python,python3: override python setuptools & pip versions
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-09 16:31:16 +02:00
Alexandru Ardelean f45184b054 python-pyscopg2: replace python-setuptools dep with python/host
After removing python-setuptools package, the dependency
chain to python/host is a bit different.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-07 12:12:14 +02:00
Hannu Nyman 6ad63bd6d7 Merge pull request #3943 from commodo/python3-cffi
python3-cffi: add variant
2017-02-03 16:58:02 +02:00
Andrew McConachie d6d80ba540 lang/python-pcapy: Bumped version to 0.11.1
Signed-off-by: Andrew McConachie <andrew@depht.com>
Compile tested: AMD64
Run tested: tested
Description: new release
2017-02-01 13:45:50 -05:00
Alexandru Ardelean ec52bf32ed python-cffi: add python3 variant
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-01 11:56:14 +02:00
Alexandru Ardelean ae7461269d python-pycparser: add python3 variant
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-01 11:55:05 +02:00
Alexandru Ardelean bb156c4919 python-ply: add python3 variant
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-02-01 11:51:30 +02:00
Alexandru Ardelean f87c83c358 python-packages: remove python-pip/host dependency
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-26 13:53:28 +02:00
Alexandru Ardelean d10fad7c21 python-dns: remove python-setuptools/host dependency
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-26 13:53:28 +02:00
Michael Heimpold 97df69951c php7: update to 7.1.1
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-01-24 21:39:59 +01:00
Matthias Schiffer 919c24c598 php7: fix xml2-config path to unbreak build
Partially reverts 4a984a8d6. Fixes #3907.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-24 12:45:03 +01:00
Hannu Nyman 8e83bb28f1 Merge pull request #3897 from commodo/python-unify
python,python3,pip,setuptools: unify pip & setuptools under python,python3
2017-01-24 07:40:36 +02:00
Alexandru Ardelean 31d614f92c python,python3: add python-pip-conf package to be used by both python-pip & python3-pip
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-23 11:59:50 +02:00
Alexandru Ardelean a53d0c5a40 pip,setuptools: move as part of python,python3 build
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-23 10:20:20 +02:00
Hannu Nyman 52889e647f Merge pull request #3861 from milani/luajit
luajit: update to trunk
2017-01-23 09:34:55 +02:00
Morteza Milani 67c549fd06 luajit: update to trunk
This includes a fix in jit module that is essential for MIPS target.

Signed-off-by: Morteza Milani <milani@pichak.co>
2017-01-23 11:00:53 +03:30
Alexandru Ardelean 80349f9e73 python,python3: install built-in pip and setuptools
Easier than using external package.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-23 09:06:51 +02:00
Alexandru Ardelean ed8fa163c0 python3: sync changes from python
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-19 18:15:12 +02:00
Jo-Philipp Wich 20ee2c902a 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-01-18 03:44:18 +01:00
Luiz Angelo Daros de Luca d549a9a343 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-01-17 23:05:18 -02:00
Alexandru Ardelean a5b9cc6a24 micropython-lib: workaround the install build rule
So, I chose to workaround it in the Makefile.
A proper fix is a bit more work that I would like to do now,
and I have no suggestion/idea for a good fix right now.

The problem is with the `CMD` part that's used in the install rule,
together with the fact that PREFIX is the same as the source location.

```
CMD="find . -maxdepth 1 -mindepth 1 \( -name '*.py' -not -name 'test_*' -not -name 'setup.py' \) -or \( -type d -not -name 'dist' -not -name '*.egg-info' -not -name '__pycache__' \)| xargs --no-run-if-empty cp -r -t $(PREFIX)"
```

The gist of it, is that it seems that this will filter
and copy to `PREFIX` all python sources and folders that
are not names `dist`, `__pycache__`, or `*.egg-info`.
And it searches all folders at (exactly) depth 1.

The solution I chose is to put a `dist` folder under
`_install_tmp`, which is kind of a trick to go
to depth 2 and avoid both conditions in the `find` call.

This avoids errors:
```
cp: './weakref.py' and '/home/sandu/work/lede/build_dir/target-mips_24kc_musl-1.1.16/micropython-lib-1.8.6-f81e979c56dddb771ad36ec381b7f2c6cd12111f-f81e979c56dddb771ad36ec381b7f2c6cd12111f/_install_tmp/weakref.py' are the same file
cp: './xmltok.py' and '/home/sandu/work/lede/build_dir/target-mips_24kc_musl-1.1.16/micropython-lib-1.8.6-f81e979c56dddb771ad36ec381b7f2c6cd12111f-f81e979c56dddb771ad36ec381b7f2c6cd12111f/_install_tmp/xmltok.py' are the same file
cp: './zipfile.py' and '/home/sandu/work/lede/build_dir/target-mips_24kc_musl-1.1.16/micropython-lib-1.8.6-f81e979c56dddb771ad36ec381b7f2c6cd12111f-f81e979c56dddb771ad36ec381b7f2c6cd12111f/_install_tmp/zipfile.py' are the same file
```

Initially I tried to add exit 0, but that would
just hide other (potentially worse) issues.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-17 15:23:19 +02: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