Commit Graph

45 Commits

Author SHA1 Message Date
termux-pacman-bot
fb0cdae74d tree-wide: TERMUX_PKG_PYTHON_COMMON_DEPS -> TERMUX_PKG_PYTHON_COMMON_BUILD_DEPS
- Planned here, and separated into another PR for easier review and source control: https://github.com/termux/termux-packages/pull/23652#discussion_r2206041304

%ci:no-build
2026-01-18 16:06:30 +00:00
termux-pacman-bot
f38dd0ee93 tree-wide: port debpython to termux
- debpython is the commands `py3compile` and `py3clean` from Debian. I
  am calling them that because a large chunk of their source code is
  found inside a folder inside Debian's source code named "debpython"
  - 5348f70466

- rather than packaging `.pyc` files into packages, `py3compile` and
  `py3clean` can be called from `postinst` and `prerm` scripts to
  generate all `.pyc` for the `.py` files in the package immediately
  after the package is installed, and remove all `.pyc` files immediately
  before uninstalling the package, respectively

- fixes the error `trying to overwrite '/data/data/com.termux/files/usr/lib/python3.12/__pycache__/cProfile.cpython-312.pyc'` when packages were built on-device, but at the same time, also:

- prevents the warnings `dpkg: warning: while removing python, directory '/data/data/com.termux/files/usr/lib/python3.12/site-packages' not empty so not removed` as long as no packages were installed using `pip`

- The `termux_step_create_python_debscripts.sh` can configure work on debpython (i.e. its `py3copile` and `py3clean` commands) from the glibc package `python-glibc`, if some glibc package is being compiled.

- New variables have been implemented:
- `TERMUX_PYTHON_CROSSENV_BUILDHOME` - location of crossenv's python build libraries.
- `TERMUX_PKG_PYTHON_RUNTIME_DEPS` - configures the installation of the python modules via pip3 in the pkg's debscripts. If not configured in the package, it will use the value from `TERMUX_PKG_PYTHON_TARGET_DEPS`. If the variable is set to `false`, then the customization of installing python modules will be disabled, even if the `TERMUX_PKG_PYTHON_TARGET_DEPS` variable is set in the package.
- `TERMUX_SUBPKG_PYTHON_RUNTIME_DEPS` - configures the installation of the python modules via pip3 in the subpkg's debscripts.

- Implemented reconfiguration of prefixes in python module `sysconfig` and setting in `TERMUX_PYTHON_CROSSENV_BUILDHOME`, so that python modules from crossenv building can specify system paths of termux for correct compilation.

- Added automatic addition of `python-glibc{-glibc}` dependency when using the `TERMUX_PKG_PYTHON_RUNTIME_DEPS` (for pkg; will be disabled, i.e. will not be added, if the variable is set to `false`) or `TERMUX_SUBPKG_PYTHON_RUNTIME_DEPS` (for subpkg) value.

> How to add a new Python package after this?

Everything is the same, except, now, this block is no longer necessary in `build.sh`.

```bash
termux_step_create_debscripts() {
	cat <<- EOF > ./postinst
	#!$TERMUX_PREFIX/bin/sh
	echo "Installing dependencies through pip..."
	pip3 install ${TERMUX_PKG_PYTHON_TARGET_DEPS//, / }
	EOF
}
```

