Commit Graph

64 Commits

Author SHA1 Message Date
Tee KOBAYASHI 827259bdbf coreutils: Update to 9.1 2022-04-16 22:49:11 +05:30
Lucinda May Phipps 93af891777
coreutils: update src-ls.c.patch 2021-10-22 06:35:05 +01:00
Lucinda May Phipps 9f86b9a18b
coreutils: update to 9.0 2021-10-22 06:17:51 +01:00
Leonid Pliushch a47d342818
coreutils: date: don't fail with 'Bad system call' on settime
Notify user that only root can modify system time.
2021-07-30 18:09:19 +03:00
Leonid Pliushch fd66e2fe29
get rid of verify-prefix.patch.txt
Switching to a more "soft" solution which will be focused on apt only.

Apt will now send an application package name (com.termux) and prefix
(/data/data/com.termux/files/usr) as part of user-agent string. That
will allow to distinguish real Termux users from parties which download
our packages and binary-patching them for the custom prefix.

Note that this will disable user's possibility to set custom User-Agent
for apt.
2020-12-24 16:42:32 +02:00
Leonid Pliushch 37375312b9
explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00
Leonid Pliushch 7e89e130ce apply prefix verification patches again - now shouldn't cause crash 2020-09-28 02:54:13 +03:00
Leonid Pliushch a6102de687 Revert "add patches for prefix verification"
This reverts commit 2703e4f68f856bb816c695ab53118306ba8104a4.

https://github.com/termux/termux-packages/issues/5858 - seem to be buffer overflow...
2020-09-28 01:37:34 +03:00
Leonid Pliushch 9d92a7360c add patches for prefix verification - prevent use of prebuilt packages by third parties
Add a small stub which verifies whether /data/data/com.termux/files/usr is readable
into few important packages such like Bash or APT. If this check fails, e.g.
in case if binary was executed in program with different package name (non-Termux),
program will print warning and exit with error status immediately.

This should prevent use of prebuilt packages by third-party applications.

NOTE: for now it uses /data/data/com.termux/files/usr in reversed order to
prevent automatic "blind" patching with sed. Will replace with randomized
XOR-based variant in case if that measure won't be enough.
2020-09-28 00:10:00 +03:00
Leonid Pliushch 328593de6d coreutils: bump revision 2020-07-07 19:33:38 +03:00
Leonid Pliushch d6db0bb10f coreutils: specify DEFAULT_TMPDIR with patch
https://github.com/termux/termux-packages/issues/5245#issuecomment-623992313
2020-05-05 14:16:27 +03:00
Leonid Pliushch f99d151b8d coreutils: update src-ls.c.patch 2020-03-08 19:54:51 +02:00
Leonid Pliushch b9d319d0b8 coreutils: update to 8.32 2020-03-08 19:17:58 +02:00
Leonid Pliushch 2db41f95b9 coreutils: bump revision 2019-09-19 20:00:14 +03:00
Leonid Pliushch 9f9b5ce0ee coreutils: build with libgmp
Enhances `expr` and `factor`.

Since gmp is part of bootstrap environment, it should be ok to use for
programs where possible.
2019-09-19 19:57:13 +03:00
Leonid Pliushch 32f2a2d5de coreutils: build utility 'chroot' 2019-09-19 19:54:19 +03: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
Leonid Pliushch 5cb5fc32ee coreutils: disallow on-device build
It can delete utility 'ln' in the process of installation:

 make  install-exec-hook
 make[4]: Entering directory '/data/data/com.termux/files/home/.termux-build/coreutils/build'
 /bin/sh: 12: ln: not found
2019-08-10 20:22:30 +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 d77d2f7d4d coreutils: use breaks & replaces fields instead of just conflicts for busybox 2019-07-22 00:17:51 +03:00
Leonid Pliushch f3de7e5edf coreutils: conflict with older busybox
The utility 'env' was re-added back.
2019-07-21 23:46:55 +03:00
Leonid Pliushch f04e8cac45 use utility 'env' from coreutils 2019-07-21 22:44:00 +03:00
Leonid Pliushch ad47bed9bb specify essential packages
* libbz2 / bzip2
 * coreutils
 * libcurl / curl
 * gzip
 * less
 * tar
 * liblzma / xz-utils
