Commit graph

2799 commits

Author SHA1 Message Date
Jeffery To
3c36696a56 python-packages: Add usr/bin symlinks without "3" suffix
Previously, binaries installed by Python packages will have a
non-suffixed Python 2 version and a suffixed Python 3 version, e.g. pip
and pip3. With the removal of Python 2, the non-suffixed names are no
longer taken.

This adds symlinks for the non-suffixed names linking to the suffixed
scripts (or in the case of pip, easy_install, and python-config, to the
fully-versioned scripts).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-22 03:57:55 +08:00
Hannu Nyman
643b91abb3
Merge pull request #12245 from jefferyto/python3-setuptools-site-patch
python3-setuptools: Fix error when installing from source
2020-05-21 15:51:23 +03:00
Jeffery To
70a7f736c5 python3-setuptools: Fix error when installing from source
When a Python package is installed from source (i.e. using setup.py)
into a custom location (with --home), setuptools may want to create a
site.py file in the custom location. This file is created based on the
source code of site-patch.py, a file bundled with setuptools.

Because the normal OpenWrt setuptools package does not contain Python
source code, this file is missing and the installation will end with an
error.

This copies site-patch.py to site-patch.py.txt so that it will be
included in python3-setuptools, and patches setuptools to look for this
file.

See https://github.com/openwrt/packages/issues/12223

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-21 20:02:13 +08:00
Jeffery To
10e67aca45 django-postoffice: Update to 3.3.0
This is not the newest version but the last version compatible with
Django 1.11.

This also updates the jsonfield dependency to jsonfield2.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-21 05:02:35 +08:00
Jeffery To
a9cc46658a django-jsonfield2: Add package
This package mainly serves to support django-post-office 3.3.0, as that
version switched its dependency from jsonfield to jsonfield2 (a fork of
jsonfield).

The version packaged in this package (3.0.3) is the last version that
supports Django 1.11.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-21 04:53:54 +08:00
Rosen Penev
1fc71ed994
Merge pull request #12234 from jefferyto/python3-3.8.3
python3: Update to 3.8.3, refresh patches
2020-05-20 11:12:55 -07:00
Jan Pavlinec
4614041245
python-more-itertools: update to version 8.3.0
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-05-20 13:37:10 +02:00
Jeffery To
0254a4bea9 python3: Update to 3.8.3, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-20 17:40:38 +08:00
Jeffery To
d2b0cc523d python3-openssl: Add dependency on ca-certs
The ssl module assumes OpenSSL can load the default trust anchors (root
CA certificates).

From https://github.com/openwrt/packages/issues/12209

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-20 04:30:45 +08:00
Jeffery To
be9a554a26 python3: Enable compile-time optimizations
This adds the --enable-optimizations configure option (for
profile-guided optimization) for both host and target Python, and the
--with-lto configure option (for link-time optimization) for target
Python (for non-MIPS platforms).

Currently, compiling Python with LTO leads to link errors on mips and
mipsel. (Compiling with LTO appears to succeed on mips64 but there is
only one mips64 target available for convenient testing.)

This also cleans up the host and target configure options:

* Sort options/variables
  - Alphabetically
  - Flags/options before child-process environment variables
  - Group options by type (enable/disable/with/without)
  - Static options/variables before conditional ones

* Remove the prefix/dir options, as they are the same as the defaults
  set by the build system

* Remove --with-threads, as it is no longer a valid option (threads are
  always enabled)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-18 15:01:17 +08:00
Jeffery To
2b8f9b7349 golang: Update to 1.14.3
This also removes a (useless) test for PKG_GO_ZBOOTSTRAP_MODS (it is
always non-empty).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-17 03:37:45 +08:00
Michael Heimpold
04575c258e php7-pecl-redis: update to 5.2.2
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2020-05-16 14:09:51 +02:00
Michael Heimpold
ceb660cc61 php7: update to 7.4.6
This fixes:
  - CVE-2019-11048

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2020-05-16 13:56:33 +02:00
Rosen Penev
8302890162
Merge pull request #12149 from ja-pa/python-atomicwrites-udate
python-atomicwrites: update to version 1.4.0
2020-05-14 16:14:45 -07:00
Rosen Penev
aee7061658
Merge pull request #12165 from jefferyto/golang-tweaks
golang: Various improvements/tweaks
2020-05-14 16:13:44 -07:00
Rosen Penev
d9328d42bd
Merge pull request #12130 from jefferyto/python3-find-stdlib-depends
python3: Add script to help find standard library dependencies
2020-05-14 09:06:30 -07:00
Jeffery To
d4d78c2511 python3: Add script to help find standard library dependencies
This adds a script that searches a Python package's source code to find
imports for separately-packaged standard library modules.

