Commit Graph
100 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
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 f350b5620b seafile-server: Update to 7.1.4, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-21 15:53:54 +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
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 19694767f2 measurement-kit: Add static build dependencies
When measurement-kit is a build dependency (in PKG_BUILD_DEPENDS) of
another package, this package's build dependencies (in DEPENDS) may not
be selected and so may not be built.

(This package does not produce a shared library; the measurement-kit
target package contains a program that is statically linked to the
measurement-kit library. Other packages may include measurement-kit in
their PKG_BUILD_DEPENDS to link to the static library but not include
measurement-kit as a run-time dependency.)

This adds PKG_BUILD_DEPENDS to this package to ensure that its
dependencies are built in this case.

This also adds MEASUREMENT_KIT_BUILD_DEPENDS that dependant packages
should select to ensure that this package's dependencies are correctly
built. (libevent2-openssl and libevent2-pthreads need to be selected for
the necessary functionality to be enabled when compiling libevent2.)

This also adds openssl as an explicit dependency; it appears to be used
directly by this package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-19 17:44:14 +08:00
Jeffery To 70064ea4ad etesync-server: Minor Makefile cleanup
* Replace creating an empty PYTHON3_PKG_DIR with setting filespec to an
  empty value

* Disable the default Python package build recipe (with
  PYTHON3_PKG_BUILD:=0) and set an empty Build/Compile

* Remove VARIANT:=python3 and PROVIDES (providing the same name as the
  package)

* Add PKG_BUILD_PARALLEL:=1

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-19 00:19:54 +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
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
Jeffery To dec17eb36c treewide: Enable VFP/NEON optimizations for aarch64
For speexdsp, support for NEON on aarch64 was added in 1.2.0[1].

[1]: https://github.com/xiph/speexdsp/pull/8

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-12 16:03:07 +08:00
Jeffery To 2d99ee3004 treewide: Update ARM NEON/VFP detection
With openwrt/openwrt@8dcc108760, the ARM
FPU compiler options are no longer part of CONFIG_TARGET_OPTIMIZATION.

This updates various packages that look for NEON/VFP support to search
CONFIG_CPU_TYPE instead.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-11 03:10:20 +08:00
Jeffery ToandEneas U de Queiroz 1c54706b97 libevhtp: Fix dependencies not selected when building static library
When libevhtp is added to a package's PKG_BUILD_DEPENDS (i.e. for
seafile-server), libevhtp's target package dependencies are not
automatically selected, in particular libevent2-openssl and
libevent2-pthreads.

Moreover, if libevent-openssl and libevent2-pthreads are not selected,
OpenSSL and thread support are disabled when compiling libevent2, which
in turn causes a compile error when building libevhtp.

This adds a config option, LIBEVHTP_BUILD_DEPENDS, that will select
libevent2-openssl and libevent2-pthreads (via LIBEVHTP_BUILD_SELECT)
when it is selected.

Other build dependencies are moved to PKG_BUILD_DEPENDS.

This also updates seafile-server to remove the (indirect) dependencies
added in 13d843fec1 and instead select
LIBEVHTP_BUILD_DEPENDS.

This also updates the maintainer's email address and adds myself as
another maintainer.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-05 23:03:30 -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
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
Jeffery To bd48589e21 radicale2: Clean up Makefile
* Remove preinst, the default prerm script will stop the service
* Use default Python package filespec and shebang fix

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 17:48:46 +08:00
Jeffery To f304e57b35 uwsgi: Use pypi.mk to download source tarball
This also removes PKG_BUILD_DIR, which does not need to be explicitly
set.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 16:49:42 +08:00
Jeffery To 32f727f0ee scapy: Use Python packaging, PyPI download
This updates the package to use the default Python package build recipe,
adds a src package, and changes to download from PyPI (using pypi.mk).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 16:25:20 +08:00
Jeffery To 1929baac6d bash: Enable system-wide .bashrc file, source /etc/shinit
This enables a system-wide .bashrc file (/etc/bash.bashrc), as well as
some other options related to startup files, and sources /etc/shinit for
interactive shells.

