A package build system for Termux.
297 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | root-packages/v4l-utils/getsubopt.h | 1 | #ifndef _GETSUBOPT_H |
| LOW | disabled-packages/termux-x11/termux-x11.c | 1 | #include <unistd.h> |
| LOW | disabled-packages/qt5-qtquickcontrols/build.sh | 21 | ## |
| LOW | ndk-patches/langinfo.h | 41 | #define _NL_ITEM_INDEX(nl) ((nl) & 0x3ff) |
| LOW | ndk-patches/langinfo.h | 61 | #define ABDAY_5 19 |
| LOW | ndk-patches/langinfo.h | 81 | #define ABMON_6 39 |
| LOW | scripts/generate-apt-packages-list.sh | 1 | #!/usr/bin/env bash |
| LOW | scripts/check-repository-health.js | 1 | #!/usr/bin/env node |
| LOW | scripts/properties.sh | 1 | # shellcheck shell=bash |
| LOW | scripts/properties.sh | 21 | # Additionally, the Termux packages build system is an unsafe mess of |
| LOW | scripts/properties.sh | 41 | # - `invalid_termux_prefix_paths`: Path variable must not match |
| LOW | scripts/properties.sh | 61 | ## |
| LOW | scripts/properties.sh | 121 | ## |
| LOW | scripts/properties.sh | 141 | # separators `/` are not allowed. The path component characters must |
| LOW | scripts/properties.sh | 161 | # with a `/`). Duplicate or trailing path separators `/` are not |
| LOW | scripts/properties.sh | 181 | # specific Filesystem Hierarchy Standard paths or paths used by Termux |
| LOW | scripts/properties.sh | 201 | # Same reasoning as `TERMUX_REGEX__INVALID_TERMUX_ROOTFS_PATHS`, |
| LOW | scripts/properties.sh | 221 | ## |
| LOW | scripts/properties.sh | 241 | # - https://cs.android.com/android/platform/superproject/+/android-14.0.0_r1:frameworks/base/core/java/android/content/p |
| LOW | scripts/properties.sh | 341 | # Following is a list of `TERMUX_` variables that are safe to modify when forking. |
| LOW | scripts/properties.sh | 361 | # - `TERMUX_API_APP__PACKAGE_NAME`. |
| LOW | scripts/properties.sh | 381 | TERMUX__LNAME="${TERMUX__NAME,,}" |
| LOW | scripts/properties.sh | 401 | # `TERMUX__NAME`, `TERMUX_APP__PACKAGE_NAME` and urls.** |
| LOW | scripts/properties.sh | 421 | |
| LOW | scripts/properties.sh | 441 | ## |
| LOW | scripts/properties.sh | 461 | # - `TERMUX_APP__NAMESPACE`. |
| LOW | scripts/properties.sh | 481 | # The directory set will be deleted by `clean.sh` if `TERMUX__PREFIX` |
| LOW | scripts/properties.sh | 501 | |
| LOW | scripts/properties.sh | 521 | # |
| LOW | scripts/properties.sh | 541 | |
| LOW | scripts/properties.sh | 561 | __termux_build_props__add_variables_validator_actions "TERMUX__CORE_DIR" "safe_absolute_path" |
| LOW | scripts/properties.sh | 581 | # - https://man7.org/linux/man-pages/man7/unix.7.html |
| LOW | scripts/properties.sh | 601 | ## |
| LOW | scripts/properties.sh | 621 | ## |
| LOW | scripts/properties.sh | 641 | ## |
| LOW | scripts/properties.sh | 661 | # Termux subdirectory path for `TERMUX__APPS_DIR_BY_UID`. |
| LOW | scripts/properties.sh | 681 | # numbers and must not start with a `0`. |
| LOW | scripts/properties.sh | 701 | |
| LOW | scripts/properties.sh | 721 | ## |
| LOW | scripts/properties.sh | 741 | ## |
| LOW | scripts/properties.sh | 761 | ########### |
| LOW | scripts/properties.sh | 781 | # the `TERMUX_APP__DATA_DIR` if compiling packages for the Android |
| LOW | scripts/properties.sh | 801 | # |
| LOW | scripts/properties.sh | 821 | |
| LOW | scripts/properties.sh | 841 | TERMUX_ANDROID_HOME="$TERMUX__HOME" # Deprecated alternative variable for `TERMUX__HOME` |
| LOW | scripts/properties.sh | 861 | # Default value: `usr` |
| LOW | scripts/properties.sh | 881 | # are installed under the `usr` subdirectory under rootfs, like under |
| LOW | scripts/properties.sh | 901 | # `TERMUX__PREFIX`, or a custom directory other than `usr`. In this |
| LOW | scripts/properties.sh | 921 | # - `TERMUX__PREFIX` must not be equal to `TERMUX__HOME` and |
| LOW | scripts/properties.sh | 961 | ## |
| LOW | scripts/properties.sh | 981 | # Termux `glibc` prefix directory path under `TERMUX__PREFIX` |
| LOW | scripts/properties.sh | 1001 | # |
| LOW | scripts/properties.sh | 1021 | # commands will fail with exit code 1 without any error on `stderr`, |
| LOW | scripts/properties.sh | 1081 | ## |
| LOW | scripts/properties.sh | 1101 | # |
| LOW | scripts/properties.sh | 1121 | |
| LOW | scripts/properties.sh | 1141 | ## |
| LOW | scripts/properties.sh | 1161 | ## |
| LOW | scripts/properties.sh | 1181 | TERMUX__PREFIX__MULTI_LIB_SUBDIR="lib32" |
| LOW | scripts/properties.sh | 1201 | # - https://github.com/termux/termux-packages/wiki/Termux-file-system-layout#termux-lib-directory |
| 181 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | build-all.sh | 23 | # Set TERMUX_INSTALL_DEPS to -s unless set to -i |
| LOW | build-package.sh | 449 | # Check if the package is in the compiled list |
| LOW | build-package.sh | 465 | # Check if the package is in the compiling list |
| LOW | scripts/run-docker.sh | 214 | # Set traps to ensure that the process started with docker exec and all its children are killed. |
| LOW | scripts/utils/termux_reuse_pr_build_artifacts.sh | 70 | # Print output only in the case of error |
| LOW | scripts/utils/termux_reuse_pr_build_artifacts.sh | 85 | # Check if we can perform CI fast path. |
| LOW | scripts/utils/termux/package/termux_package.sh | 9 | # Check if package on device builds are supported by checking |
| LOW | scripts/utils/termux/package/termux_package.sh | 34 | # Check if a specific version of a package has been built by checking |
| LOW | scripts/utils/termux/package/termux_package.sh | 59 | # Check if the package name has a prefix called `glibc` or `glibc32`. |
| LOW | scripts/updates/internal/termux_github_graphql.sh | 108 | | "GIT|\($pkgName)|\($tag)" # Print results |
| LOW | scripts/updates/utils/termux_pkg_upgrade_version.sh | 30 | # Check if it isn't the full version and add ':'. |
| LOW | packages/libheif/build.sh | 33 | # Check if SONAME is properly set: |
| LOW | packages/liblzma/build.sh | 29 | # Check if SONAME is properly set: |
| LOW | packages/libxml2/build.sh | 62 | # Check if SONAME is properly set: |
| LOW | packages/libjpeg-turbo/build.sh | 21 | # Check if SONAME is properly set: |
| LOW | packages/libexpat/build.sh | 36 | # Check if SONAME is properly set: |
| LOW | packages/zstd/build.sh | 46 | # Check if SONAME is properly set: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/buildorder.py | 40 | def parse_build_file_dependencies_with_vars(path, vars): |
| LOW | scripts/buildorder.py | 64 | def parse_build_file_dependencies(path): |
| LOW | scripts/buildorder.py | 68 | def parse_build_file_antidependencies(path): |
| LOW | scripts/buildorder.py | 72 | def parse_build_file_excluded_arches(path): |
| LOW | scripts/buildorder.py | 85 | def parse_build_file_variable(path, var): |
| LOW | scripts/buildorder.py | 96 | def parse_build_file_variable_bool(path, var): |
| LOW | scripts/buildorder.py | 99 | def add_prefix_glibc_to_pkgname(name): |
| LOW | scripts/buildorder.py | 223 | def read_packages_from_directories(directories, fast_build_mode, full_buildmode): |
| LOW | scripts/buildorder.py | 344 | def generate_target_buildorder(target_path, pkgs_map, fast_build_mode): |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 75 | def find_leading_assignment_end(lines: list[str]) -> int: |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 104 | def has_blacklisted_top_level_assignment(lines: list[str]) -> bool: |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 116 | def starts_with_leading_assignment(lines: list[str]) -> bool: |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 133 | def first_top_level_target_index(lines: list[str]) -> int | None: |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 173 | def first_scope_target_index_with_scopes( |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 186 | def find_scope_jumbo_import_index_with_scopes( |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 211 | def scope_import_indent_with_scopes( |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 223 | def find_scope_jumbo_import_index(lines: list[str], scope_depth: int) -> int | None: |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 351 | def module_path_from_build_file(path: Path, root: Path) -> str: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | build-package.sh | 413 | # Create the build deb file. Not to be overridden by package scripts. |
| MEDIUM | build-package.sh | 417 | # Create the build .pkg.tar.xz file. Not to be overridden by package scripts. |
| MEDIUM | disabled-packages/unnethack/build.sh | 22 | # Create a host build for the makedefs binary |
| MEDIUM | scripts/setup-cgct.sh | 28 | # Creating a directory for CGCT in tmp |
| MEDIUM | packages/aapt/build.sh | 233 | # Create an android.jar with AndroidManifest.xml and resources.arsc: |
| MEDIUM | packages/zsh/build.sh | 107 | # Create a symlink for zsh-$version instead of the hardlink: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | packages/timidity++/timidity.cfg | 46 | # alternatively, you can use the fluid-soundfont: |
| MEDIUM | .github/workflows/codeql.yml | 47 | # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how |
| MEDIUM | x11-packages/openbox/configs/rc.xml | 706 | # used by a shell. you can use * to match any characters and ? to match |
| MEDIUM | x11-packages/openbox/configs/rc.xml | 746 | # you can use fractions such as 1/2 or percentages such as 75% in which |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/buildorder.py | 40 | |
| LOW | scripts/buildorder.py | 72 | |
| LOW | scripts/buildorder.py | 223 | |
| LOW | scripts/get_hash_from_file.py | 5 | |
| LOW | x11-packages/movit/make_bundled_shaders.py | 16 | |
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 155 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | packages/delve/build.sh | 1 | TERMUX_PKG_HOMEPAGE=https://github.com/go-delve/delve |
| MEDIUM | packages/delve/build.sh | 7 | TERMUX_PKG_SRCURL=https://github.com/go-delve/delve/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | disabled-packages/qt5-qmake/termux-build-qmake.sh | 6 | ## Usage: |
| LOW | scripts/generate-apt-packages-list.sh | 10 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ckages/chromium-host-tools/scripts/rewrite_gn_jumbo.py | 15 |