The script can be run by calling make with the configure target and
"PY3=stdlib V=s" arguments, e.g.

    make package/python3-lxml/configure PY3=stdlib V=s

This also updates the readme on how to call this script, as well as more
information on Python package dependencies in general.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-14 23:38:24 +08:00
Jeffery To
da3fb97b9c golang: Set/reset default platform options for target Go compiler
Because the first stage for building target Go is actually a host build,
the default platform options (GO386, GOARM, etc.) are detected from the
host. These values are written to a source file and kept when building
the second stage.

This modifies this source file to set the appropriate values for the
target platform, and reset values for other platforms to their
cross-compiling / most compatible defaults.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-14 17:45:18 +08:00
Jeffery To
46017682f4 golang: Set buildid and enable stripping for Go compiler
Doing both should make the compiler reproducible.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-13 16:07:27 +08:00
Jeffery To
74b02ca24c golang: Blacklist older (or no) FPUs rather than whitelist newer FPUs
This should be more future-proof (presumably all future ARM FPUs will be
at least VFPv3).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-13 16:07:27 +08:00
Jeffery To
25a7f0045e golang: Move "go install" arguments logic, add buildid
The moves the setting of arguments for "go install" out of the shell
script in GoPackage/Build/Compile and into make.

This also adds the -buildid link flag for reproducible builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-13 16:07:27 +08:00
Jeffery To
d2f5e6966b golang: Rename GoPackage/Environment to GO_PKG_VARS
The variable is a list of shell variables; the new name is more in-line
with other parts the build system (CONFIGURE_VARS, MAKE_VARS, etc.).

GoPackage/Environment is kept (for now) in case other feeds are using
it.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-13 16:07:20 +08:00
Jeffery To
bcdd6e64fa golang: Remove RSTRIP definition from golang-package.mk
Since RSTRIP is defined in rules.mk as a recursively expanded variable,
there is no need to define it again after setting STRIP in
golang-package.mk.

This also adds a note to the comment for GO_PKG_LDFLAGS to say that -s
and -w flags are not necessary.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-13 00:18:50 +08:00
Jeffery To
49a2ff493b golang: Add option to use external bootstrap Go
The default bootstrap Go (Go 1.4) can only be compiled on a limited
number of platforms compared to newer versions of Go.

This adds a config option to use an external bootstrap Go, e.g.
installed through the build system's package manager or downloaded from
golang.org.

