Commit Graph

85 Commits

Author SHA1 Message Date
termux-pacman-bot
9ad01ebe83 fix(main/coreutils): fix undefined behavior in coreutils built with selinux enabled and xattrs disabled
- Fixes https://github.com/termux/termux-packages/issues/23752

Patch created and shared by pixelb

This restores the 'ls -Z' command to its pre-coreutils-9.6 behavior,

and passes these test cases on Samsung Galaxy A70 SM-A705FN with Android 13:

(should not crash)
cd && ls -Z ..

(should not crash)
cd && ls -Z . > out

(should not crash)
ls -Z /storage/emulated/0/

(should show correct output, like 'u:object_r:fuse:s0')
cd /storage/emulated/0 && ls -Z $(pwd)

(should print both directories without crashing)
ls -l /storage/emulated/0 /storage/emulated/0/Download

(should print both directories without crashing)
ls -Z /storage/emulated/0 /storage/emulated/0/Download

(should print both directories without crashing)
ls -lZ /storage/emulated/0 /storage/emulated/0/Download

More information here:

https://github.com/termux/termux-packages/pull/23691#discussion_r1986260242
https://github.com/termux/termux-packages/pull/23756#discussion_r1993138524
2025-03-21 01:31:08 +00:00
termux-pacman-bot
d842fafadf bump(main/coreutils): 9.6
backport: https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=915004f403cb25fadb207ddfdbe6a2f43bd44fac
and set maintainer
2025-03-09 14:34:34 +00:00
termux-pacman-bot
e865631ebd fix(main/coreutils): limit context manipulation to root and fix install
Disable the ability for `install` to setup default file context for now

Fixes (termux/termux-packages)#21597
2024-09-30 20:09:36 +00:00
termux-pacman-bot
3ae8a2adce enhance(main/coreutils): Add SELinux support
Closes (termux/termux-packages)#3020
2024-09-27 12:12:57 +00:00
termux-pacman-bot
cc4a462e84 coreutils: revbump to rebuild 2024-08-20 13:37:28 +00:00
termux-pacman-bot
32d71927e0 upgpkg(main/coreutils): 9.5 (#19732) 2024-04-27 04:37:01 +00:00
termux-pacman-bot
aa098e2ec0 bump(main/coreutils): 9.4 (#17807) 2023-09-16 04:01:39 +00:00
termux-pacman-bot
7769f03c56 coreutils: Bump to 9.3 2023-04-19 00:45:23 +00:00
termux-pacman-bot
7384ea3893 coreutils: Add workaround for undeclared gethostid
%ci:no-build
2023-04-01 13:01:44 +00:00
termux-pacman-bot
203ba4f183 *: Disable clang16-porting for essential packages
%ci:no-build
2023-03-28 07:33:09 +00:00
termux-pacman-bot
e1bf050cde coreutils: Replace FICLONE patch with upstream one 2023-03-24 14:32:06 +00:00
termux-pacman-bot
f68ff1c664 coreutils: add lib/tmpdir.c to fix-paths.patch 2023-03-23 07:32:05 +00:00
termux-pacman-bot
fe6aa3b629 coreutils: Fix FICLONE failure handling, take 2 2023-03-21 13:02:56 +00:00
termux-pacman-bot
50b043dc76 coreutils: Add reference to issue from patch
%ci:no-build
2023-03-21 09:02:43 +00:00
Ivan Max
2c654ac611 rebuild coreutils 2023-03-21 11:39:05 +03:00
termux-pacman-bot
949af446af coreutils: Add reference to issue from patch
%ci:no-build
2023-03-21 05:32:21 +00:00
termux-pacman-bot
ea6de9db7a coreutils: delete lib-stdio-impl.h.patch
has been upstreamed
2023-03-20 23:32:02 +00:00
termux-pacman-bot
86f3f79314 coreutils: fix fix-paths.patch
the patches for lib/tempname.c were for n unused function which is now removed
2023-03-20 23:02:27 +00:00
termux-pacman-bot
76e90d034c coreutils: Fix implementation of struct __sFILE
Remove unnecessary mitigation.
2022-09-28 11:08:26 +00:00
termux-pacman-bot
1d8516d81f coreutils: Mitigate write() error on 32-bit archs 2022-09-14 14:44:36 +00:00
termux-actions[bot]
8729912892 packages/coreutils 2022-04-16 17:22:09 +00:00
Maxython
64d751f0e8 packages/coreutils 2021-12-27 01:29:33 +03:00
Maxython
26b0a8d817 packages/coreutils 2021-12-04 23:39:15 +03:00
Maxython
8d4def2b1c Update package coreutils 2021-10-22 09:27:01 +03: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