Butta
8fd02b64a0
on-device build: Fix up ncurses and ninja, adjust some setup scripts,
and add dependency info to scripts/setup-termux.sh.
5 years ago
Leonid Plyushch
4161bbea03
fix typo in termux_step_massage.sh
5 years ago
Leonid Plyushch
4f3d2e9579
build-package.sh: fix error in termux_step_massage() when bin, lib, libexec are not exist
Fixes https://github.com/termux/termux-packages/issues/4160 .
5 years ago
Leonid Plyushch
5ed9200933
scripts/setup-termux.sh: add missing package 'valac'
5 years ago
Leonid Plyushch
c8298b3e19
build-package.sh: export CC_FOR_BUILD for on-device builds
Required by some packages.
5 years ago
Leonid Plyushch
83ee358158
build-package.sh: on-device builds without termux-exec are unsupported
5 years ago
Leonid Plyushch
a418c7c0d5
build-package.sh: for on-device builds use device-specific default value for maintainer
5 years ago
Leonid Plyushch
a005df428c
build-package.sh: prefix and home shouldn't be overridable for on-device builds
And set TERMUX_NO_CLEAN to true for on-device builds as well.
5 years ago
Leonid Plyushch
25955f9df5
build-package.sh: source properties.sh before handling command line arguments
Fixes problem when it is not possible to override TERMUX_ARCH set in ~/.termuxrc.
5 years ago
Leonid Plyushch
493fa91c1c
scripts/setup-termux.sh: install binutils-gold
Required by at least ipfs package.
5 years ago
Leonid Plyushch
839d8e5b2b
scripts/setup-termux.sh: use bash in shebang
5 years ago
Leonid Plyushch
0d2f6e446f
enable on-device builds
Partial compatibility for on-device builds.
There is no guarantee that it will be possible to build all available
packages and built packages will have same reliability that cross-compiled
but should solve "self-hosting" problems as much as possible.
5 years ago
Leonid Plyushch
e0b0b0e85f
run-docker.sh: allow to set custom image via environment variable
5 years ago
Leonid Plyushch
d44a223686
build-package.sh: use globstar when splitting static libraries
Handle cases when static libraries located in subdirectory.
Enables support for globstar (example './**/*.a') pattern in subpackage
splitting.
5 years ago
Leonid Plyushch
ffe57097d1
build-package.sh: avoid linking with extra/unneeded libraries
5 years ago
Leonid Plyushch
e63524cbdc
build-package.sh: basic hardening via CFLAGS/LDFLAGS
See https://github.com/termux/termux-packages/issues/4107 .
In short:
* Stack protector will be used by default.
* GOT/PLT ELF sections will be read-only.
5 years ago
Leonid Plyushch
15e00d2072
scripts/buildorder.py: do not handle static library subpackages
* They are not used during normal build procedures.
* During "fast-builds" (option '-i') they just consume our bandwidth.
5 years ago
Leonid Plyushch
21b96d3b41
no more develsplit + provide static libraries as separate package
%ci:no-build
6 years ago
Leonid Plyushch
d5167b70ab
update download checksum in termux_setup_protobuf.sh
6 years ago
Leonid Plyushch
47fef45d79
docker image: install valac
6 years ago
Leonid Plyushch
9a6c14e76a
CI: omit newlines when printing list of packages for building
6 years ago
Leonid Plyushch
0833dc940e
docker image: install libc-ares-dev and libicu-dev
Needed by host-build part of nodejs v12.6.0+
6 years ago
Leonid Plyushch
988ed344ac
CI: add support for automatic docker image rebuilding
6 years ago
Leonid Plyushch
1b56b01d05
CI: fix expression for filtering packages
6 years ago
Leonid Plyushch
68ee2d8abd
CI: look for changes only in build.sh scripts
6 years ago
Leonid Plyushch
521e8373f6
CI: restore old way for building & uploading packages
Do not use pipes for building & uploading packages because:
* They spawn more jobs on Bintray for metadata generation - each upload is
done in a separate session.
* Bintray doesn't handle well concurrent uploads and metadata can be corrupted.
This happened in all recent builds of platform independent packages - in
each upload task file had a same name and that triggered problem with metadata.
* Using delays for workaround for a problem described above works, but isn't
safe.
6 years ago
Leonid Plyushch
2ba849491a
CI: fix syntax errors in 'scripts/build/ci/cirrus-ci_dispatcher.sh'
6 years ago
Leonid Plyushch
c8d60f87b6
CI: better implementation for workaround introduced in f75cb1d4f2
Use predefined upload delays for each pipe.
6 years ago
Leonid Plyushch
11ec9040f8
CI: do not start upload if API key or passphrase is not set
CI periodically shows error like
Failed to decrypt some environment variables
so it will be better to stop immediately when environment is inconsistent
for unknown reason (e.g. due to Github's problems).
6 years ago
Leonid Plyushch
f75cb1d4f2
CI: attempt to workaround inconsistent metadata during concurrent upload of same file
All platform independent packages affected by this issue. Results in
persistent apt error like:
Writing more data than expected (22610650 > 22610408)
Hashes of expected file:
- SHA256:08abc5cffb9e1967fab487a471bb547f5ae706c48bf8e59d1443b2ad4af9caaf
- SHA1:36ded1e207135bdeb8b7301bc03309ebced3cd32 [weak]
- Filesize:22610408 [weak]
6 years ago
Leonid Plyushch
07a554fd43
CI: check if necessary environment variables are set
6 years ago
Leonid Plyushch
256cc062ee
CI: if all 3 attempts of upload failed, exit with status code '1'
6 years ago
Leonid Plyushch
fa69510c07
build-package.sh: allow to mark subpackages as essential
6 years ago
Leonid Plyushch
69b3b99dd7
docker image: install autopoint
6 years ago
Leonid Plyushch
7a86f0cd8e
CI: fix syntax errors in dispatcher script
6 years ago
Leonid Plyushch
581498d53f
CI: rework way how upload will be retried
* Allow 3 attempts for uploading.
* Add 30 second delay between attempts.
6 years ago
Leonid Plyushch
1143da7d12
CI: fix pull requests URL in dispatcher script
6 years ago
Leonid Plyushch
42aca8a5f1
CI: retry package uploading in case of failure
In certain cases Bintray may return errors like `invalid version a.b.c` for
specific tasks. This probably happens because we now running package uploading in
parallel.
Retrying upload one more time should fix the problem.
6 years ago
Leonid Plyushch
080bb3ea11
CI: use pipe instead of separate tasks
No more need to pass packages between tasks through http cache but will require
a separate configuration for earch architecture.
6 years ago
Leonid Plyushch
1df3a3c853
Revert "CI: restore full builds for pull requests"
This reverts commit 77f24af5b8
.
6 years ago
Leonid Plyushch
77f24af5b8
CI: restore full builds for pull requests
When processing pull request, build dependencies instead of
downloading them.
6 years ago
Leonid Plyushch
9d743e2a27
build-package.sh: allow to build multiple packages at one time
Support for call syntax:
./build-package.sh pkg1 pkg2 pkg3 ...
6 years ago
Leonid Plyushch
51521e76b6
update CI setup
* Move package building/uploading implementation from config to a separate script.
* Implement new tag '%ci:no-build' to allow immediately stop build with status 'passed'.
%ci:no-build
6 years ago
Henrik Grimler
091718af31
setup_golang: set CGO_CFLAGS=-I$TERMUX_PREFIX/include
6 years ago
Fredrik Fornwall
32de55cece
Always use -Oz optimization level
6 years ago
Leonid Plyushch
76bdc3bf9f
docker image: install libdbus-1-dev
Required by host-build if dbus-glib.
https://github.com/termux/termux-packages/pull/4046 .
6 years ago
Fredrik Fornwall
9a84e8d005
golang: Update from 1.12.6 to 1.12.7
6 years ago
Leonid Plyushch
41ceb1123d
build-package.sh: fix typo
Chmod has to be called recursively.
6 years ago
Leonid Plyushch
8cb5f5580c
clean.sh & build-package.sh: avoid errors in case chmod's target dir is not exist
6 years ago
Leonid Plyushch
944326f1ab
build-package.sh: fix rm problems when builddir/srcdir contains RO files
6 years ago