See: https://github.com/openwrt/packages/issues/11731

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-12 17:42:48 +08:00
Hannu Nyman
c5e30e529e
Merge pull request #12148 from ja-pa/python3-maxminddb-update
python3-maxminddb: update to version 1.5.4
2020-05-12 09:38:36 +03:00
Alexandru Ardelean
fa3be5cf09 django: bump to version 3.0.6
Also add 'Peter Stadler <peter.stadler@student.uibk.ac.at>' as
co-maintainer.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-05-12 09:19:25 +03:00
Jan Pavlinec
94ca5a5760
python-atomicwrites: update to version 1.4.0
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-05-12 02:03:22 +02:00
Jan Pavlinec
a384deb455
python3-maxminddb: update to version 1.5.4
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-05-12 00:59:20 +02:00
Eneas U de Queiroz
8c609f878d
python-certifi: bump to 2020.4.5.1, update email
Besides the version bump, maintainer e-mail address was updated.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-05-08 11:44:34 -03:00
Peter Stadler
5769ac8304 python-pytz: update version to 2020.1
Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
2020-05-02 14:39:02 +02:00
Rosen Penev
420cf65304
vala: update to 0.48.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-01 12:55:14 -07:00
Eneas U de Queiroz
df229aaddd
Merge pull request #12019 from cotequeiroz/jamvm_host
jamvm: remove unneeded host build, and the package itself
2020-05-01 09:54:26 -03:00
Josef Schlehofer
b83e83ca17
Merge pull request #12026 from jefferyto/python-dns-pypi
python-dns: Change download source, remove incorrect PKG_CPE_ID
2020-05-01 14:53:45 +02:00
Eneas U de Queiroz
4201a4a4fb
jamvm: remove package
Java support is no longer feasible in openwrt.  It's outdated, and can't
be usd without classpath, which has been removed.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-05-01 09:42:15 -03:00
Hannu Nyman
fe38ef3472
Merge pull request #12028 from jefferyto/python-schema-0.7.2
python-schema: Update to 0.7.2, change download source to PyPI
2020-05-01 13:45:35 +03:00
Hannu Nyman
021a9ec83c
Merge pull request #12027 from jefferyto/python-decorator-4.4.2
python-decorator: Update to 4.4.2, change download source to PyPI
2020-05-01 13:45:13 +03:00
Jeffery To
10fb31451e django-simple-captcha: Change download source to PyPI
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 05:14:11 +08:00
Jeffery To
b333a95af6 python-schema: Update to 0.7.2, change download source to PyPI
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 05:11:08 +08:00
Jeffery To
0c83ce62c0 python-decorator: Update to 4.4.2, change download source to PyPI
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 05:02:50 +08:00
Jeffery To
b5ba871c8f python-dns: Change download source, remove incorrect PKG_CPE_ID
This changes the package to download from PyPI (using pypi.mk) and
removes the incorrect PKG_CPE_ID.

The CPE id was for Debian's python-dns package which contains PyDNS
("pydns" on PyPI). This package contains "dnspython" from PyPI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-01 04:53:48 +08:00
Eneas U de Queiroz
b7d429c466
jamvm: remove unneeded host build
Host build was added in 2972cc98e ("Add host build") because classpath
required a host java vm.  Now that classpath is gone, host build can be
removed as well.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-04-30 10:30:06 -03:00
Rosen Penev
5626b858a8
Merge pull request #12003 from jefferyto/python-cryptography-2.9.2
python-cryptography: Update to 2.9.2
2020-04-29 12:21:43 -07:00
Ian Cooper
3d5ba0f094 perl: fix compilation on x86_64 with glibc and ssp
perl fails to compile on x86_64 with glibc and stack smashing
protection enabled due to libssp not being specified in the
ldflags.

Signed-off-by: Ian Cooper <iancooper@hotmail.com>
2020-04-29 13:26:25 +01:00
Jeffery To
1e6b948963 python-cryptography: Update to 2.9.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 19:15:43 +08:00
Alexandru Ardelean
99ec808060 django-appconf: bump to version 1.0.4
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-04-28 12:58:11 +03:00
Alexandru Ardelean
91aff4068f django-compressor: bump to version 2.4
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-04-28 12:58:11 +03:00
Jeffery To
9f81ab895e python3: Fix host build tool names recorded in target files
Python will record the values of CC, CXX, AR, and READELF (and other
configure options) used during compilation. pip will use these programs
when asked to compile extension modules on the target device.

* If ccache is used during build, CC and CXX will be ccache_cc and
  ccache_cxx, respectively, which are not available on-device (#11912).

* If an external toolchain is used during build, the values of these
  variables will contain the external toolchain prefix, which may not be
  available on target.

* If the normal toolchain is used during build, AR and READELF will
  contain the toolchain prefix, but the names of ar and readelf
  on-device do not contain the prefix; they are named "ar" and
  "readelf".

This changes the values of these variables in Python's files to match
the names available on-device, and without any toolchain prefix.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-27 14:10:53 +08:00
Michael Heimpold
e364597b16 php7-pecl-dio: upgrade to 0.2.0
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2020-04-26 20:58:46 +02:00
Jeffery To
6678689f44 python-lxml: Use default Python package build recipe
This also updates the package's metadata (title, description, license).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-25 00:34:11 +08:00
Jeffery To
11bc05763d python3-pip: Fix error when installing packages that require compilation
This addresses one of the issues raised in #11912.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-24 21:09:37 +08:00