Commit Graph

25 Commits

Author SHA1 Message Date
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
Leonid Pliushch ee7722d5ca procps & psmisc: fix essential status 2019-08-11 17:40:39 +03:00
Fredrik Fornwall 000c2ec8fe procps: Use sysinfo(2) to get uptime
Instead of trying to read /proc/uptime, which is not allowed on Android,
we patch procps to use the sysinfo(2) syscall to figure out the uptime.

This should fix at least "ps -o etime".
2019-08-07 22:02:47 +02:00
Leonid Pliushch b9cbd870d9 procps: don't read file /proc/sys/vm/min_free_kbytes
Access to this file is prohibited on some devices by SELinux and causes
utilities to treat /proc as not mounted.

Related issues:

 * https://github.com/termux/termux-packages/issues/1625
 * https://github.com/termux/termux-packages/issues/4132
2019-08-07 15:38:45 +03:00
Leonid Pliushch 6e70277fb3 no more develsplit + provide static libraries as separate package
%ci:no-build
2019-07-28 21:17:12 +03:00
Leonid Pliushch 4832078d86 reformat build.sh for some packages
* Packages where dependencies were sorted are bumped.
2019-07-22 01:51:28 +03:00
Leonid Pliushch 46d333adba add licenses for more packages 2019-01-21 17:17:53 +02: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 eddaa42869 procps: Remove uptime
The uptime program from procps does not work on later android versions
where reading /proc/uptime is not allowed.

See https://github.com/termux/termux-app/issues/819
2018-08-27 23:12:52 +02:00
Fredrik Fornwall 0c49c0bbd8 procps: Update from 3.3.14 to 3.3.15 2018-06-26 04:48:28 +02:00
Fredrik Fornwall 90e0af4ee7 procps: Update from 3.3.12 to 3.3.14 2018-05-19 03:50:15 +02:00
Fredrik Fornwall 51c7760090 Drop need of setting TERMUX_PKG_FOLDERNAME
Instead figure out the top level source folder ourselves.
2017-09-20 00:48:04 +02:00
Fredrik Fornwall 769012c04a procps: Bump revision after patch 2017-09-19 23:05:22 +02:00
Vladimir Serbinenko 0c91dc92ff Ignore Permission denied in several places.
On some Androids many of proc files can't actually be opened. So ignore
when opening fails and go on.
2017-09-17 23:58:28 +02:00
Fredrik Fornwall e3aab1e293 procps: Fix build with unified headers 2017-06-29 00:02:18 +02:00
Fredrik Fornwall b8352277e3 Use more source checksums 2017-03-04 21:54:30 +01:00
Fredrik Fornwall 7ce5638519 Cleanup of more packages 2016-09-03 18:45:08 -04:00
Fredrik Fornwall b316825b01 procps: Update from 3.3.11 to 3.3.12 2016-08-14 18:13:13 -04:00
Fredrik Fornwall 8cace090a1 procps: Configure with --disable-modern-top
This seems to be the most popular defaults.
2016-06-06 17:05:14 -04:00
Fredrik Fornwall 6a4a91455d procps: Fix pkill behaving as pgrep (closes #192) 2016-04-12 01:20:42 -04:00
Fredrik Fornwall f3529fc164 procps: Replace index() by strchr()
The index() function has been removed from 64-bit libc and is
a deprecated posix function.
2016-01-03 21:27:59 -05:00
Fredrik Fornwall b5dfb604e9 procps: Update from 3.3.10 to 3.3.11 2015-12-15 06:54:50 -05:00
Fredrik Fornwall 150f95af27 Fix rpl_malloc when cross compiling
Work around rpl_malloc being used, see
http://wiki.buici.com/xwiki/bin/view/Programing+C+and+C%2B%2B/Autoconf+and+RPL_MALLOC
for more information:

"The AC_FUNC_MALLOC macro makes sure that the malloc function when passed a zero
argument returns a valid memory block instead of a NULL pointer. This behaviour
conforms to the GNU C library.  Normally, this is a reasonable test that autoconf
makes at build-time. In the case of cross-compilation, however, autoconf cannot
execute a program to verify proper behavior.  It makes the conservative assumption
that the target library will produce non-conforming code.

Failure of this test causes autconf to replace malloc() calls with rpl_malloc()
calls. At link time, if there is no rpl_malloc() function, the linker will fail
with an error describing the missing symbol. The autoconf documentation recommends
adding this harmless code to the application to implement the function."

In Termux the rpl_malloc() usage is useless at best, and may also prevent building
some packages as well as giving runtime crashes for libgc-using packages or others
expecting to intercept malloc.

Previously some packages specified worked around this themselves, but the configure
arguments are now moved into build-package.sh.
2015-11-15 16:04:37 -05:00
Fredrik Fornwall 637f22d133 Remove DT_VERDEF and DT_VERDEFNUM elf entries
This fixes Android 6 problems (so closes #26).

It also rebuilds termux-elf-cleaner when needed
and bumps some build revisions for packages
needed updates to remove DT_VERDEF and DT_VERDEFNUM.
2015-10-13 15:48:40 -04:00
Fredrik Fornwall 59f0d218a6 Initial push 2015-06-13 01:03:31 +02:00