You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
these commands download and build bionic libc and 15 other packages from the userspace of AOSP. The typical time it takes my computer to run the script from start to the point of the uutils-related error occurring is 45 minutes
reproduction script
git clone https://github.com/termux/termux-packages.git
cd termux-packages
git checkout 1e211ee1271a25ee0561e4f01570d7b164ed20a7
git apply -v << 'EOF'diff --git a/packages/aosp-libs/build.sh b/packages/aosp-libs/build.shindex 2b985a337b..f8aa973e8d 100644--- a/packages/aosp-libs/build.sh+++ b/packages/aosp-libs/build.sh@@ -43,15 +43,24 @@ termux_step_get_source() { export LD_LIBRARY_PATH="${TMP_CHECKOUT}/prefix/lib/x86_64-linux-gnu:${TMP_CHECKOUT}/prefix/usr/lib/x86_64-linux-gnu" export PATH="${TMP_CHECKOUT}/prefix/usr/bin:${PATH//$HOME\/.cargo\/bin/}"- local -a ubuntu_packages=(- "libncurses5"+ # libtinfo5 for running prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real+ # and libncurses5 for running prebuilts/clang-tools/linux-x86/bin/header-abi-dumper+ local -a ubuntu_jammy_packages=( "libtinfo5"+ "libncurses5"+ )++ # for running repo (the source control client for AOSP's source control system)+ local -a ubuntu_modern_packages=( "openssh-client" ) DESTINATION="${TMP_CHECKOUT}/prefix" \ UBUNTU_RELEASE=jammy \- termux_download_ubuntu_packages "${ubuntu_packages[@]}"+ termux_download_ubuntu_packages "${ubuntu_jammy_packages[@]}"++ DESTINATION="${TMP_CHECKOUT}/prefix" \+ termux_download_ubuntu_packages "${ubuntu_modern_packages[@]}" termux_download https://storage.googleapis.com/git-repo-downloads/repo "${TERMUX_PKG_CACHEDIR}/repo" SKIP_CHECKSUM chmod +x "${TERMUX_PKG_CACHEDIR}/repo"@@ -93,8 +102,10 @@ termux_step_host_build() { b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43 tar xf "${TERMUX_PKG_CACHEDIR}/python2.tar.xz" --strip-components=1 -C "${PYTHON2_WORKDIR}" pushd "${PYTHON2_WORKDIR}"+ export CFLAGS="-std=gnu11" ./configure --prefix="${PYTHON2_INSTALLDIR}" make install+ unset CFLAGS popd export PATH="${PYTHON2_INSTALLDIR}/bin:${PATH}" python2 -m ensurepipdiff --git a/scripts/Dockerfile b/scripts/Dockerfileindex d85e2c7a62..592609c87a 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -4,7 +4,7 @@ # docker push ghcr.io/termux/package-builder # This is done after changing this file or any of the # scripts/setup-{ubuntu,android-sdk,cgct}.sh setup scripts.-FROM ubuntu:24.04+FROM ubuntu:26.04 # Fix locale to avoid warnings: ENV LANG=en_US.UTF-8diff --git a/scripts/build/termux_download_ubuntu_packages.sh b/scripts/build/termux_download_ubuntu_packages.shindex e89b6304a5..065fb30ee7 100755--- a/scripts/build/termux_download_ubuntu_packages.sh+++ b/scripts/build/termux_download_ubuntu_packages.sh@@ -26,7 +26,7 @@ termux_download_ubuntu_packages() { : "${DESTINATION:="$TERMUX_PKG_HOSTBUILD_DIR/ubuntu_packages"}" : "${ARCHITECTURE:=amd64}" : "${MIRROR_URL:="https://archive.ubuntu.com/ubuntu"}"- : "${UBUNTU_RELEASE:=noble}" # Default to latest Ubuntu LTS, currently 24.04 Noble Numbat+ : "${UBUNTU_RELEASE:=resolute}" # Default to latest Ubuntu LTS, currently 26.04 Resolute Raccoon mkdir -p "$DESTINATION"diff --git a/scripts/run-docker.sh b/scripts/run-docker.shindex 9a786716c5..7247eb0c34 100755--- a/scripts/run-docker.sh+++ b/scripts/run-docker.sh@@ -2,8 +2,8 @@ set -euo pipefail TERMUX_SCRIPTDIR=$(cd "$(realpath "$(dirname "$0")")"; cd ..; pwd)-: ${TERMUX_BUILDER_IMAGE_NAME:=ghcr.io/termux/package-builder}-: ${CONTAINER_NAME:=termux-package-builder}+: ${TERMUX_BUILDER_IMAGE_NAME:=termux-package-builder-26.04}+: ${CONTAINER_NAME:=termux-package-builder-26.04} : ${TERMUX_DOCKER_RUN_EXTRA_ARGS:=} : ${TERMUX_DOCKER_EXEC_EXTRA_ARGS:=} BUILDSCRIPT_NAME=build-package.shdiff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.shindex e8348270c1..f01c68b9f8 100755--- a/scripts/setup-ubuntu.sh+++ b/scripts/setup-ubuntu.sh@@ -72,7 +72,7 @@ PACKAGES+=" xmltoman" PACKAGES+=" python3-pip" PACKAGES+=" python3-setuptools" PACKAGES+=" python-wheel-common"-PACKAGES+=" python3.12-venv"+PACKAGES+=" python3.14-venv" # Needed by package bc. PACKAGES+=" ed"@@ -220,7 +220,7 @@ PACKAGES+=" gtk-doc-tools" PACKAGES+=" happy" PACKAGES+=" itstool" PACKAGES+=" libdbus-glib-1-dev-bin"-PACKAGES+=" libgdk-pixbuf2.0-dev"+PACKAGES+=" libgdk-pixbuf-xlib-2.0-dev" PACKAGES+=" python3-html5lib" PACKAGES+=" python3-xcbgen" PACKAGES+=" sassc"EOF
docker build -t termux-package-builder-26.04 scripts
scripts/run-docker.sh ./build-package.sh -I -f aosp-libs
I understand that this is an example that uses our large build system, not an MRE. If you would like me to try to set up a more minimal example, please let me know what the farthest I should try to go on my own is, for example, if I build AOSP 9.0.0-r76 cleanly without patches or unnecessary dependencies in a single Dockerfile with FROM ubuntu:26.04 would that be far enough, or do I need to try to copy out and isolate the specific snippets of AOSP source code that reproduce the error when run with uutils coreutils?
Reproducible with uutils coreutils 0.8.0-0ubuntu3: always
Reproducible with GNU coreutils: never
uutils coreutils version: 0.8.0-0ubuntu3
GNU coreutils version compared today: 9.7-3ubuntu2 (all GNU coreutils versions from at least the last 4 years work)
I don't really understand what the best way to test uutils coreutils main branch instead of stable release in Ubuntu 26.04 would be, so if that is necessary please let me know what I should do.
These commands fail for me,
Tip
these commands download and build bionic libc and 15 other packages from the userspace of AOSP. The typical time it takes my computer to run the script from start to the point of the uutils-related error occurring is 45 minutes
reproduction script
error message
but if I use this:
switch to gnu coreutils quick and dirty in our environment
then it works.
I understand that this is an example that uses our large build system, not an MRE. If you would like me to try to set up a more minimal example, please let me know what the farthest I should try to go on my own is, for example, if I build AOSP 9.0.0-r76 cleanly without patches or unnecessary dependencies in a single Dockerfile with
FROM ubuntu:26.04would that be far enough, or do I need to try to copy out and isolate the specific snippets of AOSP source code that reproduce the error when run with uutils coreutils?Reproducible with uutils coreutils 0.8.0-0ubuntu3: always
Reproducible with GNU coreutils: never
uutils coreutils version: 0.8.0-0ubuntu3
GNU coreutils version compared today: 9.7-3ubuntu2 (all GNU coreutils versions from at least the last 4 years work)
I don't really understand what the best way to test uutils coreutils main branch instead of stable release in Ubuntu 26.04 would be, so if that is necessary please let me know what I should do.