Commit Graph

1027 Commits

Author SHA1 Message Date
Yaksh Bariya
ca4ed956a4
upgpkg(gn): update to 20220502 2022-05-05 17:35:31 +05:30
Tee KOBAYASHI
31aa2d2056 new package: gimp 2022-05-03 07:06:00 +09:00
Aditya Alok
a32429090d
fix(check-auto-update): do not exit if a pkg cannot be auto-updated
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-30 15:10:51 +05:30
Aditya Alok
a43f6b8eba
feat(scripts/check-auto-update): improve script, minor clean up
- add checks for 'newest-tag' as fallback, if 'latest-release-tag' is not found
- adhere to DRY principle

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-30 03:34:19 +05:30
Yaksh Bariya
e907a4d073
chore(scripts/generate-bootstraps.sh): Use Cloudflare proxy
Should speed up downloads and also reduce situations where downloads
simply have to wait for timeout to happen (I have no idea why this
happens, probably nginx trying to cooldown some requests to prevent
(D)DoS?)
2022-04-28 15:17:07 +05:30
Maxython
b98972997f generate-bootstraps.sh: improvement - adding a way to change the package manager and work with db from the pacman service. 2022-04-28 03:14:44 +05:00
Aditya Alok
81007d0053
refactor(auto-update): do not append same log again
- Now auto update will be disable until issue is closed.
- Assign to GITHUB_ACTOR. Myself if GITHUB_ACTOR is Termux bot.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-28 01:37:40 +05:30
Henrik Grimler
4798011417 Revert "scripts/properties.sh: allow for jdk in /usr/lib/jvm/java-8-openjdk"
openjdk might not be available in the various places properties.sh is
sourced, as when linting the packages:
https://github.com/termux/termux-packages/pull/10331.  Revert the
commit to fix this issue.

This reverts commit a7e384c1d9.
2022-04-25 22:22:59 +02:00
Henrik Grimler
348c980d53
Dockerfile: remove unused parts of sdk and ndk in setup-android-sdk instead
Dockerfile setup script doesn't know exactly which ndk/sdk version we
are using, so can't cd to the right folder now that the version is
part of the folder name.
2022-04-25 22:04:41 +02:00
Henrik Grimler
ad4ca4acc4
Dockerfile: copy termux_download.sh to docker image as well
Since it is now used by setup-android-sdk.sh.
2022-04-25 21:50:50 +02:00
Henrik Grimler
a7e384c1d9
scripts/properties.sh: allow for jdk in /usr/lib/jvm/java-8-openjdk 2022-04-25 21:37:47 +02:00
Henrik Grimler
e3034c71fa
scripts/properties.sh: put sdk and ndk in versioned folders
To allow for having multiple sdk/ndk versions in ~/lib/.
2022-04-25 21:37:45 +02:00
Henrik Grimler
429881ad56
setup-android-sdk: use termux_download to get sdk and ndk zips 2022-04-25 21:37:41 +02:00
Aditya Alok
21353d954a
fix(setup ghc): cd to TERMUX_SCRIPTDIR before executing buildorder.py
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-25 22:18:06 +05:30
Aditya Alok
3ba86891ed
fix(setup ghc): register haskell packages recursively
previously only main dependencies were registered, ignoring dependencies of dependencies.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-25 21:52:36 +05:30
Chongyun Lee
9eb2d6d13e
run-docker.sh: Use a custom seccomp profile which allows the personality system call. 2022-04-25 10:09:50 +02:00
Aditya Alok
0de794c1d1
feat(auto-update): handle large logs while creating issues
- GitHub api only allows 65536 chars long body in one go.
- Now body beyond 65536 limit will be appended after a gap of 5 sec.
  Appending (or patching) does not consider already present body, so we
  can bypass this limit.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-24 15:14:00 +05:30
Aditya Alok
d72177e5ce
feat(auto-update): create issue if update fails
- now a new issue with output logs will be created and assigned to
  $GITHUB_ACTOR, if auto update fails for a package

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-23 09:47:32 +05:30
Aditya Alok
85d52a4ab2
chore(auto update): cleanup some codes
%ci:no-build

Above tag is for previous commit but CI checks head commit for
this, so applying here.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-20 23:56:00 +05:30
Aditya Alok
3baa1a3a36
refactor(auto update): replace pkg_dir with TERMUX_PKG_BUILDER_DIR
- this variable will store path of directory containing packages
  `build.sh` file.
- this is a more standard approach than specifying `pkg_dir` each time

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-20 23:56:00 +05:30
Henrik Grimler
56dbb9cf80
CI: specify distribution in repo.json as well
x11-repo uses distribution x11, and root-repo distribution root.
Store this information in the json file as well, and parse it to set
both REPOSITORY_NAME and REPOSITORY_DISTRIBUTION.

Also remove unnecessary `< repo.json` from jq command, jq accepts the
file as an argument.

This fixes upload issues to x11-repo and root-repo.
2022-04-20 16:37:36 +02:00
Yaksh Bariya
fd130685ae
fixup previous commit 2022-04-20 16:43:14 +05:30
Yaksh Bariya
be24cc6016
fixup: fix hardcoded packages directory in termux_pkg_upgrade_version 2022-04-20 16:23:47 +05:30
Henrik Grimler
2af00064dd
termux_step_configure_cmake: fix CMAKE_INSTALL_LIBDIR var
CMake docs [1] show that the variable should be a path relative to
prefix, not an absolute path.

