Commit Graph

96 Commits

Author SHA1 Message Date
Henrik Grimler
c868094d05 busybox: avoid hardcoded $HOME 2020-01-05 12:41:53 +01:00
Leonid Pliushch
66bb50d949 busybox: fix more applets
Seems bc, dc and nmeter are the last ones that crashing.
2019-11-12 13:07:11 +02:00
Leonid Pliushch
3720c734f7 busybox: selectively disable optimization for certain functions
asm volatile("":::"memory") doesn't work reliably, so it is better to disable
optimization for whole function where INIT_G() or similar is used to avoid
instruction reordering.

Covers following issues:

 * https://github.com/termux/termux-packages/issues/2488
 * https://github.com/termux/termux-packages/issues/3216
2019-11-12 04:14:02 +02:00
Leonid Pliushch
ac5daf7925 busybox: update patches
Reorganize patches & do following changes:

 * Enable use of sethostname(2) in utility `hostname`.
 * Enable setting time in utility `date` - busybox already provide own
   implementation of stime(2).

- both features require root.
2019-11-12 02:51:21 +02:00
Leonid Pliushch
7dd20bd19e busybox: update to 1.31.1 2019-11-11 21:30:21 +02:00
Leonid Pliushch
aa5a7e89cc busybox: fix segmentation fault when launching ash 2019-11-11 17:57:03 +02:00
Leonid Pliushch
b4b16bb3ec busybox: bump revision 2019-11-11 17:00:02 +02:00
Leonid Pliushch
cf9e3c08f0 busybox: enable more applets in configuration
Some of them will be useful only as root or if SELinux is set to "permissive".
These applets will not be symlinked and callable only with "busybox <applet name>".

Issue https://github.com/termux/termux-packages/issues/3594.
2019-11-11 16:59:01 +02:00
Leonid Pliushch
33d63bca2d busybox: fix LDLIBS 2019-11-11 16:58:52 +02:00
Leonid Pliushch
a3d12b6314 busybox: make build logs more readable
Do not spam build log with warnings about unused command line & optimization
arguments. Now finding of build-time issues should be easier.
2019-11-11 15:14:10 +02:00
Leonid Pliushch
54a1ae38ed busybox: properly pass compiler & linker flags 2019-11-11 15:13:05 +02:00
Leonid Pliushch
3d3b629763 busybox: use config generated by make menuconfig as a base
Fields like CONFIG_SYSROOT are modified with `sed`.
2019-11-11 14:57:43 +02:00
Henrik Grimler
3762801fb9 busybox: mark service files for ftpd and telnetd as conffiles 2019-08-22 21:51:00 +02:00
Leonid Pliushch
c352216c63 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
2019-08-12 18:49:13 +03:00
Henrik Grimler
b6a636b876 Merge pull request #3460 from Neo-Oli/termux-services
Proposal: Termux-Services
2019-08-11 21:39:07 +02:00
Leonid Pliushch
c81d4c8698 add stubs to prevent on-device building packages with dangerous operations in build.sh
%ci:no-build
2019-08-08 16:58:34 +03:00
Oliver Schmidhauser
63761bafd2 bump changed packages 2019-07-27 12:05:08 +02:00
Oliver Schmidhauser
c6ea4d5708 make busybox services not run by default 2019-07-27 12:01:51 +02:00
Oliver Schmidhauser
7845adf3e2 Initial Draft for termux-services 2019-07-27 12:01:50 +02:00
Leonid Pliushch
d8cf2ea72c busybox: re-add applet 'which' 2019-07-22 14:36:06 +03:00
Leonid Pliushch
3a0cf0c541 busybox: fix typo in comment 2019-07-22 14:23:56 +03:00
Leonid Pliushch
689cfacb2c busybox: restore some applets that aren't available as separate package 2019-07-22 14:13:32 +03:00
Leonid Pliushch
2a2044cda8 busybox: we still need some applets in order to upgrade packages
Should help with following dpkg errors:

 dpkg: warning: 'rm' not found in PATH or not executable
 dpkg: error: 1 expected program not found in PATH or not executable

 dpkg: warning: 'diff' not found in PATH or not executable
 dpkg: error: 1 expected program not found in PATH or not executable