Fixes https://bugs.openwrt.org/index.php?do=details&task_id=3019.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 04:38:24 +08:00
Jeffery To dc5f2df6a4 bash: Import upstream patches
Source:
https://ftp.gnu.org/gnu/bash/bash-5.0-patches/
(bash50-003 to bash50-017)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-29 04:38:24 +08: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
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
Jeffery To 125f9fca87 python-gnupg: Update to 0.4.6
This also updates all package metadata (it appears this information was
not updated when the package switched from packaging "gnupg" from PyPI
to "python-gnupg"), updates the package to use the default Python
package build recipe, and adds a src package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 05:25:52 +08:00
Jeffery To 97b435c8a5 python-appdirs: Fix description
This fixes the incorrect description for this package, as well as adding
a more descriptive title.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 04:38:43 +08:00
Jeffery To 78ef6a9d31 django1: Remove common package
python-django1-common was added to allow both Python 2 and 3 versions of
Django 1.11 to be installed at the same time. With the removal of Python
2, this package is no longer necessary.

This removes this common package and updates the CONFLICTS value for the
django package.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 04:24:23 +08:00
Jeffery To 7bf5ed1eda vobject: Remove maintainer
The previous maintainer has removed himself from his other packages
(#11612). This package appears to have been omitted by mistake.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 03:47:12 +08:00
Jeffery To 2e14e639c4 python-zope-interface: Update to 5.1.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 03:40:11 +08:00
Jeffery To a00a0230b4 golang: Update to 1.14.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 02:40:50 +08:00
Jeffery To 2210c4a60d python-packages: Clean up Makefiles
This removes:

* Python 3 variants (VARIANT:=python3)

* "for Python3" from package titles

* Package selection condition from package dependencies, e.g.
  +PACKAGE_python3-six:python3-light replaced with +python3-light

* "Default" package information sections, e.g.
  Package/python-six/Default removed and package details merged into
  Package/python3-six

* "(Variant for Python3)" from package descriptions

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-22 16:36:55 +08:00
Jeffery To 89ae10ed71 python3: Change PYTHON_VERSION references to PYTHON3_VERSION
PYTHON_VERSION is a holdover from Python 2; all Python 3 variables are
prefixed with PYTHON3 (or some variation with "3").

This updates all uses of PYTHON_VERSION to PYTHON3_VERSION.

This also sets PYTHON3_PKG_BUILD:=0 before python3-package.mk is
included in the python3 Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 81e99fa7ff seafile: Remove Python variants, update Python packaging
This removes Python build variants and adds PYTHON3_PKG_BUILD:=0 (where
appropriate) for the Seafile packages.

This also updates the way the Python bindings packages are packaged,
using automake installation instead of manual install recipes.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 1bc2f4f3c6 treewide: Remove Python variants for non-Python packages
This removes Python-related build variants, and adds
PYTHON3_PKG_BUILD:=0 and minor build adjustments (where appropriate),
for non-Python packages. There should be no changes to build output.

This also updates some include paths for python3-package.mk and/or
python3-host.mk to be relative to the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 9636f6f447 python3: Use PYTHON3_PKG_BUILD to control default Python package build
This replaces the use of BUILD_VARIANT with PYTHON3_PKG_BUILD to opt
in/out of the default Python package build recipe (Py3Build/Compile).

PYTHON3_PKG_BUILD defaults to true (1), i.e. if a package includes
python3-package.mk, then by default it will set the package's
Build/Compile to Py3Build/Compile.

If PYTHON3_PKG_BUILD is set to 0 before python3-package.mk is included,
then Build/Compile will not be modified.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 58719a3c4b python3: Remove MIPS16 changes from python3-package.mk
There are no bug reports or other evidence to suggest Python is not
compatible with MIPS16 compilation.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To ba127c155a python3: Minor edits for python3-package.mk
* Remove PYTHON3_BIN_DIR, it isn't used anywhere in the repo
* Rephrase *-src package description
* Reduce Py3Package/$(1)/install indentation

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To c9b260f5ae python3: Add canned recipe to invoke filespec processing
This extracts filespec export and processing into
Py3Package/ProcessFilespec.

This also allows the filespec variable to be explicitly set to an empty
value, to bypass filespec processing. (The default filespec is also
available as Py3Package/filespec/Default to be explicitly assigned to
the filespec variable.)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 3cdca38dce python3: Move functionality into python3-package.mk
This moves functionality from python-package-install.sh into
python3-package.mk, so that they can be reused separate from filespec
processing.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 0bc1bf5578 python3: Reorder recipes in python3-package.mk
Group Python3/* recipes together, group Py3Package and Py3Build
together.

This also adds headings and whitespace to separate major sections.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To fc8387614c python3: Rename canned recipes in python3-package.mk
This renames "internal" recipes to use the Python3/ prefix and clarifies
the names (RunTarget to Run, Mod to ModSetup, Shebang to FixShebang).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 87b8f45230 python3: Rename canned recipes in python3-host.mk
This changes the recipe name prefix from Build/Compile/HostPy3 to
HostPython3, and clarifies some of the names (RunHost to Run, Mod to
ModSetup).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:11 +08:00
Jeffery To 3642b18441 python3: Remove HostPython3 in python3-host.mk
HostPython3 only adds a few environment variables before running host
Python. It has only two users, Build/Compile/HostPy3RunHost and
Build/Compile/HostPy3RunTarget.

HostPython3 also accesses $(PYTHON3PATH), even though python3-host.mk
does not include python3-package.mk, where the variable is defined.

This removes HostPython3 and has its two users run host Python directly.
This also combines the environment variables of HostPython3 and the two
users into HOST_PYTHON3_VARS and PYTHON3_VARS.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:07 +08:00
Jeffery To 302f4d17e3 libmraa,libupm: Disable default Python package build recipe
This adds PYTHON3_PKG_BUILD:=0, to disable the default Python package
build recipe. There should be no changes to build output.

This also updates include paths for python3-package.mk to be relative to
the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-18 20:42:59 +08:00
Jeffery To 2dfdef66a3 python3: Remove include guard for python3-host.mk
Since it only defines variables and canned recipes, it is safe to
include python3-host.mk more than once.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-17 23:19:13 +08:00
Jeffery To 7328bcc15e seafile-server: Update to 7.1.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 6138fe57fe seafile-seahub: Update to 7.1.3, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 239948b261 seafile-ccnet: Update to 7.1.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 8b84576948 libsearpc: Update to "new" version, switch to git download method
Upstream changed the v3.2.0 tag. Previously it referred to
haiwen/libsearpc@23f581b39f; now it refers
to haiwen/libsearpc@d1fd7518a2.

This changes the packaged version to the "new" v3.2.0 and switches to
using the git download method (technically the github_archive method),
since the codeload filenames of the previous and current versions are
the same but the files have different hashes.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-08 17:06:35 +08:00
Jeffery To 8659757df8 python-cryptography: Update to 2.9, remove setup patch
Since cffi is installed by HOST_PYTHON3_PACKAGE_BUILD_DEPENDS, it
shouldn't be necessary to clear setup_requirements anymore.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-06 15:54:04 +08:00
Jeffery To 3f7f4df32c python-zope-interface: Update to 5.0.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-06 15:13:38 +08:00
Jeffery To 932bfe4cf3 python3-pip: Symlink pip3 to pip3.8
Currently, python3-pip installs the same script as pip3 and pip3.8 to
usr/bin. This changes pip3 to be a symlink to pip3.8.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-04 06:21:39 +08:00
Jeffery To 8c7039fa7d python: Update readme
* Replace the Python 2 pending removal notice/schedule with a brief
  message about the removal
* Replace mentions of "Python & Python 3" with just "Python" (references
  to the version number are kept only in cases where it is necessary)
* Update Makefile example code to use Python 3 conventions/names

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-04 03:09:25 +08:00
Jeffery To 2e48a26b17 python: Remove package
This package will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-03 03:26:40 +08:00
Jeffery To 658b1b6758 python-libraries: Remove Python 2 variants
The Python 2 variants will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-02 14:57:30 +08:00
Jeffery To c37b15e1c4 python-libraries: Remove Python 2-only packages
These are either libraries that backport Python 3 features for Python 2
programs, or libraries that have not had Python 3 variants added to them
by anyone.

These packages will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-02 14:57:30 +08:00
Jeffery To 92e1ce5c8e i2c-tools: Remove Python 2 SMBus bindings package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:09:24 +08:00
Jeffery To 2fae7ce7de seafile-server: Remove Python 2 bindings
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:08:50 +08:00
Jeffery To 155eb27036 seafile-ccnet: Remove Python 2 bindings
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:08:15 +08:00
Jeffery To 038d0831cd freeradius3: Remove Python 2 module package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:07:45 +08:00
Jeffery To 9c020b1df8 libupm: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:07:10 +08:00
Jeffery To eab7addaeb libtalloc: Remove Python 2 host build depends
This should not be needed and was probably added by mistake.

See https://github.com/openwrt/packages/pull/9686#discussion_r371552924

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:05:11 +08:00
Jeffery To 6872f22764 libsearpc: Remove Python 2 bindings
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:00:40 +08:00
Jeffery To ae090fa565 libmraa: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 01:58:51 +08:00
Jeffery To 2ec2d69e13 elektra: Remove Python 2 plugin package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 01:58:03 +08:00
Jeffery To 2aaf4a6aee boost: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 01:56:02 +08:00
Jeffery To d50f961f06 yunbridge: Remove package
This version of yunbridge will cease to function once Python 2 is
removed from the feed. It does not appear[1] that upstream will be
updated with a version that uses Python 3.

This package will be added to the abandoned packages feed.

[1]: https://github.com/arduino/YunBridge/issues/31

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery To 29aca90911 obfsproxy: Remove package
This version of obfsproxy will cease to function once Python 2 is
removed from the feed. Upstream has indicated[1] that this package will
not be updated to use Python 3.

This package will be added to the abandoned packages feed.

[1]: https://trac.torproject.org/projects/tor/ticket/31057

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery To d9bdb432fe danish: Remove package
This version of danish will cease to function once Python 2 is removed
from the feed. The maintainer has indicated[1] that this package will
not be updated to use Python 3.

This package will be added to the abandoned packages feed.

[1]: https://github.com/openwrt/packages/issues/8893#issuecomment-489312682

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery To cec41bccaf mailman: Remove package
This version of mailman will cease to function once Python 2 is removed
from the feed. There does not appear to be any interest in updating this
package to a current version that uses Python 3.

This package will be added to the abandoned packages feed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-31 14:54:23 +08:00
Jeffery ToandNuno Goncalves 067c93b028 nmap: Update to 7.80, add full variant, switch to Python 3
* Update to 7.80

* Add "full" variants for nmap and ncat that support Lua scripts (and
  OpenSSL)

* Replace libcxx fix with upstream patch[1] (CHANGELOG change was
  removed)

* Switch ndiff to use Python 3 (using a patch from Debian[2], which
  comes from an upstream PR[3] plus a port of ndiff/setup.py)

[1]: https://github.com/nmap/nmap/commit/ea4e2d6657103a2c3d6f543a1a8619eb4d4472c8
[2]: https://salsa.debian.org/pkg-security-team/nmap/-/blob/0510c602dd45f4dc0b06a6f422a9b0855564ddbb/debian/patches/0004-Python3-port-of-ndiff.patch
[3]: https://github.com/nmap/nmap/pull/1807

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-29 22:26:07 +01:00
Jeffery To cf1579a75c newt: Remove python_init_once.patch
It was pointed out in #11504 that the code in python_init_once.patch is
incorrect; the patch does not prevent newtInit() from being called more
than once (in fact it is called twice the first time initScreen() is
called).

Testing without the patch, using the example code from the corresponding
Debian bug report[1], did not result in any segfaults.

This removes the patch from the package build.

Supersedes #11504.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557960#5

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-24 15:51:55 +08:00
Jeffery To 7662e1ea9b python-zope-interface: Update to 5.0.1, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-24 01:18:33 +08:00
Jeffery To 633c81e7a9 python-twisted: Update to 20.3.0, refresh patches
This update includes fixes for:
* CVE-2020-10108
* CVE-2020-10109

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-23 23:17:45 +08:00
Jeffery To 5f392c62a5 golang: Update to 1.14.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-23 21:25:52 +08:00
Jeffery To 7513448d20 python3: Update to 3.8.2, fix python3-xml dependency
xml.sax.saxutils has a dependency on urllib[1].

[1]: https://github.com/python/cpython/blob/v3.8.2/Lib/xml/sax/saxutils.py#L6

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-20 16:30:22 +08:00
Jeffery To a178662fce python-zope-interface: Update to 4.7.2, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-17 02:04:38 +08:00
Jeffery To 48af5b2abb python-enum34: Update to 1.1.10, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-17 01:49:24 +08:00
Jeffery To 931dcfe3aa python-pycparser: Update to 2.20
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 22:46:25 +08:00
Jeffery To cbfd166b15 seafile-server: Update to 7.1.2, revamp package
* Package scripts that are shipped by upstream in their binary download

  * Includes setup scripts (setup-seafile.sh to use SQLite,
    setup-seafile-mysql.{sh,py} to use MySQL) and control scripts
    (seafile.sh, seahub.sh)

  * Does not include seafile-admin, which is not shipped in upstream's
    binary download. Combined with the fact that it hasn't been updated
    to Python 3 suggests the script has been abandoned.

* Replace previous init scripts with a simplified script

  * Previous init scripts (seafile.init, seahub.init) were modified from
    older versions of seafile.sh and seahub.sh, but they haven't kept up
    with changes to upstream's scripts

  * New init script (seafile-server.init) start/stops both Seafile and
    Seahub (there is no need to control them separately) by calling
    upstream's control scripts

* Replace previous package config file with new config file

  * Options in previous config file (seafile.conf) were mainly for using
    Seahub in FastCGI mode. FastCGI was deprecated in Django 1.7 and
    removed in 1.9; upstream's control script will only start Seahub
    using Gunicorn. (Options for Gunicorn including port number can be
    changed by editing /etc/seafile/conf/gunicorn.conf.py.)

  * New config file (seafile-server.config) has one option that controls
    where the Seafile/Seahub data directories are stored

* Patch scripts/binaries to use standard, system-wide directory
  locations

  * Script files (wrappers for binaries) in /usr/bin
  * Binaries (not meant to be run directly by the user) in /usr/libexec
  * Config files in /etc/seafile
  * Pid/socket files in /var/run/seafile
  * Logs in /var/log/seafile

* Include a new script to create the first admin account

  * With upstream's original scripts, the user is required to
    interactively create the first admin account when Seahub is started
    for the first time

  * The user will now use the new script (create-seafile-admin.sh) to
    create the first admin account after setup (using setup-seafile.sh
    or setup-seafile-mysql.sh) and before starting Seafile/Seahub

  * seahub.sh is patched to only check if there is at least one admin
    account and exit with an error if there is no admin account

* Remove build config options and add seafile-server-fuse package

  * The console option controls whether the console window is shown when
    Seafile server is run on Windows. It has no use on Linux.

  * The fuse option controls whether seaf-fuse is built. (seaf-fuse is a
    FUSE implementation that allows the Seafile database/file system to
    be mounted to a local directory.) seaf-fuse is now always built and
    is available in a separate package (seafile-server-fuse).

* Add myself as a maintainer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 17:46:30 +08:00
Jeffery To 1d275a8f27 seafile-seahub: Update to 7.1.2, refresh patches
Other changes include:

* Package Python bytecode in seafile-seahub, add source code package
  (seafile-seahub-src)

* Instead of changing default settings, custom settings will be added to
  /etc/seafile/conf/seahub_settings.py during seafile-server setup

* Use SEAFILE_UCI_DATA_DIR, which will be added to seafile-server

* Clean up Makefile formatting

* Add myself as a maintainer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 17:45:52 +08:00
Jeffery To 6b84a7d38d seafile-ccnet: Update to 7.1.2, add Python 3 bindings package
* Update package to 7.1.2

* Add Python 3 bindings package. The Python dependency is moved from
  seafile-ccnet to python3-seafile-ccnet.

* Refresh patches. The path to valac does not need to be patched in
  010-Makefile.patch because $(STAGING_DIR_HOSTPKG)/bin is already in
  the path during package build.

* Use SEAFILE_UCI_LOG_DIR and SEAFILE_UCI_SOCKET_DIR, which will be
  added to seafile-server

* Install binaries to /usr/libexec instead of /usr/bin, to mirror an
  upcoming change in seafile-server

* Clean up Makefile formatting

* Add myself as a maintainer

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-16 17:44:48 +08:00
Jeffery To 825400ee41 libsearpc: Update to 3.2.0, add Python 3 bindings package
This also moves the Python dependency from libsearpc to python3-searpc,
and adds myself as a maintainer.

Patches:
* 001-fix-memory-leak-GH-48.patch: This is (at this time) the only
  difference between the tags v3.2.0 and v3.2-latest.

* 002-no-future-import.patch: The future package is only needed for
  Python 2 compatibility; all of the functions/symbols it provides are
  available in Python 3.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:49:59 +08:00
Jeffery To 5792851234 django-ranged-response: Fix project URL
django-ranged-response is a fork of django-ranged-fileresponse, but they
did not update the URL on PyPI[1].

The URL in this change appears to be the correct one.

[1]: https://github.com/wearespindle/django-ranged-fileresponse/issues/10#issuecomment-509965566

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To 69c67fe9f7 django-postoffice: Update to 3.2.1
This version is not the latest available update, but is the last version
compatible with Python 2.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To 7f9d22b5ad django-jsonfield: Change packaged project
Previously, this packaged "django-jsonfield" on PyPI.

The only (in-tree) package that depends on this package is
django-postoffice.

django-post-office actually depends on "jsonfield" on PyPI.[1][2]

This changes the packaged project from "django-jsonfield" to
"jsonfield".

The version packaged here is not the latest available update, but the
last version compatible with Django 1.11 / Python 2.

[1]: https://github.com/ui/django-post_office/blob/v3.2.1/setup.py#L45
[2]: https://github.com/ui/django-post_office/issues/182

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To 22b4000d33 django-picklefield: Update to 2.1.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To ec8c7a8940 django-appconf: Update to 1.0.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00
Jeffery To ef5bb48c94 django-statici18n: Update to 1.9.0, add missing dependencies
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-14 04:35:00 +08:00