2019-07-21 22:18:09 +03:00
Leonid Pliushch b707bd6315 coreutils: depend on libandroid-support 2019-05-07 18:45:07 +03:00
Henrik Grimler a107861ccd coreutils: ac_cv_func_mbsrtowcs=no to fix segfault on arm and i686 2019-05-06 20:33:30 +02:00
Leonid Pliushch b98ffcf631 add libiconv to dependencies where needed 2019-05-05 21:29:36 +02:00
Fredrik Fornwall f5fc3dfdb5 coreutils: Update from 8.30 to 8.31 2019-04-24 11:34:22 +02:00
Leonid Pliushch 4b331de7ed coreutils: fix hardcoded paths 2019-03-02 14:52:24 +02:00
Wetitpig 5f07ac4eb9 Change permissions 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 3ae5dc75ef coreutils: Build with --disable-xattr
Build with --disable-xattr to avoid linking in libattr.so.
2018-07-03 11:26:07 +02:00
Fredrik Fornwall f566a50c85 coreutils: Fix broken 32-bit builds. Fixes #2608 2018-07-03 11:17:10 +02:00
Fredrik Fornwall cffbb83f04 coreutils: Update from 8.29 to 8.30 2018-07-02 10:24:06 +02:00
Henrik Grimler 5d767cffad coreutils: commit f05fb1 removed host-build so this should be removed as well
Package doesn't build otherwise.
2018-01-05 18:06:30 +01:00
Fredrik Fornwall 5868bd11c5 coreutils: Update from 8.28 to 8.29 2017-12-28 04:58:10 +01:00
Fredrik Fornwall d5d5502b85 coreutils: Update from 8.27 to 8.28 2017-09-06 00:15:49 +02:00
Fredrik Fornwall a328a50407 ndk-patches: Patch to 'define MB_CUR_MAX 4'
The platform headers has the following macro:

  #define MB_CUR_MAX __ctype_get_mb_cur_max()

where __ctype_get_mb_cur_max() tries to handle UTF-8 encodings.

However, even in Android 7.0 setlocale(LC_ALL, ""), which many
programs do at startup, doesn't work in that it sets the locale
as non-utf8:

  https://android.googlesource.com/platform/bionic/+/nougat-release/libc/bionic/locale.cpp#139

So we just always consider us being in an utf-8 locale.

Also rebuild coreutils to fix #1136.
2017-07-16 12:36:06 +02:00
Fredrik Fornwall ca631167ef coreutils: Remove debug patch (fixes #1121) 2017-07-10 02:09:30 +02:00
Fredrik Fornwall 993268c308 Drop -D_FILE_OFFSET_BITS=64 support for now
32-bit android uses 32-bit off_t by default. When building with
-D_FILE_OFFSET_BITS=64 with unified headers off_t are promoted
to 64-bit, but there are bugs in the toolchain and spotty support
for it in the platform (not all functions are available until
android-24, and the platform zlib is compiled with 32-bit off_t).

Also, unless every library&program is rebuilt with 64-bit off_t,
including user-built ones, we risk a mismatch between programs and
libraries which can cause serious (but sometimes subtle) runtime
failures.

As -D_FILE_OFFSET_BITS=64 is not that important for most users
(with mariadb requiring it as an exception), we drop the support
for now by patching it away in <sys/cdefs.h>.
2017-07-07 03:52:46 +02:00
Fredrik Fornwall fcf596bd19 coreutils: -Werror=implicit-function-declaration 2017-07-07 00:31:19 +02:00
Fredrik Fornwall 966c9588c6 coreutils: Bump revision after unified headers 2017-07-03 01:28:41 +02:00
Fredrik Fornwall 10519583bb coreutils: Avoid installing uptime
Uptime is provided by procps-ng.
2017-07-02 11:37:59 +02:00
Fredrik Fornwall 9da0f4e823 coreutils: Fix deeply nested folder under docker
See:
- https://github.com/moby/moby/issues/13451
- https://bugzilla.yoctoproject.org/show_bug.cgi?id=7338
2017-05-11 11:32:07 +02:00
Fredrik Fornwall 2712833539 coreutils: Update from 8.26 to 8.27 2017-03-10 15:52:47 +01:00
Fredrik Fornwall af4dc416ed s/TERMUX_PKG_BUILD_REVISION/TERMUX_PKG_REVISION/ 2017-01-11 01:21:42 -05:00
Fredrik Fornwall 5e174900b3 coreutils: Fix 32-bit issue with ST_BLKSIZE macro
Fixes https://github.com/termux/termux-app/issues/233
2017-01-09 17:04:46 -05:00
Fredrik Fornwall 7fa69461f0 coreutils: Reference issue in test 2017-01-07 02:02:12 -05:00
Fredrik Fornwall 627fdeb162 ndk_patches: Define _POSIX2_VERSION to 200809
coreutils looks at _POSIX2_VERSION and enables broken obsolete
behaviour if not set.

Fixes https://github.com/termux/termux-app/issues/232.
2017-01-07 01:45:46 -05:00
Fredrik Fornwall fb8471fb27 coreutils: Update from 8.25 to 8.26 2016-11-30 21:34:29 -05:00
Fredrik Fornwall 722ed12d69 Switch from ftp.gnu.org to mirrors.kernel.org 2016-09-24 18:42:39 -04:00