Leonid Plyushch
8d0121c421
build-package.sh: use text-based comparsion in conditionals instead of exit-code based
6 years ago
Leonid Plyushch
95b11af661
build-package.sh: fix cases where on-device build utilities were selected on cross-compilation mode
%ci:no-build
6 years ago
Leonid Plyushch
98fe9673f1
fix typo in scripts/build/termux_extract_dep_info.sh
6 years ago
Leonid Plyushch
e51d6cf5df
build-package.sh: allow static packages to be in dependencies
6 years ago
Leonid Plyushch
e5aeb9853f
packages: standardize values of several control variables for build.sh
Variables
TERMUX_PKG_PLATFORM_INDEPENDENT
TERMUX_DEBUG
TERMUX_PKG_HAS_DEBUG
TERMUX_PKG_ESSENTIAL
TERMUX_SUBPKG_ESSENTIAL
TERMUX_PKG_NO_STATICSPLIT
TERMUX_PKG_BUILD_IN_SRC
TERMUX_PKG_FORCE_CMAKE
TERMUX_PKG_HOSTBUILD
should not accept arbitrary values for marking them "enabled". Instead
they should accept boolean values which makes them easier to handle and
also makes their meaning clear.
build-package.sh should make decision based on variable's value but not on
whether it is set or empty.
%ci:no-build
6 years ago
Leonid Plyushch
01fad1bfa7
add support for on-device bootstrapping of "make"
6 years ago
Leonid Plyushch
008d309f9d
scripts/setup-termux.sh: split packages on "tier 1" & "tier 2" groups
And remove packages that are installed with bootstrap archive (essential ones).
6 years ago
Butta
7a235cedfd
on-device build: Fix up ncurses and ninja, adjust some setup scripts,
and add dependency info to scripts/setup-termux.sh.
6 years ago
Leonid Plyushch
df914b33b5
fix typo in termux_step_massage.sh
6 years ago
Leonid Plyushch
251484977c
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 .
6 years ago
Leonid Plyushch
edd11cfb55
scripts/setup-termux.sh: add missing package 'valac'
6 years ago
Leonid Plyushch
4c4da7deff
build-package.sh: export CC_FOR_BUILD for on-device builds
Required by some packages.
6 years ago
Leonid Plyushch
1c1f059ee6
build-package.sh: on-device builds without termux-exec are unsupported
6 years ago
Leonid Plyushch
ab3a999565
build-package.sh: for on-device builds use device-specific default value for maintainer
6 years ago
Leonid Plyushch
e290c97736
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.
6 years ago
Leonid Plyushch
1ae4d7d388
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.
6 years ago
Leonid Plyushch
adea958509
scripts/setup-termux.sh: install binutils-gold
Required by at least ipfs package.
6 years ago
Leonid Plyushch
1e698a1198
build-package.sh: use bsdtar for on-device builds when extracting into massagedir
Tar built for API 21 branch doesn't work well in certain cases and following error
may occur:
tar: ./share/doc/ed/LICENSE: Cannot change mode to rwx------: No such file or directory
tar: Exiting with failure status due to previous errors
Using bsdtar instead for extracting.
6 years ago
Leonid Plyushch
a027b72efd
build-package.sh: do not hardcode path to termux-elf-cleaner
6 years ago
Leonid Plyushch
abca76df18
build-package.sh: for on-device builds termux-elf-cleaner should be installed with apt
It throws compilation errors when being built without custom elf.h on
devices using API 21 repository.
6 years ago
Leonid Plyushch
622065b74c
scripts/setup-termux.sh: use bash in shebang
6 years ago
Leonid Plyushch
aecf4675e3
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.
6 years ago
Leonid Plyushch
1b4a91414c
no more develsplit + provide static libraries as separate package
%ci:no-build
6 years ago
Leonid Plyushch
359c2d9d5d
build-package.sh: setup basic hardening through CFLAGS/LDFLAGS
Use stack protector & make GOT/PLT sections read-only.
6 years ago
Leonid Plyushch
4f0cc87981
run-docker.sh: allow to set custom image via environment variable
6 years ago
Leonid Plyushch
09188ebe88
CI: update dispatcher script
%ci:reset-backlog
6 years ago
Leonid Plyushch
754f17cd50
update download checksum in termux_setup_protobuf.sh
6 years ago
Leonid Plyushch
cb2abf7ab0
sync ./scripts/setup-ubuntu.sh with branch 'master'
6 years ago
Leonid Plyushch
72951f7b2c
CI: fix expression for filtering packages
6 years ago
Leonid Plyushch
a565de286c
CI: look for changes only in build.sh scripts
6 years ago
Leonid Plyushch
32deebbb7c
CI: sync setup with branch 'master'
6 years ago
Leonid Plyushch
7f29c932a9
build-package.sh: set $LDFLAGS for CGO like we do for android-7 packages
6 years ago
Leonid Plyushch
3e8242e505
backport changes from branch 'master' for new format of bootstraps
6 years ago
Leonid Plyushch
bafc9c7fc5
sync 'scripts/setup-ubuntu.sh' with branch 'master'
6 years ago
Leonid Plyushch
68c6f1c2f3
CI: update dispatcher script
6 years ago
Henrik Grimler
1643c84658
setup_golang: set CGO_CFLAGS=-I$TERMUX_PREFIX/include
6 years ago
Leonid Plyushch
b516846b1d
CI: don't use loop for going through package names
It is not needed anymore.
6 years ago
Leonid Plyushch
4411137844
Revert "CI: restore full builds for pull requests"
This reverts commit 50ba29a8e2
.
6 years ago
Leonid Plyushch
50ba29a8e2
CI: restore full builds for pull requests
When processing pull request, build dependencies instead of
downloading them.
6 years ago
Leonid Plyushch
dd3baa536b
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
d17827275f
update CI setup
* Move package building implementation from config to a separate script.
* Implement new tag '%ci:no-build' to allow immediately stop build with status 'passed'.
6 years ago
Tom Yan
aecf0aabcb
build-package.sh: export OBJCOPY
6 years ago
Fredrik Fornwall
277711e200
Always use -Oz optimization level
6 years ago
Leonid Plyushch
cb88166c87
docker image: sync setup-ubuntu.sh with master branch
6 years ago
Fredrik Fornwall
03979e698e
golang: Update from 1.12.6 to 1.12.7
6 years ago
Tom Yan
1c602f865c
build-package: fix subpackage-parent dependency
6 years ago
Leonid Plyushch
b75ade40ea
build-package.sh: fix typo
Chmod has to be called recursively.
6 years ago
Leonid Plyushch
30bb1ff752
clean.sh & build-package.sh: avoid errors in case chmod's target dir is not exist
6 years ago
Leonid Plyushch
6257721b22
build-package.sh: fix rm problems when builddir/srcdir contains RO files
6 years ago
Leonid Plyushch
676b290904
build-package.sh: always keep info pages
Info pages usually provide more complete information
about package and its usage than man pages.
6 years ago