Commit Graph

1910 Commits

Author SHA1 Message Date
Jeffery To 9995fe7732 python,python3: Add PYTHON[3]_PKG_SETUP_GLOBAL_ARGS
Some packages (PyYAML,
https://github.com/openwrt/packages/pull/8482#discussion_r270692276)
recognize "global" options to setup.py; these must appear before the
"install" command on the command line.

This adds PYTHON[3]_PKG_SETUP_GLOBAL_ARGS, which let packages set these
global options.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-04-05 16:44:55 +08:00
Hirokazu MORIKAWA 8cfac80138 node-serialport: update to 7.1.4
update to 7.1.4
Takeover of PKG_MAINTAINER
Major Makefile Updates

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-04-05 12:38:38 +09:00
Rosen Penev 9f15edf744
Merge pull request #8584 from jefferyto/python-compileall-recursion-level
python,python3: Increase max recursion level when generating bytecode
2019-04-04 00:19:55 -07:00
Rosen Penev 5be14931bd
Merge pull request #8516 from jefferyto/python-config
python,python3: Include python-config for target Python in InstallDev
2019-04-04 00:18:24 -07:00
Rosen Penev 5c539c7950
Merge pull request #8581 from cotequeiroz/luasec_linker
luasec: use gcc to link instead of ld
2019-04-03 22:17:50 -07:00
Eneas U de Queiroz aa2f0987d6
luasec: cleanup Makefile
The LIBDIR and INCDIR assignments are duplicate of the original
Makefile, changing LIB_PATH and INC_PATH to LDFLAGS and CPPFLAGS.

Setting LIB_PATH and INC_PATH to empty strings will do the same
without duplicating the flags.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-04-03 18:00:23 -03:00
Jeffery To 85c805d0ad python,python3: Increase max recursion level when generating bytecode
"python -m compileall" has a default maximum recursion level of 10, i.e.
it will descend up to 10 levels of subdirectories when looking for
source files to compile. This is usually sufficient but there are
packages that include more than 10 levels (botocore,
https://github.com/openwrt/packages/pull/8214#discussion_r270056741).

This adds the "-r" command line option to the call to compileall to
increase the max recursion level (currently set to 20).

This also patches Python 2's compileall.py to add this max recursion
level option. (Python 3's compileall.py already supports this option.)

This also applies some related changes to python-package-install.sh:

* Use the "-delete" option with find instead of exec'ing rm / rmdir. For
  the case of removing empty directories (in delete_empty_dirs()), this
  has the added benefit of simplifying the code, as the "-delete" option
  implies "-depth", and thus find "does the right thing" (removing empty
  directories depth-first).

* Remove the backslash in "-name" patterns (for find), as they are not
  regular expression but glob patterns.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-04-04 03:07:02 +08:00
Josef Schlehofer ff8ce9a3d5
Merge pull request #8550 from jefferyto/python-fix-bin-symlinks
python,python3: Fix overridden usr/bin symlinks
2019-04-03 20:35:37 +02:00
Eneas U de Queiroz e3f1532297
luasec: use gcc to link instead of ld
Linking with ld is not portable and was causing problems for some
targets, e.g. i386_pentium4:
i486-openwrt-linux-musl-ld: x509.o: in function `push_asn1_objname':
x509.c:(.text+0x61): undefined reference to `__stack_chk_fail_local'
...

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-04-03 15:10:10 -03:00
Jeffery To 0280c67103 python,python3: Fix overridden usr/bin symlinks
Currently, all files in usr/bin (presumably all Python scripts) are run
through sed to replace the shebang; sed will overwrite the file whether
or not a match is found. This causes symlinks to be overridden and made
into copies of their targets. python[3]-base and python[3]-dev are
affected by this.

This adds the --follow-symlinks flag to sed, in addition to using
$(SED), so that symlinks are not overridden.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-04-03 21:05:14 +08:00
Rosen Penev 0dd556ba1d
Merge pull request #8573 from neheb/luasec
luasec: Replace -fPIC with $(FPIC)
2019-04-02 13:16:35 -07:00
Rosen Penev cf23dd2eb0
luasec: Replace -fPIC with $(FPIC)
Currently i386 and the PPC targets have issues linking issues.

https://github.com/openwrt/packages/issues/3319

says that replacing -fPIC with -fpic works.

Patch added to avoid package overriding settings set by toolchain and make
compilation less noisy

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-04-02 13:02:36 -07:00
Rosen Penev ecb4fcca0c
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>
2019-04-02 12:49:45 -07:00
Rosen Penev 6846ed8625
Merge pull request #8417 from cotequeiroz/luasql-flags
luasql: fix variants LDFLAGS
2019-04-01 11:34:32 -07:00
Hirokazu MORIKAWA 7b825f9d64 node-homebridge: update to 0.4.47
Update to 0.4.47
Some document update.
Add ability to publish external accessory separately.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2019-04-01 15:53:25 +09:00
Josef Schlehofer 7f5e18f0d9
Merge pull request #8526 from BKPepe/voluptuous-serialize
python-voluptuous-serialize: add package for Python3
2019-04-01 02:50:10 +02:00
Josef Schlehofer e924f1be7f
Merge pull request #8485 from BKPepe/aiohttp
python-aiohttp: add a new package
2019-04-01 02:45:48 +02:00
Josef Schlehofer 81e1601b2b
Merge pull request #8551 from BKPepe/pyotp
python-pyotp: add new package for Python3
2019-04-01 02:43:53 +02:00
Josef Schlehofer b09593bf43
Merge pull request #8481 from BKPepe/yarl
python-yarl: add a new package
2019-04-01 02:43:02 +02:00
Josef Schlehofer 8f30577144
Merge pull request #8484 from BKPepe/async_timeout
async-timeout: add a new package
2019-04-01 02:41:36 +02:00
Josef Schlehofer fb9cf44c92
Merge pull request #8515 from BKPepe/python-slugify
python-slugify: add new package for Python3
2019-04-01 02:40:53 +02:00
Josef Schlehofer 673bfd1f87
Merge pull request #8503 from BKPepe/voluptuous
python-voluptuous: add a new package
2019-04-01 02:40:04 +02:00
Josef Schlehofer 6c37f32306
Merge pull request #8480 from BKPepe/multidict
python-multidict: add a new package
2019-04-01 02:39:31 +02:00
Josef Schlehofer 76874c1f62
python-voluptuous-serialize: add package for Python3
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-01 02:36:52 +02:00
Josef Schlehofer 2edf5034f1
python-aiohttp: add a new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-01 02:29:26 +02:00
Josef Schlehofer 680eaeb05d
python-yarl: add a new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-01 02:26:29 +02:00
Josef Schlehofer 46db45fd40
async-timeout: add a new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-01 02:22:05 +02:00
Josef Schlehofer 60c8c13969
python-pyotp: add new package for Python3
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-01 02:13:59 +02:00
Josef Schlehofer 5b2b6029c7
python-multidict: add a new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-01 02:08:16 +02:00
Josef Schlehofer d90516182b
python-slugify: add Python3 package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-01 01:28:53 +02:00
Josef Schlehofer 091fcaf553
Merge pull request #8478 from BKPepe/python_astral
python-astral: add new package
2019-03-31 23:14:38 +02:00
Rosen Penev 42e370ee7c
Merge pull request #8511 from BKPepe/ruamel-yaml
ruamel-yaml: add package
2019-03-31 14:13:46 -07:00
Rosen Penev 56f4e3a692
Merge pull request #8514 from BKPepe/text-unidecode
text-unidecode: add new package
2019-03-31 12:24:12 -07:00
Jeffery To 8de8ff4f25 python,python3: Include python-config for target Python in InstallDev
This installs python{2.7,3.7}-config in $(STAGING_DIR)/usr/bin as part
of Build/InstallDev, to be used by other packages to get build
configuration for target Python.

The treatment for Python 2 and 3 are a bit different:

* For Python 2, python-config is a Python script that is expected to be
  run with, and return data for, the installed Python interpreter. This
  installs a modified version of this script, to be run using host
  Python, and read/return data for target Python.

* Python 3 includes a shell script version of python-config (expected to
  be used in cross-compilation scenarios). This simply installs the
  script into the right place.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-03-31 19:33:12 +08:00
Jeffery To c23bea8dc8 python,python3: Fix CVE-2019-9636 - urlsplit missing NFKC normalization
These patches address issue:
CVE-2019-9636: urlsplit does not handle NFKC normalization

Link to Python issue:
https://bugs.python.org/issue36216

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-03-31 05:18:14 +08:00
Deng Qingfang 17496030e2 treewide: add missing PKGARCH:=all to non-binary packages
Packages such as Perl, Lua, shell scripts don't generate binary files.
Add PKGARCH:=all to them.

Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
2019-03-30 17:11:50 +08:00
Rosen Penev 149afa5dcb
Merge pull request #8296 from neheb/patch-5
perl-parse-recdescent: Update to 1.967015
2019-03-30 01:37:50 -07:00
Hannu Nyman 253cc12ee6
Merge pull request #7796 from cotequeiroz/lualanes_no-luajit
lualane: avoid luajit dependency
2019-03-29 17:34:30 +02:00
Karl Palsson 6186f7ebc3 lang: lua-libmodbus: Update URL
Fixes: ed27512641 lang: lua-libmodbus: Update URL

Second instance of old URL was missed.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2019-03-29 12:54:49 +00:00
Karl Palsson ed27512641 lang: lua-libmodbus: Update URL
Github organization changed names.  Proactively update URL, even though
github redirects.

Signed-off-by: Karl Palsson <karlp@etactica.com>
2019-03-29 11:10:22 +00:00
Eneas Queiroz 958844512e
Merge pull request #5160 from nxhack/homebridge
node-homebridge: add new package / Node.js HomeKit Server
2019-03-28 21:30:01 -03:00
Karel Kočí 4b9a0ff6b6
python-astral: add new package
Signed-off-by: Karel Kočí <cynerd@email.cz>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-03-28 14:41:23 +01:00
Josef Schlehofer 5f24ab841b
python-voluptuous: add a new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-03-28 14:34:39 +01:00
Josef Schlehofer e08b0a877d
ruamel-yaml: add package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-03-28 14:33:15 +01:00
Josef Schlehofer 2002e47732
text-unidecode: add new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-03-28 14:32:21 +01:00
Jeffery To e436e73f1c python,python3: Use only target package data for Build/InstallDev
This changes Build/InstallDev for both Python 2 and 3 to only copy files
from target Python, not from host Python, since InstallDev files are
used for target packages to link to other target packages.

In particular, usr/lib/python{2.7,3.7}/_sysconfigdata.py holds system
configuration data generated at build time, and is different for target
Python and host Python.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-03-27 03:44:31 +08:00
Jeronimo Pellegrini 2fdc4b8333 chicken-scheme: add package
Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>

Maintainer: myself ( Jeronimo Pellegrini <j_p@aleph0.info> )

Compile tested: compiles on x86_64, target mips (AR7xxx), OpenWRT master
  and OpenWRT 18.06.2
Run tested: on AR7xxx (TP-Link Archer C7 v.4)

Description:
This is an efficient Scheme interpreter, which comes with several
modules for networking, filesystem access, and other useful tasks.
It can be used as scripting language for automating tasks, by users
who prefer dynamic functional languages over imperative or
object-oriented ones.
2019-03-26 10:29:03 +08:00
Hannu Nyman 9c1a54a6f1
Merge pull request #8474 from jefferyto/python-cffi-1.12.2
python-cffi: Update to latest version
2019-03-22 20:48:04 +02:00
Jeffery To 52167d7f2c python-cffi: Update to latest version
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-03-22 21:50:36 +08:00
Jeffery To 6b15619ef7 python-attrs: Update to latest version
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-03-22 21:48:27 +08:00