- Instead, `scripts/build/termux_step_create_python_debscripts.sh` can now detect the presence of `pip` package lists in `$TERMUX_PKG_PYTHON_TARGET_DEPS`, `$TERMUX_SUBPKG_PYTHON_TARGET_DEPS`, and the `METADATA` file of the Python package if it exists, and automatically insert them as a block into the `postinst` script for all relevant packages.
- `$TERMUX_PKG_PYTHON_TARGET_DEPS` is used for `pip` dependencies that are both on-device build-time and on-device run-time dependencies, and `$TERMUX_PKG_PYTHON_RUNTIME_DEPS` is used for runtime-only `pip` dependencies. `$TERMUX_PKG_PYTHON_RUNTIME_DEPS` overrides `$TERMUX_PKG_PYTHON_TARGET_DEPS` for runtime dependencies,
  - i.e. if `TERMUX_PKG_PYTHON_RUNTIME_DEPS` is not specified, but `TERMUX_PKG_PYTHON_TARGET_DEPS` is, then `TERMUX_PKG_PYTHON_TARGET_DEPS` will be used as both on-device build and on-device runtime dependencies,
  - but if `TERMUX_PKG_PYTHON_RUNTIME_DEPS` is specified, then `TERMUX_PKG_PYTHON_TARGET_DEPS`, if specified, is used only for on-device build-time dependencies.
- If `python-pip` is not already in the dependencies of any package that needs it, the build will fail with an error instructing maintainers to add `python-pip` to the dependencies of the package that needs it.