[1] https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
Fixes: 9155acd040 ("termux_step_configure_cmake: set CMAKE_INSTALL_LIBDIR")
Fixes: https://github.com/termux/termux-packages/issues/10068
2022-04-19 14:48:11 +02:00
Yaksh Bariya
b54abb6732
also install jq inside docker container 2022-04-19 07:19:39 +05:30
Yaksh Bariya
66af228cfe
scripts/lint-packages.sh: adapt to new repository structure 2022-04-19 07:19:39 +05:30
Yaksh Bariya
3422559ad2
monorepo: adapt scripts/bin to new changes 2022-04-18 13:57:19 +05:30
Yaksh Bariya
f0ea9b922b
monorepo: apply changes suggested by buttaface 2022-04-18 13:57:19 +05:30
Yaksh Bariya
52c383b4d1
chore: switch to monorepo 2022-04-18 13:57:13 +05:30
Yaksh Bariya
6088bdfbdb cmake: update to 3.23.1
Co-Authored-By: Tee KOBAYASHI <xtkoba@gmail.com>
2022-04-17 21:45:42 +05:30
Tee KOBAYASHI
c6db2c46c6 new package: lilypond 2022-04-16 18:26:11 +09:00
Yaksh Bariya
dcaf44f95b
ci: sleep only when aptly_add_to_repo returns with status code 000
It is just a waste of time to sleep for 3 minutes when the packages are
successfully added and aptly returns 200 http code
2022-04-16 14:07:17 +05:30
Yaksh Bariya
c4ab7bcfd0
attempt2: Fix repository upload problems
Earlier in 5b8b15e7aa, I had configured
our upload scripts to treat failure of `aptly_add_to_repo` as failure to publish
packages at all. However it won't work, since even if all debs are
uploaded, and aptly_add_to_repo is called, debs are moved from temporary
directory to the repository. The proxy may drop connection during this
moment due to stale connection. And just after that we call
aptly_delete_dir which will delete the temporary directory. On the
server side, aptly will however continue to move debs from temporary
directory. Repository is published, but since the temporary directory is
removed during the transaction, the transaction never completely
succeeds. So only some of the debs are uploaded practically. This is now
fixed by adding a sleep of 180s (should be more than enough for all
stuff)
2022-04-14 17:26:22 +05:30
Yaksh Bariya
5b8b15e7aa
fixup(ci:upload): Treat failure to add debs to repository as error 2022-04-14 11:45:17 +05:30
Tee KOBAYASHI
07d9bba56a
build-package: Apply $PREFIX/bin/sh hack appropriately 2022-04-13 09:03:16 +02:00
Wetitpig
0410a2a1bd LLVM Tools (#7952) 2022-04-13 12:10:32 +05:30
Tee KOBAYASHI
034efbb507 golang: Update to 1.18.1 2022-04-13 11:41:12 +05:30
Aditya Alok
24a1850f47
feat(setup-ubuntu.sh): install xxd package, required by cava
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-11 20:49:14 +05:30
Tee KOBAYASHI
b312b033ab new package: below 2022-04-11 11:04:10 +09:00
Tee KOBAYASHI
d6248b4eb6 termux_step_massage: Check for unresolved symbols
defined in `libandroid-*`
2022-04-10 14:53:07 +09:00
Tee KOBAYASHI
00275fe288 vlc: Enable Lua support 2022-04-08 13:48:37 +09:00
Tee KOBAYASHI
ae7f540379
termux_step_massage: Avoid using CC
which may be unset.
2022-04-06 14:14:03 +02:00
Henrik Grimler
dc033aefef
termux_step_massage: only check for missing symbols if there are libraries 2022-04-05 21:21:29 +02:00
Henrik Grimler
ffa1ed6051
termux_step_massage: check built libs for undefined symbols
Building packages that use libtool for linking libraries has issues
with ndk-r23 (https://github.com/android/ndk/issues/1614).  This check
makes sure that the built libraries do not give an error like

    CANNOT LINK EXECUTABLE "tesseract": cannot locate symbol "__extenddftf2" referenced by "/data/data/com.termux/files/usr/lib/libtesseract.so"...

once used on device.  In https://github.com/android/ndk/issues/1614 it
seemed like arm gave false positives and needed special consideration,
but when I tested it again today the same false positives do not occur
in built libraries, so no "if arm then .." workaround has been added
for now.
2022-04-05 20:57:25 +02:00
Aditya Alok
ae0caf3bd5
feat(auto-update): do not log for disabled auto-update
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 20:20:11 +05:30
Aditya Alok
2157e972d9
fix(auto-update): compare versions with epoch added
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 11:38:21 +05:30
Aditya Alok
d67a38d324
refactor(auto-update): clean up some code
- move epoch addition to termux_pkg_upgrade_version set.
- now termux_pkg_upgrade_version can be given retrived version/tag from
  api, directly.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 11:21:14 +05:30
Aditya Alok
f8cce7faba
fix(auto-update): removal of epoch when TERMUX_PKG_UPDATE_VERSION_REGEXP is set
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-05 00:39:32 +05:30
Aditya Alok
3b92fd5648
Revert "[TEMP] download deps from grimler.se instead of packages.termux.org"
- It should be fixed now.
https://github.com/termux/termux-packages/issues/9860#issuecomment-1087144145

This reverts commit dbd7249e4b.
2022-04-04 11:37:23 +05:30
Aditya Alok
dbd7249e4b
[TEMP] download deps from grimler.se instead of packages.termux.org
- packages.termux.org gives wrong checksum for arm and aarch64 repository metadata
2022-04-04 11:03:30 +05:30