2019-07-22 00:45:12 +03:00
Leonid Pliushch
f04e8cac45 use utility 'env' from coreutils 2019-07-21 22:44:00 +03:00
Leonid Pliushch
b0b67b8fbe busybox: disable applet symlinks
See https://github.com/termux/termux-packages/issues/4070.
2019-07-21 22:44:00 +03:00
Leonid Pliushch
bf1c224eb4 busybox: no longer essential package 2019-07-21 22:18:09 +03:00
Leonid Pliushch
b677b6999d busybox: enable Netcat v1.10 compatibility mode for netcat/nc applets
Fixes https://github.com/termux/termux-packages/issues/3153.
2019-05-13 00:09:04 +03:00
Leonid Pliushch
c120563b58 fix compilation errors for apt, busybox, imagemagick, libelf, tar 2019-03-10 15:41:38 +02:00
Leonid Pliushch
58ab080810 busybox: fix path to /bin/sh 2019-03-02 14:52:20 +02:00
Fredrik Fornwall
4d3de89684 busybox: Update from 1.29.3 to 1.30.1 2019-02-16 00:34:30 +01:00
Wetitpig
7ddcce5701 No backticks 2019-02-15 18:01:09 +02:00
Wetitpig
5f07ac4eb9 Change permissions 2019-02-09 21:06:31 +02:00
Wetitpig
5f8864c10d Improve formatting of parantheses for functions 2019-02-09 21:06:31 +02:00
Leonid Pliushch
361d8c519f [incomplete] set licenses for packages 2019-01-20 22:41:50 +01:00
Fredrik Fornwall
0a612d4a5c Use system top
Remove top both from busybox (which is broken on Android 8+), and
procps (which has issues on Android 8+) and use a system wrapper
in termux-tools instead.
2018-11-28 03:02:11 +01:00
Fredrik Fornwall
fd0d1be78c busybox: Update from 1.29.2 to 1.29.3 2018-09-11 00:47:48 +02:00
Fredrik Fornwall
1c2cf4f105 busybox: Avoid chroot() in ftpd due to seccomp
In Android 9 chroot() have been addded to the seccomp filter, so the
process is killed if trying to use it. Luckily busybox already contained
fallback if chroot() is not permitted.

See #2789.
2018-08-30 11:20:43 +02:00
Leonid Pliushch
f465b98b47 busybox: fix segfault in 'ftpd'
Fixes https://github.com/termux/termux-packages/issues/2740
2018-08-15 14:45:24 +02:00
Fredrik Fornwall
b6758bd62b busybox: Update from 1.29.1 to 1.29.2 2018-07-31 21:54:18 +02:00
Fredrik Fornwall
2dcd95485a busybox: Fix building without <crypt.h> 2018-07-23 01:49:27 +02:00
Fredrik Fornwall
1200b5a072 busybox: Update from 1.28.4 to 1.29.1 2018-07-23 01:33:02 +02:00
Fredrik Fornwall
dbe9874a3b busybox: Add missing backslash in clang patch 2018-06-08 14:05:14 +02:00
Henrik Grimler
6f01530a84 busybox: bump package 2018-06-08 14:01:26 +02:00
Henrik Grimler
12482ecc15 busybox: make httpd work when built with clang 2018-06-08 14:01:26 +02:00
Henrik Grimler
820a09de14 busybox: Fix less and build with clang on arm
Patch less in a similar manner as svlogd.
2018-06-07 23:03:33 +02:00
Henrik Grimler
2ebffe1f7e busybox: fix #2448 and debug build
Busybox builds "busybox" and "busybox_unstripped", where the latter contains
debug symbols.
2018-06-07 22:37:28 +02:00
Vishal Biswas
160d3aeb06 update ndk to 17 and switch some packages to clang build (#2415)
* update ndk to 17

* bump NDK version in setup-android script

* libnl: fix for ndk r17

* libpixman: use clang's __builtin_shufflevector instead of __builtin_shuffle (#1)

Required to make package build with ndk17.

* fix as for arm

* ndk17 still uses ld.bfd on aarch64

* use -fno-integrated-as for clang only

* glib: remove patch unnecessary after ndk17

* torsocks: remove unneeded patch after ndk17

* subversion: fix build as clang++ now errors out for mismatched flags

* libpulseaudio: fix build with ndk17

https://github.com/termux/termux-packages/pull/2415#issuecomment-388296684

* gst-plugins-good: disable video4linux2

ioctl is defined as __overloadable in ndk17 headers which
  conflicts with v4l2object's member ioctl

* libzmq: disable Werror to build with ndk17

* ltrace: hardcode symbol not available in ndk17

* busybox: build with clang for all arches except arm

* dropbear: build with clang instead of gcc

* gnupg: build with clang instead of gcc

* openssl: use clang for all arches except arm

* picolisp: build with clang instead of gcc

* valgrind: use clang on all arches except aarch64

* Revert "gst-plugins-good: disable video4linux2"

This reverts commit 43850b81ccf60033c25cb13dfd326c1b0528773a.
Already applied on base branch.

* libllvm: use default arm triple
2018-05-27 14:55:20 +02:00
Fredrik Fornwall
b42ad0b3f3 busybox: Update from 1.28.3 to 1.28.4 2018-05-27 14:51:00 +02:00
Fredrik Fornwall
7f5a620157 busybox: Update from 1.28.2 to 1.28.3 2018-04-09 01:31:57 +02:00
Fredrik Fornwall
f4f942c1ec busybox: Update from 1.27.2 to 1.28.2 2018-04-01 23:54:38 +02:00