Co-authored-by: Maxython <mixython@gmail.com>
2026-01-18 09:39:03 +00:00
termux-pacman-bot
e542c5897f bump(main/borgbackup): 1.4.3
This commit has been automatically submitted by Github Actions.
2025-12-02 12:48:24 +00:00
termux-pacman-bot
60e40ebab5 bump(main/borgbackup): 1.4.2
This commit has been automatically submitted by Github Actions.
2025-11-01 00:50:01 +00:00
termux-pacman-bot
ae76323cc3 chore(main/borgbackup,boxes,brainfuck,brogue): Rebuild
Rebuild some packages to get 16 kb page size.
2025-09-08 13:13:33 +00:00
termux-pacman-bot
25d1a9e4c4 bump(main/borgbackup): 1.4.1
This commit has been automatically submitted by Github Actions.
2025-04-19 00:16:42 +00:00
termux-pacman-bot
c693b929a2 fix(main/borgbackup): Fix building with python 3.12
Remove pinning of setuptools to 65 to fix build with python 3.12.
2024-10-06 15:09:31 +00:00
termux-pacman-bot
ca6b0cc6ca chore(main/borgbackup): Remove unused builddir option
That option is used with meson backend which is not used here.
%ci:no-build
2024-07-18 19:08:36 +00:00
termux-pacman-bot
c8c44575f1 enhance(main/borgbackup): use pyproject.toml (PEP-518) to build the package
Remove the redundant package name check after make install.
The python wheel file name already has correct version and name.
#20889
2024-07-18 09:08:50 +00:00
termux-pacman-bot
8580981c92 bump(main/borgbackup): 1.4.0 (#20828)
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>
- add a guard for ensuring the package name was set correctly
- also set a maintainer
2024-07-18 06:39:49 +00:00
termux-pacman-bot
03aa78b533 upgpkg(main/borgbackup): 1.2.8
Signed-off-by: Kevin Williams <admin@utermux.dev>
2024-04-04 03:10:05 +00:00
termux-pacman-bot
4d35db657b upgpkg(main/borgbackup): 1.2.7
Signed-off-by: Kevin Williams <admin@utermux.dev>
2023-12-03 03:01:41 +00:00
termux-pacman-bot
ac4851bda2 upgpkg(main/borgbackup): 1.2.6 2023-10-20 12:01:41 +00:00
termux-pacman-bot
32affd139f tree-wide: make python packages use termux_setup_python_pip
Instead of termux_setup_python_crossenv.
2023-01-16 06:35:10 +00:00
termux-pacman-bot
637733f85b borgbackup: build-pip install Cython 2022-10-30 03:14:18 +00:00
termux-pacman-bot
109b0c82cc use wheel to build python-crossenv packages
%ci:no-build
2022-10-30 00:47:42 +00:00
termux-pacman-bot
9dee00b474 borgbackup: Revbump to rebuild against Python 3.11 2022-10-29 22:06:58 +00:00
termux-pacman-bot
f3275ee5bc borgbackup: Use termux_step_make_install
instead of termux_step_make.

%ci:no-build
2022-10-27 17:43:36 +00:00
termux-pacman-bot
426b98c702 borgbackup: Use pip install 2022-10-27 15:41:55 +00:00
termux-actions[bot]
7685c57833 packages/borgbackup 2022-03-02 03:21:54 +00:00
termux-actions[bot]
5ce8b088e3 packages/apache2&&packages/borgbackup 2022-03-01 13:23:19 +00:00
termux-actions[bot]
b263d276a6 packages/apache2&&packages/borgbackup 2022-02-26 04:48:02 +00:00
Lucy Phipps
4b24c98ebc asciidoc, borgbackup, calcurse: bump 2021-10-06 02:25:37 +01:00
Lucy Phipps
e644c07401 setup-ubuntu.sh: install pip if using deadsnakes 2021-10-06 01:23:00 +01:00
Leonid Pliushch
27afd9e665 auto updates: migrate config from github-projects.txt to build.sh-specific
Re-enable automatic updates after deleting github-projects.txt.

%ci:no-build
2021-10-04 13:43:31 +03:00
Leonid Pliushch
d4816a836c borgbackup: update use-distutils.patch 2021-07-26 13:32:27 +03:00
Leonid Pliushch
ea20bf9f43 borgbackup: update use-distutils.patch 2021-07-26 13:25:08 +03:00
Leonid Pliushch
80764d3e5a borgbackup: force use distutils instead of packaging
Should fix https://github.com/termux/termux-packages/issues/7174
2021-07-26 13:18:08 +03:00
Leonid Pliushch
9452ed8d19 borgbackup: update src-borg-xattr.py.patch 2021-07-16 22:09:44 +03:00
Leonid Pliushch
2ff0423677 borgbackup: update to 1.1.17 2021-07-16 21:56:59 +03:00
suhan-paradkar
4196d872d8 update packages (#6699)
borgbackup: 1.1.16

calcurse: 4.7.1

ccache: 4.2.1

gegl: 0.4.30

goaccess: 1.4.6
2021-04-28 14:12:46 +03:00
Termux Github Actions
37c7970aaa borgbackup: update to 1.1.15 2020-12-25 12:26:15 +00:00
Leonid Pliushch
37375312b9 explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00
Henrik Grimler
99826e946e borgbackup: update to 1.1.14 2020-11-04 20:45:42 +01:00
Leonid Pliushch
044a007d93 borgbackup: rebuild with python 3.9 2020-10-08 18:54:24 +03:00
Henrik Grimler
dcb926abd4 Copy LICENSE file for some licenses instead of using generic one (#5478)
* termux-licenses: remove licenses that contain copyright information

These licenses cannot be taken from the common termux-licenses package as the copyright information needs to be distributed with the package as well.

271 packages in the main repository needs to be rebuilt after this change.

* termux_step_install_license: remove duplicated comment

* Bump packages that has a license with copyright information

We need to include this copyright information in the package so need
to rebuild them now that termux_step_install_license has been
modified.

The affected licenses are: MIT, ISC, PythonPL, Openfont-1.1, ZLIB,
Libpng, BSD, BSD 2-Clause, BSD 3-Clause.

* zlib: extract license file from zlib.h

* xorgproto: include all individual license files in package

* libgcrypt: include LICENSE file in package

It contains some copyright information so needs to be included in package

* libcrypt: add a dummy BSD 2-Clause license

According to homepage it is suppose to be BSD 2-Clause, but original
project did not include a license file

* libandroid-spawn: add LICENSE file to package

* libandroid-glob: add license file to package

* licenses: allow for comma separated TERMUX_PKG_LICENSE_FILE

%ci:no-build

* libicu: fix so that termux_step_install_license finds license file

%ci:no-build

* termux_step_install_license: check for license file as "License"

%ci:no-build

* libtiff: specify TERMUX_PKG_LICENSE_FILE

%ci:no-build

* asciidoctor: install license to standard location

* krb5: specify license file

* libdb: specify path to license file

%ci:no-build

* libprotobuf: specify path to license file

* darkhttpd: extract license file from darkhttpd.c

* w3m: ensure host libraries are not picked up

* w3m: extract LICENSE file from dock/README

* liblua{,52}: extract license files from doc/readme.html

* termux_step_install_license: look for License.txt as well

* dart: specify path to LICENSE file

* nim: specify license file

* runit: specify license file

* termux_step_install_license: look for LICENSE.TXT as well

* ossp-uuid: extract LICENSE from README

* pigz: extract LICENSE from pigz.c

* ttyrec: extract LICENSE from ttyrec.c

%ci:no-build

* bmon: specify license files

Most of the source files are licensed under MIT, it is not clear (to me) which
parts that are licensed under BSD 2-Clause.

%ci:no-build

* wordgrinder: specify license files

* fdupes: add LICENSE

* autossh: add LICENSE patch

* cmake: specify LICENSE file

* dos2unix: specify LICENSE file

* gnuplot: specify LICENSE file

* termux_step_install_license: look for variants of "copyright" also

* picolisp: specify LICENSE file

* lua-lpeg: extract license file

* tidy: specify license file

* gflags: specify LICENSE file

* timewarrior: fix src url

It seems to have been changed.

* postgresql: specify license file

* ttyrec: fix license patch header

* fossil: specify license file

* fmt: specify license file

* i2pd: specify license file

* leptonica: specify license file

* imgflo: add license file patch

* ired: add license file from ired github repo

* libzen: specify license file

* libmediainfo: specify license file

* mediainfo: specify license file

* tty-clock: add license patch

* samefile: add license patch

* quickjs: add license patch

* docbook-xml: add LICENSE patch

* docbook-xsl: specify LICENSE files

* gnuplot: configure with --without-latex

* timewarrior: add libshared to SRCURL as well

The non-release archives does not contain gitsubmodules so we need to
download it manually.

* restic: switch back to using 0.9.6 archive

* dart: revert revision bump

dart's SDK does not fully support python3 yet, and trying to solve
that is not entirely trivial. We save the dart bump (and upgrade to
2.8.4) for another day.

%ci:no-build
2020-07-07 18:45:45 +02:00
Leonid Pliushch
3a4db2b050 borgbackup: update to 1.1.13 2020-06-20 21:16:26 +03:00
willsALMANJ
739be985e7 Remove unnecessary patch to borgbackup (#5023)
Co-authored-by: Will Shanks <willshanks@us.ibm.com>
2020-03-12 06:49:20 +01:00
Leonid Pliushch
fd92473842 borgbackup: update src-borg-repository.py.patch 2020-03-08 23:14:04 +02:00
Leonid Pliushch
29311a527d borgbackup: update to 1.1.11 2020-03-08 22:35:22 +02:00
Leonid Pliushch
7de34892ce borgbackup: remove pycache from correct location 2019-12-30 03:32:27 +02:00
Leonid Pliushch
4c3bc78a3f borgbackup: append/remove package path in easy-install.pth via debscripts
Related issue - https://github.com/termux/termux-packages/issues/4711.
2019-12-30 03:12:16 +02:00
Leonid Pliushch
fa328d0018 asciinema & borgbackup: remove common pycache dir
It contains file 'site.cpython-38.pyc' which is not needed.
2019-12-13 15:43:49 +02:00
Leonid Pliushch
12685837a8 borgbackup: remove unneeded things (site.py + easy-install.pth)
These files are not used at runtime and can be removed to
prevent conflicts with other packaged python modules.

Issue: https://github.com/termux/termux-packages/issues/4647
2019-12-13 12:56:10 +02:00
Rahul Amaram
ff55413b93 Added new packages borgbackup and its dependency libacl (#4644)
* Added new packages borgbackup and its dependency libacl
2019-12-12 01:11:29 +02:00