├── .devcontainer ├── Dockerfile └── devcontainer.json ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── package-request.yml ├── stale.yml └── workflows │ ├── package_continuous.yml │ ├── package_on_device.yml │ ├── package_update.yml │ └── packages.yml ├── .gitignore ├── LICENSE.md ├── README.md ├── TODO-zh-cn.md ├── big-pkgs.list ├── common-files ├── apply-chromium-patches.py ├── build-termux-docker.sh ├── building-system-patches │ ├── 0001-import-gpg-key.patch │ ├── 0002-fix-auto-update.patch │ ├── 0003-add-packages-in-setup-termux.patch │ ├── 0004-dump-repology-data-url.patch │ ├── 0005-always-clean-space-for-auto-update-check.patch │ ├── 0006-do-not-use-python-from-usr-bin.patch │ ├── 0007-do-not-xz-when-debug.patch │ └── 0008-allow-reuse-pr.patch ├── chromium-patches │ ├── add-missing-deduction-guide │ │ └── 6478.patch │ ├── add-missing-typename-2 │ │ └── 5735.patch │ ├── add-missing-typename-3 │ │ └── 5790.patch │ ├── add-missing-typename-4 │ │ └── 5790.patch │ ├── add-missing-typename-5 │ │ └── 5845.patch │ ├── add-missing-typename-6 │ │ └── 6099.patch │ ├── add-missing-typename-7 │ │ └── 6099.patch │ ├── add-missing-typename-8 │ │ └── 6167.patch │ ├── add-missing-typename-9 │ │ └── 6167.patch │ ├── add-missing-typename │ │ ├── 5672.patch │ │ └── 5790.patch │ ├── angle-fix-atomic │ │ ├── 5615.patch │ │ └── 6367.patch │ ├── angle-fix-specialization │ │ └── 5672.patch │ ├── angle-no-android-jni │ │ └── 4389.patch │ ├── atspi-mark-possibly-unused-gn-variables │ │ └── 6045.patch │ ├── autofill-unique_ids-no-constexpr-operator-equal │ │ └── 6261.patch │ ├── autofill_i18n_api-no-constexpr-string │ │ └── 6099.patch │ ├── avoid-constexpr-std-string-2 │ │ └── 6422.patch │ ├── avoid-constexpr-std-string │ │ └── 5672.patch │ ├── avoid-emplace_back-struct │ │ └── 5938.patch │ ├── blink-fix-narrowing │ │ └── 5511.patch │ ├── blink-fix-structured-binding-declaration │ │ ├── 5672.patch │ │ ├── 5735.patch │ │ ├── 5790.patch │ │ ├── 5938.patch │ │ ├── 6099.patch │ │ └── 6167.patch │ ├── blink-font-constructor-2 │ │ └── 5938.patch │ ├── blink-font-constructor │ │ ├── 5845.patch │ │ └── 6261.patch │ ├── blink-impl-wtf-stacksize │ │ ├── 4389.patch │ │ └── 5249.patch │ ├── blink-skia-constructor │ │ └── 5790.patch │ ├── breakpad-no-elf_prstatus │ │ └── 4389.patch │ ├── chromedriver-vector-emplace_back │ │ └── 5790.patch │ ├── chromium-atomic-in-oncecallback │ │ └── 5663.patch │ ├── chromium-disable-sandbox │ │ ├── 5359.patch │ │ └── 5845.patch │ ├── chromium-disable-shm │ │ ├── 4389.patch │ │ └── 5249.patch │ ├── chromium-disable-systemd │ │ └── 5535.patch │ ├── chromium-dns-class-constructor │ │ ├── 5845.patch │ │ └── 6045.patch │ ├── chromium-extensions-map │ │ ├── 5359.patch │ │ └── 6367.patch │ ├── chromium-fenced_frame-declare-destructor │ │ ├── 5938.patch │ │ ├── 6099.patch │ │ └── 6422.patch │ ├── chromium-fill-elf │ │ └── 4389.patch │ ├── chromium-fix-incomplete-type-of-class-group │ │ └── 5500.patch │ ├── chromium-fix-structured-binding-declaration │ │ └── 5790.patch │ ├── chromium-fix-type-for-inotify │ │ └── 5249.patch │ ├── chromium-freetype │ │ └── 4472.patch │ ├── chromium-headless-disable-sandbox-by-default │ │ ├── 5359.patch │ │ ├── 5530.patch │ │ └── 5563.patch │ ├── chromium-impl-dns │ │ ├── 4389.patch │ │ ├── 4472.patch │ │ ├── 5249.patch │ │ ├── 5359.patch │ │ └── 5615.patch │ ├── chromium-impl-scoped-file │ │ ├── 5249.patch │ │ └── 5735.patch │ ├── chromium-impl-sysinfo │ │ ├── 4389.patch │ │ ├── 4961.patch │ │ └── 5249.patch │ ├── chromium-media-fix-structured-binding │ │ └── 5735.patch │ ├── chromium-net-mess-string-string_view-compare │ │ └── 5938.patch │ ├── chromium-no-atomic_flag │ │ ├── 5249.patch │ │ └── 5359.patch │ ├── chromium-no-execinfo │ │ ├── 4389.patch │ │ ├── 5249.patch │ │ ├── 5563.patch │ │ ├── 6099.patch │ │ ├── 6367.patch │ │ └── 6422.patch │ ├── chromium-no-futimes │ │ └── 4389.patch │ ├── chromium-no-glibc-version │ │ ├── 5359.patch │ │ └── 5563.patch │ ├── chromium-no-landlock │ │ └── 6478.patch │ ├── chromium-no-priority-inheritance-locks │ │ ├── 4389.patch │ │ └── 5249.patch │ ├── chromium-no-set-process-title │ │ ├── 4389.patch │ │ ├── 5249.patch │ │ ├── 5615.patch │ │ └── 6367.patch │ ├── chromium-numerics-byte_conversions-no-std-bit_cast │ │ └── 6312.patch │ ├── chromium-redefine-termios2 │ │ └── 5359.patch │ ├── chromium-statfs-type │ │ ├── 5249.patch │ │ └── 5414.patch │ ├── chromium-strong_alias-no-constexpr-operator-equal │ │ └── 6261.patch │ ├── chromium-struct-contructor │ │ └── 5790.patch │ ├── chromium-ui-constructor │ │ └── 5845.patch │ ├── chromium-ui-use-fabsf │ │ └── 5481.patch │ ├── compiler-clang-lib-dir │ │ └── 6312.patch │ ├── compiler-custom-rust-abi-target-triple │ │ └── 6312.patch │ ├── compiler-disable-warnings │ │ └── 6478.patch │ ├── compiler-no-unused-but-set-variable │ │ └── 4389.patch │ ├── compiler-remove-gsimple-template-names │ │ ├── 5414.patch │ │ └── 5615.patch │ ├── compiler-remove-unsupported-flags │ │ ├── 4961.patch │ │ ├── 5249.patch │ │ ├── 5359.patch │ │ ├── 5615.patch │ │ ├── 5845.patch │ │ ├── 5938.patch │ │ ├── 6045.patch │ │ ├── 6099.patch │ │ ├── 6167.patch │ │ ├── 6261.patch │ │ └── 6478.patch │ ├── compiler-use-android-target │ │ ├── 4389.patch │ │ ├── 4961.patch │ │ ├── 5249.patch │ │ └── 5414.patch │ ├── compiler-use-custom-libcxx-for-v8 │ │ └── 6312.patch │ ├── cpuinfo-android-arm │ │ ├── 5249.patch │ │ └── 6261.patch │ ├── crashpad-no-getdtablesize │ │ ├── 4389.patch │ │ └── 5249.patch │ ├── crashpad-no-memfd │ │ ├── 4389.patch │ │ └── 5249.patch │ ├── crashpad-no-spawn │ │ ├── 4961.patch │ │ └── 5249.patch │ ├── crypt-fix-dynamic-loaded-libraries │ │ ├── 4389.patch │ │ ├── 5672.patch │ │ └── 5845.patch │ ├── dav1d-no-get-affinity │ │ └── 5249.patch │ ├── dawn-aligned-alloc │ │ └── 6478.patch │ ├── dawn-fix-dynamic-loaded-libraries │ │ ├── 4961.patch │ │ ├── 5249.patch │ │ └── 5993.patch │ ├── dawn-no-android-jni │ │ └── 5359.patch │ ├── debug-build-stack_trace │ │ └── 6422.patch │ ├── dummy-hid-service │ │ └── 6422.patch │ ├── egl-fix-include │ │ ├── 4389.patch │ │ ├── 5249.patch │ │ └── 5993.patch │ ├── eigen3-use-cxx14 │ │ └── 5359.patch │ ├── ffmpeg-disable-asm │ │ └── 4389.patch │ ├── fix-compile-errors-when-allocator-shim-is-disabled │ │ └── 4389.patch │ ├── fragment_data_iterator-use-std_nullptr_t │ │ ├── 6045.patch │ │ └── 6099.patch │ ├── gtk-fix-dynamic-loaded-libraries │ │ ├── 4472.patch │ │ ├── 5249.patch │ │ └── 5359.patch │ ├── harfbuzz-remove-unused-vars │ │ └── 4389.patch │ ├── libdav1d-config │ │ └── 6367.patch │ ├── metadata.json │ ├── minigbm-no-android-log │ │ ├── 5359.patch │ │ └── 5511.patch │ ├── ozone-fix-dynamic-loaded-libraries │ │ ├── 4389.patch │ │ └── 4472.patch │ ├── ozone-wayland-memfd │ │ └── 5845.patch │ ├── partition_alloc-use-std_nullptr_t │ │ └── 6099.patch │ ├── perfetto-no-android-jni │ │ └── 5359.patch │ ├── perfetto-no-pthread_getname_np │ │ └── 6099.patch │ ├── performance_manager-context_collection-no-constexpr-operator-equal │ │ └── 6312.patch │ ├── persistent_histogram_allocator-constructor │ │ └── 6045.patch │ ├── pulse-fix-dynamic-loaded-libraries │ │ └── 4389.patch │ ├── quiche-dcheck │ │ └── 4389.patch │ ├── remove-usage-std-format │ │ └── 6478.patch │ ├── remove-usage-three_way_compare │ │ └── 6422.patch │ ├── remove-usage-vector-three_way_compare-2 │ │ └── 6367.patch │ ├── remove-usage-vector-three_way_compare-3 │ │ └── 6478.patch │ ├── remove-usage-vector-three_way_compare │ │ └── 6167.patch │ ├── remove-xorg-from-build-deps-2 │ │ ├── 6255.patch │ │ └── 6478.patch │ ├── remove-xorg-from-build-deps │ │ └── 6167.patch │ ├── resource_attribution-query_params-no-constexpr-operator-equal │ │ ├── 6167.patch │ │ ├── 6261.patch │ │ └── 6312.patch │ ├── revert-blink-v8-cxx20-2 │ │ ├── 6261.patch │ │ ├── 6312.patch │ │ └── 6422.patch │ ├── revert-blink-v8-cxx20 │ │ ├── 6167.patch │ │ ├── 6261.patch │ │ └── 6312.patch │ ├── revert-rust-qr-scanner │ │ ├── 6167.patch │ │ └── 6261.patch │ ├── revert-split-out-ios-shared-feed-protos │ │ └── 5615.patch │ ├── script-add-ld-library-path │ │ └── 4389.patch │ ├── script-add-ld-preload │ │ └── 6478.patch │ ├── simple_url_pattern_matcher-no-constexpr-string │ │ └── 6312.patch │ ├── sql-VirtualCursor-standard-layout │ │ └── 5359.patch │ ├── swiftshader-fix-dynamic-loaded-libraries │ │ ├── 4389.patch │ │ ├── 4961.patch │ │ └── 5249.patch │ ├── swiftshader-no-android │ │ ├── 4389.patch │ │ ├── 4472.patch │ │ ├── 4961.patch │ │ ├── 5249.patch │ │ ├── 6045.patch │ │ ├── 6261.patch │ │ └── 6422.patch │ ├── swiftshader-no-spawn │ │ └── 5359.patch │ ├── sysroot-patches │ │ ├── libcxx-17-lwg3545.diff │ │ ├── libstdcxx3-10-lwg3545.diff │ │ └── libstdcxx3-10-optional-struct.diff │ ├── tflite-no-atrace │ │ └── 5249.patch │ ├── tflite-use-system-zlib │ │ └── 5359.patch │ ├── undo-internal-alloc │ │ └── 6261.patch │ ├── unity-fix-dynamic-loaded-libraries │ │ └── 4389.patch │ ├── unrar-no-lutimes │ │ └── 4389.patch │ ├── use-std_to_address-from-libcxx │ │ ├── 6167.patch │ │ └── 6261.patch │ ├── v8-do-not-use-builtin-mul │ │ └── 5481.patch │ ├── v8-fix-compile-on-android-ndk │ │ └── 5993.patch │ ├── v8-fix-compress-pointer-offset │ │ └── 5546.patch │ ├── v8-fix-non-ptr-compr-compilation-on-old-compilers │ │ └── 5938.patch │ ├── v8-fix-trap-handler │ │ ├── 5249.patch │ │ └── 5414.patch │ ├── v8-reimpl-page-allocator │ │ └── 5414.patch │ ├── vk-layers-no-android-log │ │ ├── 5359.patch │ │ ├── 5511.patch │ │ ├── 5672.patch │ │ ├── 5845.patch │ │ ├── 5993.patch │ │ └── 6045.patch │ ├── wayland-memfd_create │ │ └── 5359.patch │ ├── weston-fix-dynamic-loaded-libraries │ │ └── 5249.patch │ ├── weston-memfd_create │ │ └── 5359.patch │ ├── x11-fix-dynamic-loaded-libraries │ │ ├── 4389.patch │ │ ├── 6045.patch │ │ └── 6261.patch │ ├── y-cxx11-narrowing │ │ └── 6478.patch │ ├── y-exclusive_sync_wait_info-constructor │ │ └── 6099.patch │ ├── y-geometry_mapper_transform_cache-constructor │ │ └── 6099.patch │ ├── y-gfx-constructor │ │ └── 6099.patch │ ├── y-live_anchor_time-constructor │ │ └── 6099.patch │ ├── y-loss_based_bwe_v2_config-constructor │ │ ├── 6099.patch │ │ └── 6261.patch │ ├── y-mime_util_xdg-file_info-consturctor │ │ └── 6167.patch │ ├── y-race_network_request_info-constructor │ │ └── 6099.patch │ ├── y-shared_image_backing-constructor │ │ └── 6099.patch │ ├── y-view_state-consturctor │ │ └── 6099.patch │ ├── z-iwyu-blink-include-bitset-2 │ │ └── 6261.patch │ ├── z-iwyu-blink-include-bitset │ │ └── 5615.patch │ ├── z-iwyu-blink-include-cstring │ │ └── 4961.patch │ ├── z-iwyu-blink-include-mutex │ │ └── 6167.patch │ ├── z-iwyu-blink-include-variant │ │ └── 5845.patch │ ├── z-iwyu-breakpad-include-cstring │ │ └── 5249.patch │ ├── z-iwyu-chromedriver-include-vector │ │ └── 5790.patch │ ├── z-iwyu-chromium-include-cmath │ │ └── 5249.patch │ ├── z-iwyu-chromium-include-compare │ │ └── 5735.patch │ ├── z-iwyu-chromium-include-ctime │ │ └── 4389.patch │ ├── z-iwyu-chromium-include-vector │ │ └── 5735.patch │ ├── z-iwyu-chromium-net-include-string_view │ │ └── 5993.patch │ ├── z-iwyu-chromium-net-include-vector │ │ └── 5790.patch │ ├── z-iwyu-crypto-hkdf-include-vector │ │ └── 6167.patch │ ├── z-iwyu-display_color_management-include-string │ │ ├── 6167.patch │ │ └── 6261.patch │ ├── z-iwyu-gfx-include-bitset │ │ └── 6167.patch │ ├── z-iwyu-ipcz-include-memory │ │ └── 5938.patch │ ├── z-iwyu-material_color_utilities-include-cmath │ │ └── 5938.patch │ ├── z-iwyu-preview_cancel_reason-include-string │ │ └── 6312.patch │ ├── z-iwyu-sensor_reading-inttypes │ │ └── 5993.patch │ ├── z-iwyu-skia-include-cmath │ │ └── 5790.patch │ ├── z-iwyu-translate_ui_languages_manager-fix-include │ │ └── 5672.patch │ ├── z-iwyu-webauthn-variant │ │ └── 5672.patch │ └── z-iwyu-webrtc_overrides-include-vector │ │ └── 5414.patch ├── clean-termux-docker.sh ├── ndk-patches │ └── r17c │ │ ├── bits-struct_file.h.patch │ │ ├── dirent.h.patch │ │ ├── grp.h.patch │ │ ├── linux-fcntl.h.patch │ │ ├── paths.h.patch │ │ ├── pwd.h.patch │ │ ├── redefine-TCSAFLUSH.patch │ │ ├── semaphore.h.patch │ │ ├── stdio.h.patch │ │ ├── stdlib.h.patch │ │ ├── sys-cdefs.h.patch │ │ ├── syslog.patch │ │ ├── unistd.h.patch │ │ └── utmp.h.patch ├── override-packages.txt ├── prebuilt-gcc.json ├── setup_multilib_toolchain.sh ├── setup_toolchain_gcc.sh ├── setup_toolchain_gcc_deprecated.sh └── setup_toolchain_ndk_r17c.sh ├── continuous-build-wrapper.sh ├── repo.json ├── sample ├── build.sh └── sample-sub.subpackage.sh ├── setup-environment.sh ├── tur-continuous ├── .placeholder └── hello-tur-continuous │ ├── build.sh │ └── main.c ├── tur-disabled ├── bfm │ └── build.sh ├── cf │ └── build.sh ├── gcc-10 │ ├── 0001-android-related-modifications.patch │ ├── 0002-fix-missing-_L.patch │ ├── 0003-fix-android-long-double.patch │ ├── 0004-disable-call-ssp-local.patch │ ├── 0005-check-both-android-and-bionic-macro.patch │ ├── 0006-stop-using-PTR-macro.patch │ ├── 0007-override-CXXFLAGS-in-Makefile.patch │ ├── 0008-explicitly-some-headers.patch │ ├── 0009-remove-sys-sysctl.h.patch │ ├── 0010-avoid-hard-link-install.patch │ ├── build.sh │ └── specs.in ├── gcc-9 │ ├── 0001-android-related-modifications.patch │ ├── 0002-fix-missing-_L.patch │ ├── 0003-fix-android-long-double.patch │ ├── 0004-disable-call-ssp-local.patch │ ├── 0005-check-both-android-and-bionic-macro.patch │ ├── 0006-stop-using-PTR-macro.patch │ ├── 0007-override-CXXFLAGS-in-Makefile.patch │ ├── 0008-explicitly-some-headers.patch │ ├── 0009-remove-sys-sysctl.h.patch │ ├── 0010-avoid-hard-link-install.patch │ ├── 0011-fix-for-libatomic.patch │ ├── build.sh │ └── specs.in └── tmux-sixel │ ├── build.sh │ ├── compat-imsg.c.patch │ ├── compat-setproctitle.c.patch │ ├── compat.h.patch │ ├── configure.ac.patch │ ├── tmux.conf │ └── tmux.h.patch ├── tur-hacking ├── afrog │ └── build.sh ├── aircrack-ng │ └── build.sh ├── bettercap │ └── build.sh ├── burpsuite-pro │ ├── LICENSE │ ├── build.sh │ └── burpsuite-pro.desktop ├── burpsuite │ ├── LICENSE │ ├── build.sh │ └── burpsuite.desktop ├── dsniff │ ├── 0001-tirpc.patch │ ├── 0002-csin.patch │ ├── 0003-httppostfix.patch │ └── build.sh ├── ettercap │ ├── CMakeLists.txt.patch │ ├── build.sh │ ├── cmake-Modules-EttercapLibCheck.cmake.patch │ ├── cmake-Modules-EttercapOSTest.cmake.patch │ ├── ettercap-0.8.3.1-libcurl-8.patch │ ├── etterconf.patch │ ├── include-ec_threads.h.patch │ ├── src-ec_threads.c.patch │ └── src-ec_ui.c.patch ├── fscan │ └── build.sh ├── hashcat │ ├── build.sh │ ├── deps-unrar-ulinks.cpp.patch │ ├── include-ext_lzma.h.patch │ ├── include-types.h.patch │ ├── lzma-disable_hardware_acceleration_support_on_arm.patch │ ├── lzma-guard_armv8_feature_from_old_architectures.patch │ ├── pthread.patch │ ├── src-Makefile.patch │ └── src-filehandling.c.patch ├── mdk4 │ ├── build.sh │ ├── src-attacks-poc.c.patch │ └── src-channelhopper.c.patch ├── nbtscan │ └── build.sh ├── openbullet2 │ └── build.sh ├── reaver │ └── build.sh ├── shark │ └── build.sh ├── slowhttptest │ ├── 1-configure-fix-prefix.patch │ └── build.sh ├── zaproxy │ ├── build.sh │ └── zap.desktop └── zphisher │ └── build.sh ├── tur-multilib ├── lib32-libandroid-support │ └── build.sh ├── lib32-libc++-shared │ └── build.sh ├── lib32-libc++ │ └── build.sh ├── lib32-libgmp │ └── build.sh ├── lib32-libgnutls │ └── build.sh ├── lib32-libiconv │ ├── bin32-iconv.subpackage.sh │ └── build.sh ├── lib32-libidn2 │ └── build.sh ├── lib32-libnettle │ ├── bin32-nettle.subpackage.sh │ └── build.sh └── lib32-libunistring │ ├── build.sh │ └── lib-stdio-impl.h.patch ├── tur-on-device ├── blender │ ├── 0001-blender_android.patch │ ├── 0002-python-3.12-head-compat.patch │ ├── 0003-python-3.12-pylong.patch │ ├── 0004-ffmpeg-7-channels.patch │ ├── 0005-ffmpeg-7-duration.patch │ ├── 0006-ffmpeg-7-read_seek.patch │ └── build.sh ├── classic-flang │ ├── build.sh │ ├── flang-CMakeLists.txt.patch │ ├── flang-lib-scutil-host-fp-folding.c.patch │ ├── flang-lib-scutil-pgnewfil.c.patch │ ├── flang-runtime-flang-async.c.patch │ ├── flang-runtime-flangrti-tempnam.c.patch │ ├── flang-runtime-libpgmath-lib-common-fltfenv.c.patch │ ├── flang-runtime-libpgmath-lib-common-mth_intrinsics.h.patch │ ├── flang-runtime-libpgmath-lib-common-sincos-gsincos.cpp.patch │ ├── flang-runtime-libpgmath-tools-mth_mask.awk.patch │ ├── flang-tools-flang1-flang1exe-CMakeLists.txt.patch │ └── flang-tools-flang2-flang2exe-CMakeLists.txt.patch ├── gnome-chess │ └── build.sh ├── gnome-mahjongg │ └── build.sh ├── gnome-sudoku │ └── build.sh ├── hello-tur-on-device │ ├── build.sh │ └── main.c ├── lpsolve │ ├── 0001-timeb.h.patch │ ├── build.sh │ └── lpsolve-5.5.2.11-misc.patch ├── nqp │ └── build.sh ├── perl-net-ssleay │ └── build.sh ├── pixz │ └── build.sh ├── python2-numpy │ ├── build.sh │ └── site.cfg.patch ├── python2-scipy │ ├── build.sh │ └── wrapper.in ├── r-base │ ├── 0001-wctrans-impl.patch │ ├── 0002-fix-link-libraries.patch │ └── build.sh ├── rakudo │ └── build.sh ├── s-nail │ ├── build.sh │ ├── mblen.patch │ └── stub-wchar-test.patch └── thc-hydra │ ├── 0001-fix-docdir.patch │ ├── 0002-disable-fdsan.patch │ └── build.sh └── tur ├── 3dstool ├── 0001-Handle-readdir-DT_UNKNOWN.patch ├── 0002-link-against-capstone.patch ├── 0003-drop-some-flags.patch └── build.sh ├── 64tass ├── 0001-memalign-conflict.patch └── build.sh ├── abuse-frabs └── build.sh ├── abuse ├── 0001-do-not-include-shm.h.patch └── build.sh ├── aconv └── build.sh ├── afio ├── 0000-dir_h.compfile.c.patch ├── 0001-index-strchr-compatibility.afio.h.patch ├── 1000-netbsd-pkgsrc-compfile.c.patch ├── 1001-netbsd-pkgsrc-afio.c.patch └── build.sh ├── ansiweather └── build.sh ├── apkeditor ├── build.sh └── wrapper.in ├── archisteamfarm ├── build.sh └── cc.sh.patch ├── ardentryst └── build.sh ├── arpack-ng └── build.sh ├── astrometry.net-data-basic ├── build.sh └── copyright ├── astrometry.net ├── 0001-gsl-an-configure-cross-compile.patch ├── 0002-solver-landroid-glob.patch ├── 0003-ioutils-TMPDIR.patch ├── 0004-bypass-netpbm-test.patch └── build.sh ├── bazel ├── 0001-strerror_r.patch ├── 0002-impl-wait3.patch ├── 0003-disable-sandbox.patch ├── 0004-spawn.patch ├── 0005-bazelrc-path.patch ├── 0006-force-use-external-patch_tools.patch ├── 0007-import-termux-patches.patch ├── 0008-run-elf-cleaner-for-bundled-tools.patch ├── 0009-compile-cpu_profiler-with-fPIC.patch ├── 0101-import-termux-cross-deps.patch ├── bazel8.subpackage.sh ├── build.sh ├── dep-patches │ ├── BUILD │ ├── absl.patch │ ├── cares-config.patch │ ├── cares.patch │ ├── grpc.patch │ ├── protobuf.patch │ ├── rules_cc.patch │ ├── z-absl.patch │ ├── z-cares-config.patch │ ├── z-cares.patch │ ├── z-grpc.patch │ ├── z-protobuf.patch │ └── z-rules_cc.patch └── termux-cross │ ├── BUILD │ ├── platforms │ └── BUILD │ └── toolchain │ ├── BUILD │ └── template │ ├── BUILD │ ├── bin │ └── wrapper.sh │ └── cc_toolchain_config.bzl ├── bazel5 ├── 0001-strerror_r.patch ├── 0002-impl-wait3.patch ├── 0003-disable-sandbox.patch ├── 0004-spawn.patch ├── 0005-import-termux-patches.patch ├── 0006-force-use-external-patch_tools.patch ├── 0007-disable-module_maps.patch ├── 0008-run-elf-cleaner-for-bazel-tools.patch ├── 0009-bazelrc-path.patch ├── 0010-jdk-17.patch ├── 0011-compile-cpu_profiler-with-fPIC.patch ├── 0101-import-termux-cross-deps.patch ├── build.sh ├── dep-patches │ ├── BUILD │ ├── absl.patch │ ├── cares-config.patch │ ├── cares.patch │ ├── grpc-upb-clang-19.patch │ ├── grpc-upb-config.patch │ ├── grpc-upb.patch │ ├── grpc.patch │ ├── protobuf.patch │ ├── upb-clang-19.patch │ └── upb-config.patch ├── termux-cross │ ├── BUILD │ ├── platforms │ │ └── BUILD │ └── toolchain │ │ ├── BUILD │ │ └── template │ │ ├── BUILD │ │ ├── bin │ │ └── wrapper.sh │ │ └── cc_toolchain_config.bzl └── wrapper.in ├── bazel6 ├── 0001-strerror_r.patch ├── 0002-impl-wait3.patch ├── 0003-disable-sandbox.patch ├── 0004-spawn.patch ├── 0005-import-termux-patches.patch ├── 0006-force-use-external-patch_tools.patch ├── 0007-disable-module_maps.patch ├── 0008-run-elf-cleaner-for-bazel-tools.patch ├── 0009-bazelrc-path.patch ├── 0010-jdk-17.patch ├── 0011-fix-patch-eol.patch ├── 0012-compile-cpu_profiler-with-fPIC.patch ├── 0101-import-termux-cross-deps.patch ├── build.sh ├── dep-patches │ ├── BUILD │ ├── cares-config.patch │ ├── cares.patch │ ├── grpc.patch │ ├── protobuf.patch │ ├── upb-clang-19.patch │ └── upb-config.patch └── termux-cross │ ├── BUILD │ ├── platforms │ └── BUILD │ └── toolchain │ ├── BUILD │ └── template │ ├── BUILD │ ├── bin │ └── wrapper.sh │ └── cc_toolchain_config.bzl ├── bazel7 ├── 0001-strerror_r.patch ├── 0002-impl-wait3.patch ├── 0003-disable-sandbox.patch ├── 0004-spawn.patch ├── 0005-bazelrc-path.patch ├── 0006-force-use-external-patch_tools.patch ├── 0007-disable-module_maps.patch ├── 0008-run-elf-cleaner-for-bundled-tools.patch ├── 0009-compile-cpu_profiler-with-fPIC.patch ├── 0010-import-termux-patches.patch ├── 0101-import-termux-cross-deps.patch ├── build.sh ├── dep-patches │ ├── BUILD │ ├── cares-config.patch │ ├── cares.patch │ ├── grpc.patch │ ├── protobuf.patch │ ├── upb-config.patch │ ├── z-cares-config.patch │ ├── z-cares.patch │ ├── z-grpc.patch │ ├── z-protobuf.patch │ └── z-upb.patch └── termux-cross │ ├── BUILD │ ├── platforms │ └── BUILD │ └── toolchain │ ├── BUILD │ └── template │ ├── BUILD │ ├── bin │ └── wrapper.sh │ └── cc_toolchain_config.bzl ├── biber-installer ├── ExtUtils-LibBuilder.diff ├── Text-BibTeX.diff ├── build.sh └── installer.sh ├── bililive-go └── build.sh ├── biome └── build.sh ├── biome2 └── build.sh ├── bitmagnet └── build.sh ├── blueprint-compiler └── build.sh ├── box2d ├── 0001-aligned_alloc.patch └── build.sh ├── boxedwine ├── build.sh ├── for-clang16.patch ├── issue-1776.patch ├── lib-tiny-process-process_unix.cpp.patch ├── project-linux-makefile.patch └── source-sdl-startupArgs.cpp.patch ├── cfitsio └── build.sh ├── chromium-beta-host-tools ├── build.sh ├── chromium-launcher.sh.in ├── cr-patches │ ├── 0000-patches-desc │ ├── 0001-compiler-use-android-target.patch │ ├── 0002-compiler-disable-warnings.patch │ ├── 0003-compiler-use-custom-libcxx-for-v8.patch │ ├── 0004-compiler-clang-lib-dir.patch │ ├── 0005-compiler-custom-rust-abi-target-triple.patch │ ├── 1001-chromium-disable-sandbox.patch │ ├── 1002-chromium-disable-shm.patch │ ├── 1003-chromium-fix-type-for-inotify.patch │ ├── 1004-chromium-headless-disable-sandbox-by-default.patch │ ├── 1005-chromium-impl-dns.patch │ ├── 1006-chromium-impl-scoped-file.patch │ ├── 1007-chromium-impl-sysinfo.patch │ ├── 1008-chromium-no-futimes.patch │ ├── 1009-chromium-disable-google-api-warnings.patch │ ├── 1010-chromium-partition-allocator-memfd.patch │ ├── 1011-chromium-no-set-process-title.patch │ ├── 1012-chromium-redefine-termios2.patch │ ├── 1013-chromium-crypt-fix-dynamic-loaded-libraries.patch │ ├── 1014-chromium-unity-fix-dynamic-loaded-libraries.patch │ ├── 1015-chromium-gtk-fix-dynamic-loaded-libraries.patch │ ├── 1016-chromium-ozone-wayland-memfd.patch │ ├── 1017-chromium-x11-fix-dynamic-loaded-libraries.patch │ ├── 1018-chromium-no-landlock.patch │ ├── 1019-chromium-dummy-hid-service.patch │ ├── 1020-chromium-debug-build-stack_trace.patch │ ├── 1501-v8-fix-compress-pointer-offset.patch │ ├── 1502-v8-memfd_create.patch │ ├── 1503-v8-fix-trap-handler.patch │ ├── 1601-angle-no-android-jni.patch │ ├── 1701-swiftshader-no-spawn.patch │ ├── 1702-swiftshader-fix-dynamic-loaded-libraries.patch │ ├── 1703-swiftshader-no-android.patch │ ├── 2001-weston-memfd_create.patch │ ├── 2002-weston-fix-dynamic-loaded-libraries.patch │ ├── 2003-wayland-memfd_create.patch │ ├── 2004-breakpad-no-elf_prstatus.patch │ ├── 2005-crashpad-fill-elf.patch │ ├── 2006-crashpad-no-getdtablesize.patch │ ├── 2007-crashpad-no-memfd.patch │ ├── 2008-crashpad-no-spawn.patch │ ├── 2009-cpuinfo-android-arm.patch │ ├── 2010-dav1d-no-get-affinity.patch │ ├── 2011-dawn-fix-dynamic-loaded-libraries.patch │ ├── 2012-dawn-no-android-jni.patch │ ├── 2013-minigbm-no-android-log.patch │ ├── 2014-perfetto-no-android-jni.patch │ ├── 2015-perfetto-no-pthread_getname_np.patch │ ├── 2016-dawn-aligned-alloc.patch │ ├── 2017-vk-layers-no-android-log.patch │ ├── 2018-unrar-no-lutimes.patch │ ├── 2019-tflite-no-atrace.patch │ ├── 2020-dav1d-config.patch │ ├── 2101-mix-no-execinfo.patch │ ├── 2102-mix-egl-fix-include.patch │ ├── 2103-pulse-fix-dynamic-loaded-libraries.patch │ ├── 7001-blink-font-constructor.patch │ ├── 7002-argument-deduction-pdfium-wrapper.patch │ ├── 7003-disable-std_hardware_destructive_interference_size.patch │ ├── 7004-no-constexpr-in-requires-base-containers-span.patch │ ├── 7005-polyfill-atomic_ref.patch │ ├── 7006-argument-deduction-compose_session.patch │ ├── 7007-ranges-base-container-to_value_list.patch │ ├── 7008-use-SFINAE-in-base-containers.patch │ └── 8001-material_color_utilities-include-cmath.patch ├── jumbo-patches │ ├── 0001-reland-jumbo-scripts.patch │ ├── 0002-reland-jumbo-1.patch │ ├── 0003-reland-jumbo-2.patch │ ├── 0004-reland-jumbo-3.patch │ ├── 0005-reland-jumbo-4.patch │ ├── 0006-reland-jumbo-5.patch │ ├── 0007-reland-jumbo-6.patch │ ├── 0008-reland-jumbo-7.patch │ ├── 0009-reland-jumbo-8.patch │ ├── 0010-reland-jumbo-9.patch │ ├── 0011-reland-jumbo-10.patch │ ├── 0012-reland-jumbo-11.patch │ └── 0013-reland-jumbo-12.patch ├── sysroot-patches │ ├── libstdcxx3-10-lwg3545.diff │ └── libstdcxx3-10-optional-struct.diff └── toolchain-template │ ├── host-toolchain.gn.in │ └── v8-toolchain.gn.in ├── chromium-beta ├── 9001-use-prebuilt-snapshot.patch ├── 9002-use-prebuilt-cross-tools.patch ├── 9003-v8-use-prebuilt-cross-tools.patch ├── 9004-use-prebuilt-pdfium.patch ├── build.sh ├── chromium-launcher.sh.in ├── host-tools.txt ├── third_party_override │ └── swiftshader │ │ └── src │ │ └── Vulkan │ │ ├── BUILD.gn │ │ └── vulkan.gni └── toolchain-template │ ├── host-toolchain.gn.in │ └── v8-toolchain.gn.in ├── cksfv └── build.sh ├── clanbomber ├── 0001-drop-linkage-stdcxxfs.patch └── build.sh ├── clucene ├── 0001-clucene-core-2.3.3.4-install_contribs_lib.patch ├── 0002-clucene-core-2.3.3.4-pkgconfig.patch ├── 0003-fix_zlib_detections.patch ├── 0004-Fix-missing-include-time.h.patch ├── 0005-clucene-multimap-put.patch ├── 0006-clucene-narrowing-conversions.patch ├── 0007-clucene-debug.patch ├── 0008-do-not-use-try-run.patch ├── 0009-pthread_t.patch ├── 0010-adapt-for-c++17-above.patch └── build.sh ├── code-server ├── 0001-vscode-fix-pathes.patch.beforehostbuild └── build.sh ├── codesnap ├── arboard-dummy-platform.diff └── build.sh ├── comcom64 └── build.sh ├── cppunit └── build.sh ├── ctags-cross └── build.sh ├── dadadodo └── build.sh ├── darktable ├── 0001-cmake-libm.patch ├── 0002-jobs-pthread.patch └── build.sh ├── davegnukem ├── 0001-add-appstream-metadata.patch ├── 0002-build-reproducibly.patch ├── 0003-build-on-big-endian-systems.patch ├── 0004-allow-flags-injection.patch ├── 0005-allow-space-in-find.patch └── build.sh ├── dcfldd └── build.sh ├── dd-rescue └── build.sh ├── ddclient ├── 0001-fix-hardcoded-pathes.patch └── build.sh ├── ddns-go └── build.sh ├── depotdownloader ├── 0001-fix-perm-on-old-android.patch └── build.sh ├── detchar └── build.sh ├── dgbaodev-repo ├── build.sh └── dvc-public.gpg ├── dichvucoder-repo ├── build.sh └── dvc-public.gpg ├── dillo ├── 0001-Use-memset-instead-of-bzero.patch ├── 0002-fix-OpenSSL-1.1-detection.patch └── build.sh ├── dj64dev └── build.sh ├── djstub ├── build.sh └── djstub-cross.subpackage.sh ├── dlib ├── 0001-drop-distutils.patch └── build.sh ├── dosemu2 └── build.sh ├── dotload └── build.sh ├── doukutsu-rs ├── 0001-no-jni.patch ├── 0002-use-system-sdl2.patch ├── 9998-cpal-no-jni.diff ├── 9999-webbrowser-no-jni.diff └── build.sh ├── dpp ├── 0001-fix-32bit.patch └── build.sh ├── edex-ui ├── 0001-fix-package.json.patch ├── 9999-fix-for-isexe.diff └── build.sh ├── efte ├── 0001-use-host-build-bin2c.patch └── build.sh ├── electron-deps └── build.sh ├── electron-jumbo-host-tools ├── build.sh ├── cr-patches │ ├── 0000-patches-desc │ ├── 0001-compiler-use-android-target.patch │ ├── 0002-compiler-disable-warnings.patch │ ├── 0004-compiler-clang-lib-dir.patch │ ├── 0005-compiler-custom-rust-abi-target-triple.patch │ ├── 0006-compiler-use-custom-libcxx-for-v8.patch │ ├── 1001-chromium-disable-sandbox.patch │ ├── 1002-chromium-disable-shm.patch │ ├── 1003-chromium-fix-type-for-inotify.patch │ ├── 1004-chromium-headless-disable-sandbox-by-default.patch │ ├── 1005-chromium-impl-dns.patch │ ├── 1006-chromium-impl-scoped-file.patch │ ├── 1007-chromium-impl-sysinfo.patch │ ├── 1008-chromium-no-futimes.patch │ ├── 1009-chromium-disable-google-api-warnings.patch │ ├── 1010-chromium-no-priority-inheritance-locks.patch │ ├── 1011-chromium-no-set-process-title.patch │ ├── 1012-chromium-redefine-termios2.patch │ ├── 1013-chromium-crypt-fix-dynamic-loaded-libraries.patch │ ├── 1014-chromium-unity-fix-dynamic-loaded-libraries.patch │ ├── 1016-chromium-ozone-wayland-memfd.patch │ ├── 1017-chromium-x11-fix-dynamic-loaded-libraries.patch │ ├── 1018-chromium-no-landlock.patch │ ├── 1019-chromium-dummy-hid-service.patch │ ├── 1020-chromium-debug-build-stack_trace.patch │ ├── 1021-chromium-partition-allocator-memfd.patch │ ├── 1501-v8-fix-compress-pointer-offset.patch │ ├── 1502-v8-reimpl-page-allocator.patch │ ├── 1503-v8-fix-trap-handler.patch │ ├── 1601-angle-no-android-jni.patch │ ├── 1701-swiftshader-no-spawn.patch │ ├── 1702-swiftshader-fix-dynamic-loaded-libraries.patch │ ├── 1703-swiftshader-no-android.patch │ ├── 2001-weston-memfd_create.patch │ ├── 2002-weston-fix-dynamic-loaded-libraries.patch │ ├── 2003-wayland-memfd_create.patch │ ├── 2004-breakpad-no-elf_prstatus.patch │ ├── 2005-crashpad-fill-elf.patch │ ├── 2006-crashpad-no-getdtablesize.patch │ ├── 2007-crashpad-no-memfd.patch │ ├── 2008-crashpad-no-spawn.patch │ ├── 2009-cpuinfo-android-arm.patch │ ├── 2010-dav1d-no-get-affinity.patch │ ├── 2011-dawn-fix-dynamic-loaded-libraries.patch │ ├── 2012-dawn-no-android-jni.patch │ ├── 2013-minigbm-no-android-log.patch │ ├── 2014-perfetto-no-android-jni.patch │ ├── 2015-perfetto-no-pthread_getname_np.patch │ ├── 2016-dawn-aligned-alloc.patch │ ├── 2017-vk-layers-no-android-log.patch │ ├── 2018-unrar-no-lutimes.patch │ ├── 2019-tflite-no-atrace.patch │ ├── 2020-dav1d-config.patch │ ├── 2101-mix-no-execinfo.patch │ ├── 2102-mix-egl-fix-include.patch │ ├── 2103-pulse-fix-dynamic-loaded-libraries.patch │ ├── 7001-blink-font-constructor.patch │ ├── 7002-blink-cxx11-narrowing.patch │ ├── 7003-disable-std_hardware_destructive_interference_size.patch │ ├── 7004-argument-deduction-pdfium-wrapper.patch │ └── 8001-material_color_utilities-include-cmath.patch ├── electron-patches │ ├── 9001-electron-getversion-from-file.patch │ ├── 9002-v8-fix-trap-handler.patch │ ├── 9003-cares-config.patch │ ├── 9004-electron-disable-sandbox.patch │ ├── 9005-node-as-posix.patch │ ├── 9006-gtk-fix-dynamic-loaded-libraries.patch │ └── 9007-add-missing-function-for-extension_action_api.patch ├── jumbo-patches │ ├── 0001-reland-jumbo-scripts.patch │ ├── 0002-reland-jumbo-1.patch │ ├── 0003-reland-jumbo-2.patch │ ├── 0004-reland-jumbo-3.patch │ ├── 0005-reland-jumbo-4.patch │ ├── 0006-reland-jumbo-5.patch │ ├── 0007-reland-jumbo-6.patch │ ├── 0008-reland-jumbo-7.patch │ ├── 0009-reland-jumbo-8.patch │ ├── 0010-reland-jumbo-9.patch │ ├── 0011-reland-jumbo-10.patch │ ├── 0012-reland-jumbo-11.patch │ ├── 0013-reland-jumbo-12.patch │ └── 9001-electron-jumbo.patch ├── sysroot-patches │ ├── libstdcxx3-10-lwg3545.diff │ └── libstdcxx3-10-optional-struct.diff └── toolchain-template │ ├── host-toolchain.gn.in │ └── v8-toolchain.gn.in ├── electron-jumbo ├── 9001-use-prebuilt-snapshot.patch ├── 9002-use-prebuilt-cross-tools.patch ├── 9003-v8-use-prebuilt-cross-tools.patch ├── 9004-use-prebuilt-pdfium.patch ├── 9005-use-prebuilt-js2c-binary.patch ├── build.sh ├── third_party_override │ └── swiftshader │ │ └── src │ │ └── Vulkan │ │ ├── BUILD.gn │ │ └── vulkan.gni └── toolchain-template │ ├── host-toolchain.gn.in │ └── v8-toolchain.gn.in ├── electron └── build.sh ├── electron21 └── build.sh ├── electron22 └── build.sh ├── electron23 └── build.sh ├── electron24 └── build.sh ├── electron25 └── build.sh ├── electron26 └── build.sh ├── emojify └── build.sh ├── exatorrent └── build.sh ├── expac ├── build.sh └── misc.patch ├── fakepkg ├── 00-hardcoded-path.patch ├── 01-android-chdir-fsroot-eperm-gnutar-dieout-fix.patch └── build.sh ├── fdpp └── build.sh ├── feed2imap-go └── build.sh ├── ffmpeg5.1 ├── build.sh ├── enable-soname-version.patch └── libavutil-file_open.c.patch ├── ffmpeg7 ├── build.sh ├── enable-soname-version.patch └── libavutil-file_open.c.patch ├── ffplayout ├── 0001-fix-hardcoded-paths.patch ├── 0002-use-pre-generated-html.patch └── build.sh ├── filebrowser └── build.sh ├── gawk-mbs └── build.sh ├── gawk-reclen └── build.sh ├── gcc-11 ├── 0001-android-related-modifications.patch ├── 0002-fix-missing-_L.patch ├── 0003-fix-android-long-double.patch ├── 0004-disable-call-ssp-local.patch ├── 0005-check-both-android-and-bionic-macro.patch ├── 0006-use-libc++_shared.patch.disable ├── 0007-override-CXXFLAGS-in-Makefile.patch ├── 0008-explicitly-some-headers.patch ├── 0009-remove-sys-sysctl.h.patch ├── 0010-avoid-hard-link-install.patch ├── 0011-stop-using-PTR-macro.patch ├── 0012-prefer-fPIC-on-x86-linux.patch ├── 0101-ada-gnat-handler.patch ├── 0102-ada-libgnarl-syscall.patch ├── 0103-ada-x64-nallfl.patch ├── 0104-ada-fix-name-handle.patch ├── 0105-ada-remove-usage-of-r_debug.patch ├── 0106-ada-dummy-pthread-functions-for-android.patch ├── 0107-ada-properly-use-CPUSET.patch ├── 0108-ada-dummy-gnat_has_cap_sys_nice.patch ├── 0109-ada-build-with-fPIC.patch ├── build.sh └── specs.in ├── gcc-12 ├── 0001-android-related-modifications.patch ├── 0002-fix-missing-_L.patch ├── 0003-disable-call-ssp-local.patch ├── 0004-avoid-hard-link-install.patch ├── 0005-check-both-android-and-bionic-macro.patch ├── 0006-use-libc++_shared.patch.disable ├── 0007-override-CXXFLAGS-in-Makefile.patch ├── 0008-explicitly-some-headers.patch ├── 0009-remove-sys-sysctl.h.patch ├── 0010-stop-using-PTR-macro.patch ├── build.sh └── specs.in ├── gcc-13 ├── 0001-android-related-modifications.patch ├── 0002-fix-missing-_L.patch ├── 0003-disable-call-ssp-local.patch ├── 0004-avoid-hard-link-install.patch ├── 0005-check-both-android-and-bionic-macro.patch ├── 0006-use-libc++_shared.patch.disable ├── 0007-override-CXXFLAGS-in-Makefile.patch ├── 0008-explicitly-some-headers.patch ├── 0009-remove-sys-sysctl.h.patch ├── 0010-fix-ginclude-limits.h.patch ├── build.sh └── specs.in ├── gcc-14 ├── 0001-android-related-modifications.patch ├── 0002-fix-missing-_L.patch ├── 0003-disable-call-ssp-local.patch ├── 0004-avoid-hard-link-install.patch ├── 0005-check-both-android-and-bionic-macro.patch ├── 0006-remove-sys-sysctl.h.patch ├── 0007-override-CXXFLAGS-in-Makefile.patch ├── 0008-explicitly-some-headers.patch ├── 0009-fix-ginclude-limits.h.patch ├── build.sh └── specs.in ├── gcc-15 ├── 0001-android-related-modifications.patch ├── 0002-fix-missing-_L.patch ├── 0003-disable-call-ssp-local.patch ├── 0004-avoid-hard-link-install.patch ├── 0005-check-both-android-and-bionic-macro.patch ├── 0006-remove-sys-sysctl.h.patch ├── 0007-override-CXXFLAGS-in-Makefile.patch ├── 0008-explicitly-some-headers.patch ├── 0009-fix-ginclude-limits.h.patch ├── build.sh └── specs.in ├── gcc-default ├── LICENSE ├── build.sh ├── gcc-default-11.subpackage.sh ├── gcc-default-12.subpackage.sh ├── gcc-default-13.subpackage.sh ├── gcc-default-14.subpackage.sh ├── gcc-default-15.subpackage.sh ├── postinst.sh.in └── prerm.sh.in ├── genext2fs └── build.sh ├── gnat ├── LICENSE └── build.sh ├── go-cqhttp └── build.sh ├── go-moreutils ├── 0001-use-go-flags-from-env.patch └── build.sh ├── gtkcord4 └── build.sh ├── gtt └── build.sh ├── hare ├── Makefile.patch ├── build.sh ├── config.mk ├── cross_setup.sh ├── hare-cross.subpackage.sh ├── path.patch └── syscalls.patch.beforehostbuild ├── harec ├── build.patch ├── build.sh ├── cross_setup.sh └── harec-cross.subpackage.sh ├── hurl ├── 0001-libxml2-ErrorFunc.patch └── build.sh ├── hurrican ├── 0001-do-not-include-timeb.h.patch └── build.sh ├── iamb ├── 0001-arboard-dummy-platform.diff └── build.sh ├── icewm ├── build.sh └── termux.patch ├── instfd └── build.sh ├── intermodal └── build.sh ├── itstool ├── 0001-python3.12.patch └── build.sh ├── juice-shop └── build.sh ├── jujutsu └── build.sh ├── krabby └── build.sh ├── lazyjj └── build.sh ├── leanify └── build.sh ├── lensfun ├── 0001-python-options.patch └── build.sh ├── lib-tls-client ├── 0001-bump-internal-version.patch └── build.sh ├── libabw └── build.sh ├── libandroid-nl-types ├── LICENSE └── build.sh ├── libbson ├── 0001-libmongoc-android-no-shm.patch └── build.sh ├── libcdr └── build.sh ├── libcmis ├── 0001-libxml2-2.12.patch ├── 0002-boost-1.87.patch └── build.sh ├── libdicom └── build.sh ├── libe-book ├── 0001-TRUE-def.patch └── build.sh ├── libepubgen └── build.sh ├── libetonyek ├── 0001-mdds-3.0.patch └── build.sh ├── libexttextcat └── build.sh ├── libfreehand ├── build.sh └── libfreehand-0.1.2-icu-fix.patch ├── libftgl2 ├── 0001-upstream-bf07517ded4704be37eef39b758b5206fc6f4f0d.patch ├── 0002-upstream-835f2ba7911a6c15a1a314d5e3267fa089b5a319.patch ├── 0003-upstream-778b8f21ba0b71289aef37e3422d008456445971.patch ├── 0004-upstream-8763fa4e413e015e46376697fb8ab59ed31c2ff5.patch ├── 0005-upstream-a867c7a2e02ab8b47b1322f2903cfaa44c756b9b.patch ├── 0006-upstream-d546aefd73dcbb0d0d1e0f3c916770d7f9f98169.patch ├── 0007-no-eps.patch ├── 0008-soversion-fix.patch └── build.sh ├── libicu69 ├── build.sh └── source-common-putil.cpp.patch ├── libiptcdata └── build.sh ├── libixion └── build.sh ├── liblangtag └── build.sh ├── libllvm-11 ├── build.sh ├── llvm-11.subpackage.sh └── llvm-tools-llvm-shlib-CMakeLists.txt.patch ├── libllvm-13 ├── build.sh ├── llvm-13.subpackage.sh └── llvm-tools-llvm-shlib-CMakeLists.txt.patch ├── libllvm-14 ├── build.sh ├── llvm-14.subpackage.sh ├── llvm-include-llvm-ADT-SmallVector.h.patch ├── llvm-tools-llvm-rtdyld-llvm-rtdyld.cpp.patch └── llvm-tools-llvm-shlib-CMakeLists.txt.patch ├── libllvm-15 ├── build.sh ├── clang-lib-Driver-ToolChain.cpp.patch ├── clang-lib-Driver-ToolChains-Gnu.cpp.patch ├── clang-lib-Driver-ToolChains-Linux.cpp.patch ├── llvm-15.subpackage.sh ├── llvm-include-llvm-ADT-SmallVector.h.patch ├── llvm-tools-llvm-rtdyld-llvm-rtdyld.cpp.patch ├── llvm-tools-llvm-shlib-CMakeLists.txt.patch └── openmp.patch ├── libllvm-16 ├── Add-stubs-and-headers-for-nl_types-APIs.patch ├── build.sh ├── clang-16.subpackage.sh ├── clang-lib-Driver-ToolChain.cpp.patch ├── clang-lib-Driver-ToolChains-CommonArgs.cpp.patch ├── clang-lib-Driver-ToolChains-Gnu.cpp.patch ├── clang-lib-Driver-ToolChains-Linux.cpp.patch ├── compiler-rt-CMakeLists.txt.patch ├── compiler-rt-lib-builtins-CMakeLists.txt.patch ├── cxx-libm.patch ├── libcompiler-rt-16.subpackage.sh ├── lld-16.subpackage.sh ├── llvm-16.subpackage.sh ├── llvm-config.in ├── llvm-tools-16.subpackage.sh ├── llvm-tools-llvm-rtdyld-llvm-rtdyld.cpp.patch ├── mlir-16.subpackage.sh ├── mlir-lib-ExecutionEngine-CRunnerUtils.cpp.patch └── openmp-config-ix-m32.patch ├── libllvm-classic-flang ├── build.sh ├── clang-lib-Driver-ToolChain.cpp.patch ├── clang-lib-Driver-ToolChains-Gnu.cpp.patch ├── clang-lib-Driver-ToolChains-Linux.cpp.patch ├── llvm-tools-llvm-rtdyld-llvm-rtdyld.cpp.patch ├── llvm-tools-llvm-shilib-CMakeLists.txt.patch └── openmp.patch ├── libllvm-codon ├── build.sh ├── llvm-include-llvm-ADT-SmallVector.h.patch ├── llvm-tools-llvm-rtdyld-llvm-rtdyld.cpp.patch └── openmp.patch ├── libmongoc ├── 0001-libmongoc-android-no-shm.patch └── build.sh ├── libmongocrypt ├── 0001-android-no-dlinfo.patch └── build.sh ├── libmspub └── build.sh ├── libmwaw └── build.sh ├── libnids ├── 0001-respect-LDFLAGS.patch └── build.sh ├── libnsl ├── 0001-getdomainname.patch └── build.sh ├── libnumbertext └── build.sh ├── libodfgen └── build.sh ├── liborcus └── build.sh ├── libpagemaker ├── build.sh └── libpagemaker-0.0.4-const-ref-exception.patch ├── libqxp └── build.sh ├── librevenge └── build.sh ├── libspnav ├── build.sh └── makefile.patch ├── libstaroffice └── build.sh ├── libvisio └── build.sh ├── libwpd └── build.sh ├── libwpg └── build.sh ├── libwps └── build.sh ├── libzmf ├── 0001-long-uint-comparison.patch └── build.sh ├── mdds └── build.sh ├── meli ├── 0001-disable-dbus.patch ├── 0002-use-system-libsqlite.patch └── build.sh ├── mesa-zink ├── 0001-egl-fix-Xlib-include-in-egldisplay.h.patch ├── 0006-enable-system_has_kms_drm-for-android.patch ├── 0007-support-linking-with-LLVM-and-clang-15-static-libraries.patch ├── 0008-fix-for-getprogname.patch ├── 0009-fix-marco-when-building-lavapipe.patch ├── 0010-fix-xmlconfig.patch ├── 0011-freedreno-kgsl-no-wsi.patch ├── 0012-src-gallium-drivers-llvmpipe-lp_screen.c.patch ├── 0013-vtest-socket-path.patch ├── 0014-wsi-no-pthread_cancel.patch ├── 0015-meson.build.patch ├── 0016-fix-for-anon-file.patch ├── 9999-meson-89146e84c9eab649d3847af101d61047cac45765.diff ├── build.sh ├── cmake-wrapper.in ├── mesa-zink-dev.subpackage.sh ├── mesa-zink-vulkan-icd-freedreno.subpackage.sh ├── mesa-zink-vulkan-icd-swrast.subpackage.sh └── osmesa-zink.subpackage.sh ├── moarvm ├── 0001-no-pthread_yield.patch └── build.sh ├── mongodb ├── 0001-libcxx-android-no-deduction-guides-in-memory.patch ├── 0002-revert-7f574fb632c18e96a4dc6df88c476b9b68da4980.patch ├── 0003-add-dns_query_android-impl.h.patch ├── 0004-add-stack_locator_android.cpp.patch ├── 0005-add-processinfo_android.cpp.patch ├── 0006-add-ftdc_system_stats_android.cpp.patch ├── 0007-fix-hardcoded-pathes.patch ├── 0008-android-no-pthread_getname_np.patch └── build.sh ├── morsegen └── build.sh ├── nasm-segelf ├── build.sh └── nasm-segelf-cross.subpackage.sh ├── ndk-sysroot-gcc-compact ├── 0001-android-versioning.h.patch ├── 0002-compact-with-clang-builtins.patch ├── 0003-sys-cdefs.h.patch ├── 0004-do-not-use-c23-style-enum.patch ├── 0005-do-not-warn-unsupported-version.patch ├── 0006-check-both-android-and-linux-macro.patch ├── 0100-reland-workaround-for-using_if_exists.patch ├── 0101-reland-workaround-for-builtin-is_convertible.patch ├── 0102-workaround-for-has_specialization-in-segmented_iterator.patch ├── 0103-workaround-for-adl_only-namespace-in-system_error.patch ├── 0104-workaround-for-remove_pointer.patch ├── 0105-workaround-for-builtin-decay.patch └── build.sh ├── nodejs-12 ├── avoid-ficlone-ioctl.patch ├── backport-v8-00604cd2806b5d26bef592dd19989a234bd07a4b.patch ├── build.sh ├── configure.py.patch ├── deps-uv-src-unix-core.c.patch ├── deps-uv-uv.gyp.patch ├── deps-v8-src-flags-flag-definitions.h.patch ├── deps-v8-src-logging-log.cc.patch ├── fix_multiple_definitions.patch ├── lib-child_process.js.patch ├── lib-os.js.patch ├── node.gyp.patch ├── npm-link-patch.patch ├── src-cares_wrap.cc.patch ├── src-node_internals.h.patch ├── src-node_main.cc.patch ├── tools-v8_gypfiles-v8.gyp.patch └── v8-clang-17.patch ├── nodejs-16 ├── avoid-ficlone-ioctl.patch ├── build.sh ├── configure.py.patch ├── deps-npm-node_modules-cacache-lib-util-move-file.js.patch ├── deps-uv-src-unix-core.c.patch ├── deps-uv-src-unix-process.c.patch ├── deps-uv-uv.gyp.patch ├── deps-v8-src-flags-flag-definitions.h.patch ├── deps-v8-src-logging-log.cc.patch ├── deps-v8-src-trap-handler-trap-handler.h.patch ├── fix_multiple_definitions.patch ├── lib-child_process.js.patch ├── lib-os.js.patch ├── node.gyp.patch ├── src-debug_utils.cc.patch ├── src-node_internals.h.patch ├── src-node_main.cc.patch ├── src-node_report.cc.patch ├── test-parallel-test-blob-buffer-too-large.js.patch ├── test-parallel-test-child-process-exec-env.js.patch ├── test-parallel-test-child-process-spawnsync-shell.js.patch ├── test-parallel-test-child-process-stdio-overlapped.js.patch ├── test-parallel-test-dgram-bind-fd.js.patch ├── test-parallel-test-dgram-membership.js.patch ├── test-parallel-test-dgram-socket-buffer-size.js.patch ├── test-parallel-test-gc-http-client-connaborted.js.patch ├── test-parallel-test-process-constants-noatime.js.patch ├── test-sequential-test-gc-http-client-onerror.js.patch ├── test-sequential-test-gc-http-client.js.patch ├── tools-v8_gypfiles-toolchain.gypi.patch ├── tools-v8_gypfiles-v8.gyp.patch └── v8-clang-17.patch ├── nodejs-18 ├── avoid-ficlone-ioctl.patch ├── build.sh ├── configure.py.patch ├── deps-npm-lib-commands-install.js.patch ├── deps-uv-src-unix-core.c.patch ├── deps-uv-src-unix-process.c.patch ├── deps-uv-uv.gyp.patch ├── deps-v8-src-flags-flag-definitions.h.patch ├── deps-v8-src-logging-log.cc.patch ├── deps-v8-src-trap-handler-trap-handler.h.patch ├── fix_multiple_definitions.patch ├── lib-child_process.js.patch ├── lib-os.js.patch ├── node.gyp.patch ├── src-debug_utils.cc.patch ├── src-getaddrinfo.patch ├── src-node_internals.h.patch ├── src-node_report.cc.patch ├── test-common-index.js.patch ├── test-parallel-test-blob-buffer-too-large.js.patch ├── test-parallel-test-child-process-exec-env.js.patch ├── test-parallel-test-child-process-spawnsync-shell.js.patch ├── test-parallel-test-child-process-stdio-overlapped.js.patch ├── test-parallel-test-child-process-uid-gid.js.patch ├── test-parallel-test-dgram-bind-fd.js.patch ├── test-parallel-test-dgram-membership.js.patch ├── test-parallel-test-dgram-socket-buffer-size.js.patch ├── test-parallel-test-process-constants-noatime.js.patch ├── tools-gyp-pylib-gyp-generator-ninja.py.patch ├── tools-install.py.patch ├── tools-v8_gypfiles-toolchain.gypi.patch ├── tools-v8_gypfiles-v8.gyp.patch └── v8-clang-17.patch ├── nodejs-20 ├── avoid-ficlone-ioctl.patch ├── build.sh ├── common.gypi.patch ├── deps-npm-lib-cli-entry.js.patch ├── deps-npm-lib-commands-install.js.patch ├── deps-uv-src-unix-core.c.patch ├── deps-uv-src-unix-process.c.patch ├── deps-uv-uv.gyp.patch ├── deps-v8-src-flags-flag-definitions.h.patch ├── deps-v8-src-logging-log.cc.patch ├── deps-v8-src-trap-handler-trap-handler.h.patch ├── fix_multiple_definitions.patch ├── lib-child_process.js.patch ├── lib-os.js.patch ├── node.gyp.patch ├── src-debug_utils.cc.patch ├── src-getaddrinfo.patch ├── src-node_internals.h.patch ├── src-node_report.cc.patch ├── test-common-index.js.patch ├── test-parallel-test-blob-buffer-too-large.js.patch ├── test-parallel-test-child-process-exec-env.js.patch ├── test-parallel-test-child-process-spawnsync-shell.js.patch ├── test-parallel-test-child-process-stdio-overlapped.js.patch ├── test-parallel-test-child-process-uid-gid.js.patch ├── test-parallel-test-dgram-bind-fd.js.patch ├── test-parallel-test-dgram-membership.js.patch ├── test-parallel-test-dgram-socket-buffer-size.js.patch ├── test-parallel-test-fs-readfile-pipe-large.js.patch ├── test-parallel-test-fs-readfile-pipe.js.patch ├── test-parallel-test-fs-readfilesync-pipe-large.js.patch ├── test-parallel-test-process-constants-noatime.js.patch ├── tools-gyp-pylib-gyp-generator-ninja.py.patch ├── tools-v8_gypfiles-toolchain.gypi.patch └── tools-v8_gypfiles-v8.gyp.patch ├── octave-x ├── 0001-fix-hardcoded-paths.patch ├── 0002-append-rpath-flag-to-pkg-config-files.patch ├── 0003-undefine-the-macro-in-pwd.h.patch ├── build.sh └── wrapper.in ├── octave ├── 0001-fix-hardcoded-paths.patch ├── 0002-append-rpath-flag-to-pkg-config-files.patch ├── 0003-undefine-the-macro-in-pwd.h.patch ├── build.sh └── wrapper.in ├── ograph-rs └── build.sh ├── openalut ├── 000_configure.diff ├── 001_freebsd_pthread.diff ├── 005_am_maintainer_mode.diff ├── 006_findutils_syntax.diff └── build.sh ├── openimageio ├── build.sh ├── disable-neon.patch └── prefix.patch ├── openjdk-11 ├── 0001-make-autoconf-define-ARM-for-arm-build-with-clang.patch ├── 0002-os_linux-add-android-checks-and-fixes.patch ├── 0003-Define-sys-gettid-on-arm-and-aarch64.patch ├── 0004-Disable-posix-print-uptime-overridden-by-linux.patch ├── 0005-android-prevent-build-of-libjsound-and-libsa.patch ├── 0006-Link-against-system-libiconv.patch ├── 0007-include-netinet_in-for-android.patch ├── 0008-Fix-the-build-with-clang-llvm-13+.patch ├── 0009-Use-Android-s-strerror_r.patch ├── 0010-Use-utimensat-on-android.patch ├── 0011-Fixed-Java_sun_nio_fs_UnixNativeDispatcher_futimes.patch ├── 0012-Add-CXXFLAGS_JDKLIB-to-CXXFLAGS.patch ├── 0013-Use-ASCII-codeset-on-android.patch ├── 0014-Fix-libjvm.so-path-when-run-from-Android-app.patch ├── 0015-arm-cast-address-to-char-when-clearing-cache.patch ├── 0016-Don-t-run-fpu_control-related-functions-on-Android.patch ├── 0017-Libfontmanager-link-against-libawt-to-fix-link-error.patch ├── 0018-Try-to-get-libjvm.so-path-from-proc-self-maps-on-and.patch ├── 0019-Warn-instead-of-exiting-if-getcpu-2-is-unsupported.patch ├── 0020-Remove-pre-UAL-aliases.patch ├── 0021-arm-fix-assembly-in-os_linux_arm.cpp.patch ├── 0022-Add-workaround-for-tagged-pointers-on-Android-12.patch ├── 0023-x86-always-compile-with-PIC.patch ├── 0024-Fix-StackOverflowError-on-ARM.patch ├── 0025-android-dlvsym-is-available-if-ANDROID_API-24.patch ├── 0026-configure-do-not-require-alsa.patch ├── 0027-Remove-sysThreadAvailableStackWithSlack-from-hotspot.patch ├── 0028-JvmMapfile.gmk-filter-same-symbols-for-linux-and-and.patch ├── 0029-Fix-build-with-lld-17.patch ├── 0030-make-cflags-handle-arm-like-other-arches.patch ├── 0031-elfFile.hpp-no-need-to-define-ELF-32-64-_ST_TYPE-on-.patch ├── 0032-os-linux-add-getloadavg-implementation-for-android.patch ├── 0033-os-linux-use-getpagesize-instad-of-SHMLBA.patch ├── 0034-libjava-change-return-type-of-strerror_r.patch ├── 0035-Update-hardcoded-paths-to-work-in-termux.patch ├── 0036-aarch64_get_thread_helper-Thread-current.patch ├── 0037-Remove-aarch64_get_thread_helper.patch ├── 0038-fix-usage-of-aarch64_get_thread_helper.patch ├── 0039-dlopen-libc-rather-than-librt.patch ├── build.sh ├── openjdk-11-source.subpackage.sh └── openjdk-11-x.subpackage.sh ├── openslide └── build.sh ├── openspecfun ├── 0001-gfortran.patch └── build.sh ├── openssl-1.1 ├── Configurations-15-android.conf.patch ├── apps-ocsp.c.patch ├── build.sh ├── e_os.h.patch └── openssl1.1-tool.subpackage.sh ├── openvdb └── build.sh ├── optivorbis └── build.sh ├── pacman-contrib ├── build.sh └── sudo.patch ├── pacutils ├── build.sh └── path.patch ├── partialzip └── build.sh ├── payload-dumper-go ├── 0001-gozstd-fetch-source.patch ├── 0002-gozstd-support-i686.patch └── build.sh ├── php7.2 ├── Makefile.global.patch ├── build-php.m4.patch ├── build.sh ├── ext-fileinfo-config.m4.patch ├── ext-opcache-config.m4.patch ├── ext-opcache-zend_accelerator_module.c.patch ├── ext-pdo_pgsql-config.m4.patch ├── ext-pgsql-config.m4.patch ├── ext-phar-Makefile.frag.patch ├── ext-posix-posix.c.patch ├── ext-standard-dns.c.patch ├── ext-standard-php_fopen_wrapper.c.patch ├── ext-standard-proc_open.c.patch ├── iconv-config.m4.patch ├── openssl-sslv3-consts.patch ├── pear-Makefile.frag.patch ├── php-fpm.patch ├── sapi-apache2handler-config.m4.patch └── use-local-fastcgi-header.patch ├── php7 ├── build-php.m4.patch ├── build.sh ├── ext-intl-config.m4.patch ├── ext-libxml-libxml.c.patch ├── ext-opcache-config.m4.patch ├── ext-opcache-zend_accelerator_module.c.patch ├── ext-pdo_pgsql-config.m4.patch ├── ext-pgsql-config.m4.patch ├── ext-phar-Makefile.frag.patch ├── ext-posix-posix.c.patch ├── ext-standard-basic_functions.c.patch ├── ext-standard-dns.c.patch ├── ext-standard-php_fopen_wrapper.c.patch ├── ext-standard-proc_open.c.patch ├── iconv-config.m4.patch ├── main-streams-cast.c.patch ├── pear-Makefile.frag.patch ├── php-fpm.patch ├── php7-apache.subpackage.sh ├── php7-fpm.subpackage.sh ├── php7-pgsql.subpackage.sh ├── sapi-apache2handler-config.m4.patch └── use-local-fastcgi-header.patch ├── playit └── build.sh ├── pybind11 └── build.sh ├── python-cairo └── build.sh ├── python-fitsio └── build.sh ├── python-future └── build.sh ├── python-kivy ├── build.sh └── kivy-lib-mtdev.py.patch ├── python-mitmproxy-wireguard └── build.sh ├── python-opengl └── build.sh ├── python-pandas └── build.sh ├── python-polars ├── arboard-dummy-platform.diff └── build.sh ├── python-pygame └── build.sh ├── python-pywavelets └── build.sh ├── python-scikit-image ├── build.sh └── complex.h ├── python-scipy └── build.sh ├── python-seledroid └── build.sh ├── python-selenium-is-seledroid ├── build.sh ├── selenium.py └── setup.py ├── python-tiktoken └── build.sh ├── python-tls-client ├── 0001-fix-library-path.patch └── build.sh ├── python-tokenizers └── build.sh ├── python3.10 ├── 0001-fix-hardcoded-paths.patch ├── 0002-no-setuid-servers.patch ├── 0003-ctypes-util-use-llvm-tools.patch ├── 0004-impl-getprotobyname.patch ├── 0005-impl-multiprocessing.patch ├── 0006-disable-parallel-build.patch ├── 0007-disable-multiarch.patch ├── 0008-do-not-use-link.patch ├── 0009-build-with-fPIC.patch ├── 0010-use-android-log.patch ├── 0011-_cursesmodule-do-not-include-langinfo.patch ├── 0012-link-statistics-against-libm.patch ├── build.sh ├── python-is-python3.10.subpackage.sh ├── python3.10-cross.subpackage.sh └── python3.10-tkinter.subpackage.sh ├── python3.11 ├── 0001-fix-hardcoded-paths.patch ├── 0002-no-setuid-servers.patch ├── 0003-ctypes-util-use-llvm-tools.patch ├── 0004-impl-getprotobyname.patch ├── 0005-impl-multiprocessing.patch ├── 0006-do-not-use-xattr.patch ├── 0007-disable-multiarch.patch ├── 0008-do-not-use-link.patch ├── 0009-build-with-fPIC.patch ├── 0010-use-android-logging.patch ├── 0011-disable-parallel-build.patch ├── 0012-do-not-include-langinfo.patch ├── build.sh ├── python-is-python3.11.subpackage.sh ├── python3.11-cross.subpackage.sh └── python3.11-tkinter.subpackage.sh ├── python3.7 ├── 0001-fix-paths.patch ├── 0002-no-setuid-servers.patch ├── 0003-impl-getprotobyname.patch ├── 0004-use-android-log.patch ├── 0005-multiprocessing.patch ├── 0006-_cursesmodule-do-not-include-langinfo.patch ├── 0007-do-not-use-link.patch ├── 0008-build-with-fPIC.patch ├── build.sh ├── python-is-python3.7.subpackage.sh ├── python3.7-cross.subpackage.sh └── python3.7-tkinter.subpackage.sh ├── python3.8 ├── 0001-fix-hardcoded-paths.patch ├── 0002-no-setuid-servers.patch ├── 0003-ctypes-util-use-llvm-tools.patch ├── 0004-impl-getprotobyname.patch ├── 0005-impl-multiprocessing.patch ├── 0006-disable-parallel-build.patch ├── 0007-link-statistics-against-libm.patch ├── 0008-do-not-use-link.patch ├── 0009-build-with-fPIC.patch ├── 0010-use-android-logging.patch ├── 0011-_cursesmodule-do-not-include-langinfo.patch ├── build.sh ├── python-is-python3.8.subpackage.sh ├── python3.8-cross.subpackage.sh └── python3.8-tkinter.subpackage.sh ├── python3.9 ├── 0001-fix-hardcoded-paths.patch ├── 0002-no-setuid-servers.patch ├── 0003-ctypes-util-use-llvm-tools.patch ├── 0004-impl-getprotobyname.patch ├── 0005-impl-multiprocessing.patch ├── 0006-disable-parallel-build.patch ├── 0007-link-statistics-against-libm.patch ├── 0008-do-not-use-link.patch ├── 0009-build-with-fPIC.patch ├── 0010-use-android-log.patch ├── 0011-_cursesmodule-do-not-include-langinfo.patch ├── build.sh ├── python-is-python3.9.subpackage.sh ├── python3.9-cross.subpackage.sh └── python3.9-tkinter.subpackage.sh ├── qbe ├── Makefile.patch.beforehostbuild ├── build.sh ├── cross_setup.sh └── qbe-cross.subpackage.sh ├── qqwing └── build.sh ├── qrupdate-ng └── build.sh ├── ramfs ├── build.sh └── fix-mod.patch ├── rawtherapee ├── 0001-dirbrowser-root-subdirs.patch └── build.sh ├── realesrgan-ncnn-vulkan └── build.sh ├── redland └── build.sh ├── repoctl ├── build.sh └── path.patch ├── rife-ncnn-vulkan-nihui ├── build.sh └── rife-ncnn-vulkan-is-nihui.subpackage.sh ├── rife-ncnn-vulkan-tntwise ├── build.sh └── rife-ncnn-vulkan-is-tntwise.subpackage.sh ├── rife-ncnn-vulkan └── build.sh ├── ruby-2 ├── Makefile.in.patch ├── build.sh ├── ext-etc-etc.c.patch ├── ext-syslog-extconf.rb.patch ├── fix-paths.patch ├── lib-rubygems-install_update_options.rb.patch ├── mkmf.rb.patch ├── process.c.patch ├── pty.c.patch ├── ruby-is-ruby2.subpackage.sh ├── ruby-ri-2.subpackage.sh ├── tests │ ├── default_encoding_isutf8.sh │ └── extension_modules_installed.sh └── tool-rbinstall.rb.patch ├── rustc-nightly ├── 0001-set-TERMUX_PKG_API_LEVEL.diff ├── 0002-no-signal_handler.patch ├── 0003-link-with-libc++_shared.patch ├── 0004-set-TMPDIR.patch ├── 0005-define-fn-backtrace-getauxval.patch ├── build.sh ├── config.toml ├── getloadavg.c ├── rust-nightly-docs.subpackage.sh ├── rust-nightly-std-aarch64-linux-android.subpackage.sh ├── rust-nightly-std-armv7-linux-androideabi.subpackage.sh ├── rust-nightly-std-i686-linux-android.subpackage.sh ├── rust-nightly-std-wasm32-unknown-unknown.subpackage.sh ├── rust-nightly-std-wasm32-wasip1.subpackage.sh ├── rust-nightly-std-wasm32-wasip2.subpackage.sh ├── rust-nightly-std-x86-64-linux-android.subpackage.sh ├── rust-src-nightly.subpackage.sh ├── rustc-cranelift-codegen-aarch64-linux-android.subpackage.sh ├── rustc-cranelift-codegen-x86-64-linux-android.subpackage.sh ├── rustc-dev-nightly.subpackage.sh ├── rustc-src-nightly.subpackage.sh ├── syncfs.c └── use-rustc-nightly ├── sdlpal └── build.sh ├── seledroid-app ├── build.sh └── install-seledroid-app ├── skyseg-ncnn └── build.sh ├── smallerc ├── build.sh ├── makefile.patch └── smallerc-cross.subpackage.sh ├── smartdns ├── 0001-add-getdomainname-for-android.patch ├── 0002-fix-hardcoded-pathes.patch ├── 0003-do-not-call-setuid.patch ├── 0004-do-not-install-systemd-related-files.patch ├── 0005-avoid-pthread_cancel.patch └── build.sh ├── sortix-rw └── build.sh ├── sqawk └── build.sh ├── stash └── build.sh ├── stern └── build.sh ├── sttr └── build.sh ├── suitesparse ├── 0001-android-complex-math.patch ├── 0002-libm.patch ├── build.sh └── graphblas-host-toolchain.cmake ├── sundials └── build.sh ├── supertuxkart ├── 0001-fix-macros.patch ├── 0002-do-not-install-anglescript.patch ├── build.sh ├── supertuxkart-data-others.subpackage.sh ├── supertuxkart-data-textures.subpackage.sh ├── supertuxkart-data-tracks.subpackage.sh └── supertuxkart-data.subpackage.sh ├── surreal ├── build.sh └── librocksdb-sys.diff ├── svgbob └── build.sh ├── tabby ├── 0001-llama-cpp-crosscompiling.patch ├── 0002-llama-cpp-no-stdcxxfs.patch └── build.sh ├── tarix └── build.sh ├── termbot └── build.sh ├── termux-install └── build.sh ├── thunk-gen ├── build.sh └── thunk-gen-cross.subpackage.sh ├── trigger-rally ├── build.sh ├── fix-sdl2-detection.patch ├── libtinyxml2-7.0.0.patch ├── patch.patch └── verbose-build.patch ├── turbo-text-editor ├── 0001-include-malloc.patch └── build.sh ├── typioca └── build.sh ├── uutils-coreutils ├── 0001-selinux.patch └── build.sh ├── vhs ├── build.sh └── fix_chromium_path.patch ├── virglrenderer-android ├── 0001-meson-add-new-option-egl_without_gbm-to-enable-build.patch.beforehostbuild ├── 0002-android-build-and-use-egl-platform-on-Android-withou.patch.beforehostbuild ├── 0003-test-angle.patch.beforehostbuild ├── 0004-Fallback-to-ashmem.patch.beforehostbuild ├── 0005-Enable-debug-for-EGL.patch.beforehostbuild ├── 0006-Disable-feature-feat_dual_src_blend.patch.beforehostbuild ├── 0007-Ensure-EGL-and-GLES.patch.beforehostbuild ├── 0008-Change-vtest-socket-path.patch.beforehostbuild ├── 0009-Impl-DXTn-S3TC-texture-decompression-in-virglrenderer.patch.beforehostbuild ├── COPYING-gl4es ├── build.sh └── virgl_test_server_android.in ├── virglrenderer-mesa-zink ├── build.sh └── vtest-vtest_protocol.h.patch ├── vomit └── build.sh ├── wcslib ├── 0001-remove-AC_CHECK_FILE.patch ├── 0002-skip-makefile-configure.patch └── build.sh ├── wine-devel ├── 0001-fix-paths.patch ├── 0002-fix-defines.patch ├── 0003-fix-socket-ipx.patch ├── 0004-no-pthread_mutexattr_setprotocol.patch ├── 9997-clang-as-arm.patch.beforehostbuild ├── 9998-fix-winegcc-build-target.patch.beforehostbuild ├── 9999-fix-winebuild-as-type.patch.beforehostbuild └── build.sh ├── wine-stable ├── 0001-fix-paths.patch ├── 0002-fix-defines.patch ├── 0003-fix-socket-ipx.patch ├── 0004-no-pthread_mutexattr_setprotocol.patch ├── 9998-fix-winegcc-build-target.patch.beforehostbuild ├── 9999-fix-winebuild-as-type.patch.beforehostbuild └── build.sh ├── wine-staging ├── 0001-fix-paths.patch ├── 0002-fix-defines.patch ├── 0003-fix-socket-ipx.patch ├── 0004-no-pthread_mutexattr_setprotocol.patch ├── 0005-impl-posix-shm.patch ├── 9997-clang-as-arm.patch.beforehostbuild ├── 9998-fix-winegcc-build-target.patch.beforehostbuild ├── 9999-fix-winebuild-as-type.patch.beforehostbuild └── build.sh ├── winetricks └── build.sh ├── xfdashboard └── build.sh ├── xpenguins └── build.sh ├── xsv-rs └── build.sh ├── xsv-ucw └── build.sh ├── zaz ├── build.sh ├── clang-ftbfs.patch ├── desktop-file.patch ├── jumpy_keyboard.patch └── sdl_compat.patch └── zerotier-one ├── 0001-mask-setattr.patch ├── 0002-rust-target-os.patch ├── 0003-osutils-termux-prefix.patch ├── 0004-makefile-arm-workaround.patch ├── 0005-makefile-cargo-target-name.patch ├── 0006-dummy-pthread-affinity.patch ├── 0007-makefile-checkdep-destdir.patch ├── 0008-makefile-install-add-selftest.patch └── build.sh /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 2 | 3 | RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ 4 | && apt-get -y install git 5 | 6 | RUN git clone https://github.com/termux/termux-packages 7 | USER vscode 8 | RUN ./termux-packages/scripts/setup-ubuntu.sh 9 | RUN ./termux-packages/scripts/setup-android-sdk.sh 10 | 11 | USER root 12 | RUN rm -rf termux-packages 13 | -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { "dockerfile": "Dockerfile" }, 3 | "features": { 4 | "ghcr.io/devcontainers/features/sshd:1": { 5 | "version": "latest" 6 | } 7 | }, 8 | "postCreateCommand": "./setup-environment.sh" 9 | } 10 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Default. 2 | * text eol=lf 3 | # Treat patch files as binaries but let diff'ing them 4 | # as normal text. 5 | *.diff binary diff 6 | *.patch binary diff 7 | *.patch32 binary diff 8 | *.patch64 binary diff 9 | *.patch.* binary diff 10 | # Powershell scripts. 11 | *.ps1 text eol=crlf 12 | # Binaries. 13 | *.gpg binary 14 | *.gz binary 15 | *.jpg binary 16 | *.png binary 17 | *.tar binary 18 | *.tar.* binary 19 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | daysUntilStale: 45 2 | daysUntilClose: 14 3 | 4 | exemptLabels: 5 | - "not stale" 6 | - "package request" 7 | 8 | markComment: > 9 | This issue/PR has been automatically marked as stale because it has not had 10 | recent activity. It will be closed if no further activity occurs. Thank you 11 | for your contributions. 12 | 13 | staleLabel: wontfix 14 | 15 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | # License for package patches 2 | 3 | The scripts and patches to build each package is licensed under the same 4 | license as the actual package (so the patches and scripts to build bash are 5 | licensed under the same license as bash, while the patches and scripts to build 6 | python are licensed under the same license as python). 7 | 8 | # License for the build infrastructure 9 | 10 | For build infrastructure outside the `/` folder the license is 11 | [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0). 12 | -------------------------------------------------------------------------------- /big-pkgs.list: -------------------------------------------------------------------------------- 1 | .*-jumbo 2 | .*-jumbo-host-tools 3 | chromium-beta 4 | chromium-beta-host-tools 5 | code-server 6 | code-oss 7 | electron-headers-.* 8 | rustc-nightly 9 | python-polars 10 | -------------------------------------------------------------------------------- /common-files/building-system-patches/0005-always-clean-space-for-auto-update-check.patch: -------------------------------------------------------------------------------- 1 | --- a/scripts/updates/utils/termux_pkg_upgrade_version.sh 2 | +++ b/scripts/updates/utils/termux_pkg_upgrade_version.sh 3 | @@ -96,7 +96,7 @@ 4 | fi 5 | done 6 | 7 | - local big_package=false 8 | + local big_package=true 9 | while IFS= read -r p; do 10 | if [[ "${p}" == "${TERMUX_PKG_NAME}" ]]; then 11 | big_package=true 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/add-missing-typename-9/6167.patch: -------------------------------------------------------------------------------- 1 | --- a/mojo/public/cpp/bindings/array_traits.h 2 | +++ b/mojo/public/cpp/bindings/array_traits.h 3 | @@ -90,7 +90,7 @@ 4 | { c[i] } -> std::same_as; 5 | } 6 | struct ArrayTraits { 7 | - using Element = Container::value_type; 8 | + using Element = typename Container::value_type; 9 | 10 | // vector-like containers have no built-in null. 11 | static bool IsNull(const Container& c) { return false; } 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/angle-fix-atomic/5615.patch: -------------------------------------------------------------------------------- 1 | https://lists.openembedded.org/g/openembedded-core/message/179249 2 | --- a/third_party/angle/src/libANGLE/renderer/serial_utils.h 3 | +++ b/third_party/angle/src/libANGLE/renderer/serial_utils.h 4 | @@ -129,7 +129,9 @@ 5 | private: 6 | static constexpr uint64_t kInvalid = 0; 7 | std::atomic mValue = kInvalid; 8 | +#if defined(__LP64__) 9 | static_assert(decltype(mValue)::is_always_lock_free, "Must always be lock free"); 10 | +#endif 11 | }; 12 | 13 | // Used as default/initial serial 14 | -------------------------------------------------------------------------------- /common-files/chromium-patches/angle-fix-atomic/6367.patch: -------------------------------------------------------------------------------- 1 | https://lists.openembedded.org/g/openembedded-core/message/179249 2 | --- a/third_party/angle/src/libANGLE/renderer/serial_utils.h 3 | +++ b/third_party/angle/src/libANGLE/renderer/serial_utils.h 4 | @@ -129,7 +129,9 @@ 5 | private: 6 | static constexpr uint64_t kInvalid = 0; 7 | std::atomic mValue = kInvalid; 8 | +#if defined(__LP64__) 9 | static_assert(decltype(mValue)::is_always_lock_free, "Must always be lock free"); 10 | +#endif 11 | }; 12 | 13 | // Used as default/initial serial 14 | -------------------------------------------------------------------------------- /common-files/chromium-patches/angle-no-android-jni/4389.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/angle/src/common/platform.h 2 | +++ b/third_party/angle/src/common/platform.h 3 | @@ -17,7 +17,7 @@ 4 | #elif defined(__APPLE__) 5 | # define ANGLE_PLATFORM_APPLE 1 6 | # define ANGLE_PLATFORM_POSIX 1 7 | -#elif defined(ANDROID) 8 | +#elif (defined(ANDROID) && !defined(__TERMUX__)) 9 | # define ANGLE_PLATFORM_ANDROID 1 10 | # define ANGLE_PLATFORM_POSIX 1 11 | #elif defined(__ggp__) 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-dns-class-constructor/5845.patch: -------------------------------------------------------------------------------- 1 | --- a/net/dns/host_resolver_cache.cc 2 | +++ b/net/dns/host_resolver_cache.cc 3 | @@ -159,7 +159,7 @@ 4 | 5 | std::string domain_name = result->domain_name(); 6 | entries_.emplace( 7 | - Key(std::move(domain_name), network_anonymization_key), 8 | + Key{std::move(domain_name), network_anonymization_key}, 9 | Entry(std::move(result), source, secure, staleness_generation_)); 10 | 11 | if (entries_.size() > max_entries_) { 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-dns-class-constructor/6045.patch: -------------------------------------------------------------------------------- 1 | --- a/net/dns/host_resolver_cache.cc 2 | +++ b/net/dns/host_resolver_cache.cc 3 | @@ -368,7 +368,7 @@ 4 | 5 | std::string domain_name = result->domain_name(); 6 | entries_.emplace( 7 | - Key(std::move(domain_name), network_anonymization_key), 8 | + Key{std::move(domain_name), network_anonymization_key}, 9 | Entry(std::move(result), source, secure, staleness_generation)); 10 | 11 | if (entries_.size() > max_entries_) { 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-fix-type-for-inotify/5249.patch: -------------------------------------------------------------------------------- 1 | --- a/base/files/file_path_watcher_inotify.cc 2 | +++ b/base/files/file_path_watcher_inotify.cc 3 | @@ -114,7 +114,7 @@ 4 | class InotifyReader { 5 | public: 6 | // Watch descriptor used by AddWatch() and RemoveWatch(). 7 | -#if BUILDFLAG(IS_ANDROID) 8 | +#if BUILDFLAG(IS_ANDROID) || defined(__TERMUX__) 9 | using Watch = uint32_t; 10 | #else 11 | using Watch = int; 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-headless-disable-sandbox-by-default/5359.patch: -------------------------------------------------------------------------------- 1 | --- a/headless/public/headless_browser.h 2 | +++ b/headless/public/headless_browser.h 3 | @@ -144,7 +144,7 @@ 4 | 5 | // Run the browser without renderer sandbox. This option can be 6 | // a security risk and should be used with caution. 7 | - bool disable_sandbox = false; 8 | + bool disable_sandbox = true; 9 | 10 | // Whether or not to enable content::ResourceScheduler. Enabled by default. 11 | bool enable_resource_scheduler = true; 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-no-futimes/4389.patch: -------------------------------------------------------------------------------- 1 | --- a/base/files/file_posix.cc 2 | +++ b/base/files/file_posix.cc 3 | @@ -50,7 +50,7 @@ 4 | } 5 | 6 | int CallFutimes(PlatformFile file, const struct timeval times[2]) { 7 | -#ifdef __USE_XOPEN2K8 8 | +#if defined(__USE_XOPEN2K8) || (defined(__ANDROID__) && __ANDROID_API__ < 26) 9 | // futimens should be available, but futimes might not be 10 | // http://pubs.opengroup.org/onlinepubs/9699919799/ 11 | 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-no-landlock/6478.patch: -------------------------------------------------------------------------------- 1 | --- a/content/app/content_main_runner_impl.cc 2 | +++ b/content/app/content_main_runner_impl.cc 3 | @@ -1059,7 +1059,7 @@ 4 | } 5 | #endif // BUILDFLAG(USE_ZYGOTE) 6 | 7 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 8 | +#if (BUILDFLAG(IS_LINUX) && !defined(__TERMUX__)) || BUILDFLAG(IS_CHROMEOS) 9 | if (process_type.empty()) { 10 | // Check if Landlock is supported. 11 | sandbox::policy::SandboxLinux::ReportLandlockStatus(); 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-redefine-termios2/5359.patch: -------------------------------------------------------------------------------- 1 | --- a/services/device/serial/serial_io_handler_posix.cc 2 | +++ b/services/device/serial/serial_io_handler_posix.cc 3 | @@ -16,7 +16,7 @@ 4 | #include "build/build_config.h" 5 | #include "components/device_event_log/device_event_log.h" 6 | 7 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 8 | +#if (BUILDFLAG(IS_LINUX) && !defined(__TERMUX__)) || BUILDFLAG(IS_CHROMEOS) 9 | #include 10 | #include 11 | 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/chromium-statfs-type/5414.patch: -------------------------------------------------------------------------------- 1 | --- a/base/system/sys_info_posix.cc 2 | +++ b/base/system/sys_info_posix.cc 3 | @@ -102,8 +102,8 @@ 4 | 5 | switch (stats.f_type) { 6 | case TMPFS_MAGIC: 7 | - case static_cast(HUGETLBFS_MAGIC): 8 | - case static_cast(RAMFS_MAGIC): 9 | + case static_cast(HUGETLBFS_MAGIC): 10 | + case static_cast(RAMFS_MAGIC): 11 | return true; 12 | } 13 | return false; 14 | -------------------------------------------------------------------------------- /common-files/chromium-patches/compiler-disable-warnings/6478.patch: -------------------------------------------------------------------------------- 1 | --- a/build/config/compiler/BUILD.gn 2 | +++ b/build/config/compiler/BUILD.gn 3 | @@ -1919,6 +1912,11 @@ 4 | } 5 | } 6 | 7 | + cflags += [ 8 | + "-Wno-unknown-warning-option", 9 | + "-Wno-unknown-pragmas", 10 | + ] 11 | + 12 | # Rust warnings 13 | 14 | # Require `unsafe` blocks even in `unsafe` fns. This is intended to become 15 | -------------------------------------------------------------------------------- /common-files/chromium-patches/compiler-remove-unsupported-flags/5249.patch: -------------------------------------------------------------------------------- 1 | --- a/build/config/compiler/BUILD.gn 2 | +++ b/build/config/compiler/BUILD.gn 3 | @@ -1531,13 +1531,6 @@ 4 | "-Wno-bitfield-constant-conversion", 5 | ] 6 | } 7 | - 8 | - if (!is_nacl) { 9 | - cflags += [ 10 | - # TODO(crbug.com/1343975) Evaluate and possibly enable. 11 | - "-Wno-deprecated-builtins", 12 | - ] 13 | - } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /common-files/chromium-patches/cpuinfo-android-arm/5249.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/cpuinfo/src/src/arm/linux/init.c 2 | +++ b/third_party/cpuinfo/src/src/arm/linux/init.c 3 | @@ -14,6 +14,9 @@ 4 | #include 5 | #include 6 | 7 | +#ifdef __TERMUX__ 8 | +#include 9 | +#endif 10 | 11 | struct cpuinfo_arm_isa cpuinfo_isa = { 0 }; 12 | 13 | -------------------------------------------------------------------------------- /common-files/chromium-patches/cpuinfo-android-arm/6261.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/cpuinfo/src/src/arm/linux/init.c 2 | +++ b/third_party/cpuinfo/src/src/arm/linux/init.c 3 | @@ -14,6 +14,10 @@ 4 | #include 5 | #include 6 | 7 | +#ifdef __TERMUX__ 8 | +#include 9 | +#endif 10 | + 11 | struct cpuinfo_arm_isa cpuinfo_isa = {0}; 12 | 13 | static struct cpuinfo_package package = {{0}}; 14 | -------------------------------------------------------------------------------- /common-files/chromium-patches/dawn-fix-dynamic-loaded-libraries/4961.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/dawn/src/dawn/native/XlibXcbFunctions.cpp 2 | +++ b/third_party/dawn/src/dawn/native/XlibXcbFunctions.cpp 3 | @@ -17,7 +17,11 @@ 4 | namespace dawn::native { 5 | 6 | XlibXcbFunctions::XlibXcbFunctions() { 7 | +#ifndef __TERMUX__ 8 | if (!mLib.Open("libX11-xcb.so.1") || 9 | +#else 10 | + if (!mLib.Open("libX11-xcb.so") || 11 | +#endif 12 | !mLib.GetProc(&xGetXCBConnection, "XGetXCBConnection")) { 13 | mLib.Close(); 14 | } 15 | -------------------------------------------------------------------------------- /common-files/chromium-patches/debug-build-stack_trace/6422.patch: -------------------------------------------------------------------------------- 1 | --- a/base/debug/stack_trace_posix.cc 2 | +++ b/base/debug/stack_trace_posix.cc 3 | @@ -1062,14 +1062,14 @@ 4 | #endif 5 | } 6 | 7 | -#if defined(HAVE_BACKTRACE) 8 | void StackTrace::OutputToStreamWithPrefixImpl( 9 | std::ostream* os, 10 | cstring_view prefix_string) const { 11 | +#if defined(HAVE_BACKTRACE) 12 | StreamBacktraceOutputHandler handler(os); 13 | ProcessBacktrace(trace_, count_, prefix_string, &handler); 14 | -} 15 | #endif 16 | +} 17 | 18 | namespace internal { 19 | 20 | -------------------------------------------------------------------------------- /common-files/chromium-patches/ffmpeg-disable-asm/4389.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/ffmpeg/ffmpeg_options.gni 2 | +++ b/third_party/ffmpeg/ffmpeg_options.gni 3 | @@ -70,4 +70,6 @@ 4 | os_config = "linux" 5 | } else if (is_win && !is_clang) { 6 | os_config = "win-msvc" 7 | +} else if (is_linux && (current_cpu == "x86")) { 8 | + os_config = "linux-noasm" 9 | } 10 | -------------------------------------------------------------------------------- /common-files/chromium-patches/fragment_data_iterator-use-std_nullptr_t/6099.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/blink/renderer/core/paint/fragment_data_iterator.h 2 | +++ b/third_party/blink/renderer/core/paint/fragment_data_iterator.h 3 | @@ -21,7 +21,7 @@ 4 | 5 | public: 6 | explicit FragmentDataIteratorBase(Head& head) : fragment_head_(head) {} 7 | - explicit FragmentDataIteratorBase(nullptr_t) {} 8 | + explicit FragmentDataIteratorBase(std::nullptr_t) {} 9 | 10 | Data* GetFragmentData() const { 11 | return !IsDone() ? &fragment_head_.at(idx_) : nullptr; 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/ozone-wayland-memfd/5845.patch: -------------------------------------------------------------------------------- 1 | --- a/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc 2 | +++ b/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc 3 | @@ -22,6 +22,11 @@ 4 | #include "ui/ozone/platform/wayland/host/wayland_seat.h" 5 | #include "ui/ozone/platform/wayland/host/wayland_window.h" 6 | 7 | +#if defined __ANDROID__ && __ANDROID_API__ < 30 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | namespace ui { 13 | namespace { 14 | 15 | -------------------------------------------------------------------------------- /common-files/chromium-patches/remove-xorg-from-build-deps-2/6255.patch: -------------------------------------------------------------------------------- 1 | This reverts https://github.com/chromium/chromium/commit/97c864b32a7f4d64f541e2b7bf9006d2f582082f 2 | 3 | --- a/build/install-build-deps.py 4 | +++ b/build/install-build-deps.py 5 | @@ -374,8 +374,6 @@ def lib_list(): 6 | "libxrender1", 7 | "libxtst6", 8 | "x11-utils", 9 | - "xserver-xorg-core", # TODO(crbug.com/1417069): Experimental. 10 | - "xserver-xorg-video-dummy", # TODO(crbug.com/1417069): Experimental. 11 | "xvfb", 12 | "zlib1g", 13 | ] 14 | -------------------------------------------------------------------------------- /common-files/chromium-patches/remove-xorg-from-build-deps-2/6478.patch: -------------------------------------------------------------------------------- 1 | This reverts https://github.com/chromium/chromium/commit/97c864b32a7f4d64f541e2b7bf9006d2f582082f 2 | 3 | --- a/build/install-build-deps.py 4 | +++ b/build/install-build-deps.py 5 | @@ -388,8 +388,6 @@ 6 | "libxtst6", 7 | "x11-utils", 8 | "x11-xserver-utils", 9 | - "xserver-xorg-core", 10 | - "xserver-xorg-video-dummy", 11 | "xvfb", 12 | "zlib1g", 13 | ] 14 | -------------------------------------------------------------------------------- /common-files/chromium-patches/remove-xorg-from-build-deps/6167.patch: -------------------------------------------------------------------------------- 1 | https://github.com/chromium/chromium/commit/062769f739bb91aedbeeb396e5db9d92dbcc7c0e 2 | 3 | --- a/build/install-build-deps.py 4 | +++ b/build/install-build-deps.py 5 | @@ -374,7 +374,6 @@ def lib_list(): 6 | "libxrender1", 7 | "libxtst6", 8 | "x11-utils", 9 | - "xorg", # TODO(crbug.com/1417069): Experimental. 10 | "xvfb", 11 | "zlib1g", 12 | ] 13 | -------------------------------------------------------------------------------- /common-files/chromium-patches/swiftshader-fix-dynamic-loaded-libraries/4389.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/swiftshader/src/WSI/XcbSurfaceKHR.cpp 2 | +++ b/third_party/swiftshader/src/WSI/XcbSurfaceKHR.cpp 3 | @@ -72,8 +72,11 @@ 4 | { 5 | return std::make_unique(RTLD_DEFAULT); 6 | } 7 | - 8 | +#ifndef __TERMUX__ 9 | if(auto lib = loadLibrary("libxcb.so.1")) 10 | +#else 11 | + if(auto lib = loadLibrary("libxcb.so")) 12 | +#endif 13 | { 14 | return std::make_unique(lib); 15 | } 16 | -------------------------------------------------------------------------------- /common-files/chromium-patches/swiftshader-no-spawn/5359.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h 2 | +++ b/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h 3 | @@ -166,7 +166,7 @@ 4 | #define HAVE_POSIX_FALLOCATE 1 5 | 6 | /* Define to 1 if you have the `posix_spawn' function. */ 7 | -#define HAVE_POSIX_SPAWN 1 8 | +/* #define HAVE_POSIX_SPAWN 1 */ 9 | 10 | /* Define to 1 if you have the `pread' function. */ 11 | #define HAVE_PREAD 1 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/unity-fix-dynamic-loaded-libraries/4389.patch: -------------------------------------------------------------------------------- 1 | --- a/chrome/browser/download/download_status_updater_linux.cc 2 | +++ b/chrome/browser/download/download_status_updater_linux.cc 3 | @@ -77,6 +77,8 @@ 4 | if (!unity_lib) 5 | unity_lib = dlopen("libunity.so.9", RTLD_LAZY); 6 | if (!unity_lib) 7 | + unity_lib = dlopen("libunity.so", RTLD_LAZY); 8 | + if (!unity_lib) 9 | return; 10 | 11 | unity_inspector_get_default_func inspector_get_default = 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/v8-fix-compress-pointer-offset/5546.patch: -------------------------------------------------------------------------------- 1 | --- a/v8/include/v8-internal.h 2 | +++ b/v8/include/v8-internal.h 3 | @@ -242,7 +242,7 @@ 4 | 5 | #ifdef V8_COMPRESS_POINTERS 6 | 7 | -#ifdef V8_TARGET_OS_ANDROID 8 | +#if defined(V8_TARGET_OS_ANDROID) && !defined(__TERMUX__) 9 | // The size of the virtual memory reservation for an external pointer table. 10 | // This determines the maximum number of entries in a table. Using a maximum 11 | // size allows omitting bounds checks on table accesses if the indices are 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/v8-fix-trap-handler/5249.patch: -------------------------------------------------------------------------------- 1 | --- a/v8/src/trap-handler/trap-handler.h 2 | +++ b/v8/src/trap-handler/trap-handler.h 3 | @@ -19,7 +19,7 @@ 4 | 5 | // X64 on Linux, Windows, MacOS, FreeBSD. 6 | #if V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 && \ 7 | - ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_DARWIN || \ 8 | + (V8_OS_LINUX || V8_OS_WIN || V8_OS_DARWIN || \ 9 | V8_OS_FREEBSD) 10 | #define V8_TRAP_HANDLER_SUPPORTED true 11 | // Arm64 (non-simulator) on Mac. 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/v8-reimpl-page-allocator/5414.patch: -------------------------------------------------------------------------------- 1 | --- a/v8/include/v8-platform.h 2 | +++ b/v8/include/v8-platform.h 3 | @@ -925,7 +925,9 @@ 4 | * Allows the embedder to manage memory page allocations. 5 | * Returning nullptr will cause V8 to use the default page allocator. 6 | */ 7 | - virtual PageAllocator* GetPageAllocator() = 0; 8 | + virtual PageAllocator* GetPageAllocator() { 9 | + return nullptr; 10 | + } 11 | 12 | /** 13 | * Allows the embedder to specify a custom allocator used for zones. 14 | -------------------------------------------------------------------------------- /common-files/chromium-patches/wayland-memfd_create/5359.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/wayland/src/cursor/os-compatibility.c 2 | +++ b/third_party/wayland/src/cursor/os-compatibility.c 3 | @@ -42,6 +42,11 @@ 4 | 5 | #include "os-compatibility.h" 6 | 7 | +#if defined(__ANDROID__) && __ANDROID_API__ < 26 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | #ifndef HAVE_MKOSTEMP 13 | static int 14 | set_cloexec_or_close(int fd) 15 | -------------------------------------------------------------------------------- /common-files/chromium-patches/weston-memfd_create/5359.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/weston/src/shared/os-compatibility.c 2 | +++ b/third_party/weston/src/shared/os-compatibility.c 3 | @@ -38,6 +38,11 @@ 4 | 5 | #include "os-compatibility.h" 6 | 7 | +#if defined(__ANDROID__) && __ANDROID_API__ < 26 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | #define READONLY_SEALS (F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE) 13 | 14 | int 15 | -------------------------------------------------------------------------------- /common-files/chromium-patches/y-live_anchor_time-constructor/6099.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/blink/renderer/modules/media_controls/elements/media_control_timeline_element.h 2 | +++ b/third_party/blink/renderer/modules/media_controls/elements/media_control_timeline_element.h 3 | @@ -48,7 +48,10 @@ 4 | 5 | private: 6 | // Struct used to track the current live time. 7 | - struct LiveAnchorTime { 8 | + class LiveAnchorTime { 9 | + public: 10 | + LiveAnchorTime() {} 11 | + 12 | base::TimeTicks clock_time_; 13 | double media_time_ = 0; 14 | }; 15 | -------------------------------------------------------------------------------- /common-files/chromium-patches/y-mime_util_xdg-file_info-consturctor/6167.patch: -------------------------------------------------------------------------------- 1 | --- a/base/nix/mime_util_xdg.cc 2 | +++ b/base/nix/mime_util_xdg.cc 3 | @@ -44,7 +44,11 @@ 4 | constexpr uint8_t kDefaultGlobWeight = 50; 5 | 6 | // Path and last modified of mime.cache file. 7 | -struct FileInfo { 8 | +class FileInfo { 9 | + public: 10 | + FileInfo(FilePath path_, Time last_modified_) 11 | + : path(path_), last_modified(last_modified_) {} 12 | + 13 | FilePath path; 14 | Time last_modified; 15 | }; 16 | -------------------------------------------------------------------------------- /common-files/chromium-patches/y-shared_image_backing-constructor/6099.patch: -------------------------------------------------------------------------------- 1 | --- a/gpu/command_buffer/service/shared_image/shared_image_backing.h 2 | +++ b/gpu/command_buffer/service/shared_image/shared_image_backing.h 3 | @@ -338,7 +338,7 @@ 4 | private: 5 | class ScopedWriteUMA { 6 | public: 7 | - ScopedWriteUMA() = default; 8 | + ScopedWriteUMA() {} 9 | 10 | ScopedWriteUMA(const ScopedWriteUMA&) = delete; 11 | ScopedWriteUMA& operator=(const ScopedWriteUMA&) = delete; 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/y-view_state-consturctor/6099.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/blink/renderer/core/loader/history_item.h 2 | +++ b/third_party/blink/renderer/core/loader/history_item.h 3 | @@ -77,7 +77,7 @@ 4 | DISALLOW_NEW(); 5 | 6 | public: 7 | - ViewState() = default; 8 | + ViewState() {} 9 | ViewState(const ViewState&) = default; 10 | ViewState& operator=(const ViewState&) = default; 11 | 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-blink-include-bitset-2/6261.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/blink/renderer/platform/peerconnection/resolution_monitor.cc 2 | +++ b/third_party/blink/renderer/platform/peerconnection/resolution_monitor.cc 3 | @@ -2,6 +2,8 @@ 4 | // Use of this source code is governed by a BSD-style license that can be 5 | // found in the LICENSE file. 6 | 7 | +#include 8 | + 9 | #include "third_party/blink/renderer/platform/peerconnection/resolution_monitor.h" 10 | 11 | #include "base/containers/span.h" 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-blink-include-cstring/4961.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/blink/common/fenced_frame/fenced_frame_utils.cc 2 | +++ b/third_party/blink/common/fenced_frame/fenced_frame_utils.cc 3 | @@ -7,6 +7,8 @@ 4 | #include "base/guid.h" 5 | #include "base/strings/string_util.h" 6 | 7 | +#include 8 | + 9 | namespace blink { 10 | 11 | bool IsValidFencedFrameURL(GURL url) { 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-blink-include-mutex/6167.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/blink/renderer/platform/fonts/simple_font_data.h 2 | +++ b/third_party/blink/renderer/platform/fonts/simple_font_data.h 3 | @@ -25,6 +25,7 @@ 4 | #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_SIMPLE_FONT_DATA_H_ 5 | 6 | #include 7 | +#include 8 | #include 9 | 10 | #include "build/build_config.h" 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-blink-include-variant/5845.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h 2 | +++ b/third_party/blink/renderer/core/paint/object_paint_properties_sparse.h 3 | @@ -8,6 +8,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | 9 | #include "base/dcheck_is_on.h" 10 | #include "base/memory/ptr_util.h" 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-breakpad-include-cstring/5249.patch: -------------------------------------------------------------------------------- 1 | To solve error like 2 | ../../third_party/breakpad/breakpad/src/common/dwarf/elf_reader.cc:200:10: error: no member named 'strcmp' in namespace 'std'; did you mean simply 'strcmp'? 3 | --- a/third_party/breakpad/breakpad/src/common/dwarf/elf_reader.cc 4 | +++ b/third_party/breakpad/breakpad/src/common/dwarf/elf_reader.cc 5 | @@ -39,6 +39,7 @@ 6 | #include 7 | 8 | #include 9 | +#include 10 | #include 11 | #include 12 | #include 13 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-chromedriver-include-vector/5790.patch: -------------------------------------------------------------------------------- 1 | --- a/chrome/test/chromedriver/chrome/client_hints.h 2 | +++ b/chrome/test/chromedriver/chrome/client_hints.h 3 | @@ -7,6 +7,7 @@ 4 | 5 | #include 6 | #include 7 | +#include 8 | 9 | struct BrandVersion { 10 | // Browser brand. 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-chromium-include-cmath/5249.patch: -------------------------------------------------------------------------------- 1 | To solve error like 2 | ../../extensions/renderer/bindings/argument_spec.cc:411:11: error: no member named 'isnan' in namespace 'std'; did you mean simply 'isnan'? 3 | 4 | --- a/extensions/renderer/bindings/argument_spec.cc 5 | +++ b/extensions/renderer/bindings/argument_spec.cc 6 | @@ -16,6 +16,8 @@ 7 | #include "gin/data_object_builder.h" 8 | #include "gin/dictionary.h" 9 | 10 | +#include 11 | + 12 | namespace extensions { 13 | 14 | namespace { 15 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-chromium-include-compare/5735.patch: -------------------------------------------------------------------------------- 1 | --- a/components/password_manager/core/browser/password_form.h 2 | +++ b/components/password_manager/core/browser/password_form.h 3 | @@ -5,6 +5,7 @@ 4 | #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_H_ 5 | #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_H_ 6 | 7 | +#include 8 | #include 9 | #include 10 | #include 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-chromium-include-ctime/4389.patch: -------------------------------------------------------------------------------- 1 | --- a/ui/accessibility/ax_tree_serializer.h 2 | +++ b/ui/accessibility/ax_tree_serializer.h 3 | @@ -23,6 +23,8 @@ 4 | #include "ui/accessibility/ax_tree_source.h" 5 | #include "ui/accessibility/ax_tree_update.h" 6 | 7 | +#include 8 | + 9 | namespace ui { 10 | 11 | struct ClientTreeNode; 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-chromium-net-include-string_view/5993.patch: -------------------------------------------------------------------------------- 1 | --- a/net/cert/pki/general_names.h 2 | +++ b/net/cert/pki/general_names.h 3 | @@ -6,6 +6,7 @@ 4 | #define NET_CERT_PKI_GENERAL_NAMES_H_ 5 | 6 | #include 7 | +#include 8 | #include 9 | 10 | #include "net/base/net_export.h" 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-chromium-net-include-vector/5790.patch: -------------------------------------------------------------------------------- 1 | --- a/net/cert/pki/verify_name_match.h 2 | +++ b/net/cert/pki/verify_name_match.h 3 | @@ -6,6 +6,7 @@ 4 | #define NET_CERT_PKI_VERIFY_NAME_MATCH_H_ 5 | 6 | #include 7 | +#include 8 | 9 | #include "net/base/net_export.h" 10 | 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-crypto-hkdf-include-vector/6167.patch: -------------------------------------------------------------------------------- 1 | --- a/crypto/hkdf.h 2 | +++ b/crypto/hkdf.h 3 | @@ -9,6 +9,7 @@ 4 | 5 | #include 6 | #include 7 | +#include 8 | 9 | #include "base/containers/span.h" 10 | #include "crypto/crypto_export.h" 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-display_color_management-include-string/6167.patch: -------------------------------------------------------------------------------- 1 | --- a/ui/display/types/display_color_management.h 2 | +++ b/ui/display/types/display_color_management.h 3 | @@ -5,6 +5,7 @@ 4 | #ifndef UI_DISPLAY_TYPES_DISPLAY_COLOR_MANAGEMENT_H_ 5 | #define UI_DISPLAY_TYPES_DISPLAY_COLOR_MANAGEMENT_H_ 6 | 7 | +#include 8 | #include 9 | 10 | #include "third_party/skia/modules/skcms/skcms.h" 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-display_color_management-include-string/6261.patch: -------------------------------------------------------------------------------- 1 | --- a/ui/display/types/display_color_management.h 2 | +++ b/ui/display/types/display_color_management.h 3 | @@ -5,6 +5,7 @@ 4 | #define UI_DISPLAY_TYPES_DISPLAY_COLOR_MANAGEMENT_H_ 5 | 6 | #include 7 | +#include 8 | #include 9 | 10 | #include "third_party/skia/modules/skcms/skcms.h" 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-gfx-include-bitset/6167.patch: -------------------------------------------------------------------------------- 1 | --- a/ui/gfx/x/visual_manager.cc 2 | +++ b/ui/gfx/x/visual_manager.cc 3 | @@ -2,6 +2,8 @@ 4 | // Use of this source code is governed by a BSD-style license that can be 5 | // found in the LICENSE file. 6 | 7 | +#include 8 | + 9 | #include "ui/gfx/x/visual_manager.h" 10 | 11 | #include "base/strings/string_number_conversions.h" 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-ipcz-include-memory/5938.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/ipcz/src/ipcz/router_link.h 2 | +++ b/third_party/ipcz/src/ipcz/router_link.h 3 | @@ -7,6 +7,7 @@ 4 | 5 | #include 6 | #include 7 | +#include 8 | #include 9 | #include 10 | 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-material_color_utilities-include-cmath/5938.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/material_color_utilities/src/cpp/utils/utils.h 2 | +++ b/third_party/material_color_utilities/src/cpp/utils/utils.h 3 | @@ -18,6 +18,7 @@ 4 | #define CPP_UTILS_UTILS_H_ 5 | 6 | #include 7 | +#include 8 | #include 9 | 10 | namespace material_color_utilities { 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-preview_cancel_reason-include-string/6312.patch: -------------------------------------------------------------------------------- 1 | --- a/content/public/browser/preview_cancel_reason.h 2 | +++ b/content/public/browser/preview_cancel_reason.h 3 | @@ -5,6 +5,8 @@ 4 | #ifndef CONTENT_PUBLIC_BROWSER_PREVIEW_CANCEL_REASON_H_ 5 | #define CONTENT_PUBLIC_BROWSER_PREVIEW_CANCEL_REASON_H_ 6 | 7 | +#include 8 | + 9 | #include "content/common/content_export.h" 10 | #include "third_party/abseil-cpp/absl/types/variant.h" 11 | 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-sensor_reading-inttypes/5993.patch: -------------------------------------------------------------------------------- 1 | --- a/services/device/public/cpp/generic_sensor/sensor_reading.h 2 | +++ b/services/device/public/cpp/generic_sensor/sensor_reading.h 3 | @@ -5,6 +5,9 @@ 4 | #ifndef SERVICES_DEVICE_PUBLIC_CPP_GENERIC_SENSOR_SENSOR_READING_H_ 5 | #define SERVICES_DEVICE_PUBLIC_CPP_GENERIC_SENSOR_SENSOR_READING_H_ 6 | 7 | +#include 8 | +#include 9 | + 10 | #include 11 | 12 | namespace device { 13 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-skia-include-cmath/5790.patch: -------------------------------------------------------------------------------- 1 | --- a/skia/ext/skcolorspace_trfn.cc 2 | +++ b/skia/ext/skcolorspace_trfn.cc 3 | @@ -4,6 +4,8 @@ 4 | 5 | #include "skia/ext/skcolorspace_trfn.h" 6 | 7 | +#include 8 | + 9 | namespace skia { 10 | 11 | namespace { 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-translate_ui_languages_manager-fix-include/5672.patch: -------------------------------------------------------------------------------- 1 | --- a/components/translate/core/browser/translate_ui_languages_manager.h 2 | +++ b/components/translate/core/browser/translate_ui_languages_manager.h 3 | @@ -8,6 +8,8 @@ 4 | #include 5 | 6 | #include 7 | +#include 8 | +#include 9 | 10 | #include "base/memory/weak_ptr.h" 11 | #include "third_party/icu/source/i18n/unicode/coll.h" 12 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-webauthn-variant/5672.patch: -------------------------------------------------------------------------------- 1 | --- a/chrome/browser/webauthn/authenticator_request_dialog_model.h 2 | +++ b/chrome/browser/webauthn/authenticator_request_dialog_model.h 3 | @@ -7,6 +7,7 @@ 4 | 5 | #include 6 | #include 7 | +#include 8 | #include 9 | 10 | #include "base/containers/span.h" 11 | -------------------------------------------------------------------------------- /common-files/chromium-patches/z-iwyu-webrtc_overrides-include-vector/5414.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/webrtc_overrides/metronome_source.h 2 | +++ b/third_party/webrtc_overrides/metronome_source.h 3 | @@ -7,6 +7,7 @@ 4 | 5 | #include 6 | #include 7 | +#include 8 | 9 | #include "base/callback.h" 10 | #include "base/memory/ref_counted.h" 11 | -------------------------------------------------------------------------------- /common-files/clean-termux-docker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e -u 3 | 4 | : ${CONTAINER_NAME:=termux-$ARCH} 5 | docker kill $CONTAINER_NAME 6 | docker rm $CONTAINER_NAME 7 | -------------------------------------------------------------------------------- /common-files/ndk-patches/r17c/dirent.h.patch: -------------------------------------------------------------------------------- 1 | diff -uNr sysroot/usr/include/dirent.h sysroot.mod/usr/include/dirent.h 2 | --- sysroot/usr/include/dirent.h 3 | +++ sysroot.mod/usr/include/dirent.h 4 | @@ -47,6 +47,9 @@ 5 | #define DT_WHT 14 6 | #endif 7 | 8 | +#define IFTODT(x) ((x)>>12 & 0xF) 9 | +#define DTTOIF(x) ((x)<<12) 10 | + 11 | #if defined(__LP64__) 12 | #define __DIRENT64_INO_T ino_t 13 | #else 14 | -------------------------------------------------------------------------------- /common-files/ndk-patches/r17c/linux-fcntl.h.patch: -------------------------------------------------------------------------------- 1 | diff -uNr sysroot/usr/include/linux/fcntl.h sysroot.mod/usr/include/linux/fcntl.h 2 | --- sysroot/usr/include/linux/fcntl.h 3 | +++ sysroot.mod/usr/include/linux/fcntl.h 4 | @@ -51,6 +51,7 @@ 5 | #define DN_MULTISHOT 0x80000000 6 | #define AT_FDCWD - 100 7 | #define AT_SYMLINK_NOFOLLOW 0x100 8 | +#define AT_EACCESS 0 9 | #define AT_REMOVEDIR 0x200 10 | #define AT_SYMLINK_FOLLOW 0x400 11 | #define AT_NO_AUTOMOUNT 0x800 12 | -------------------------------------------------------------------------------- /common-files/ndk-patches/r17c/stdlib.h.patch: -------------------------------------------------------------------------------- 1 | diff -uNr sysroot/usr/include/stdlib.h sysroot.mod/usr/include/stdlib.h 2 | --- sysroot/usr/include/stdlib.h 3 | +++ sysroot.mod/usr/include/stdlib.h 4 | @@ -211,8 +211,7 @@ 5 | size_t wcstombs(char* __dst, const wchar_t* __src, size_t __n); 6 | 7 | #if __ANDROID_API__ >= __ANDROID_API_L__ 8 | -size_t __ctype_get_mb_cur_max(void) __INTRODUCED_IN(21); 9 | -#define MB_CUR_MAX __ctype_get_mb_cur_max() 10 | +#define MB_CUR_MAX 4 11 | #else 12 | /* 13 | * Pre-L we didn't have any locale support and so we were always the POSIX 14 | -------------------------------------------------------------------------------- /common-files/ndk-patches/r17c/sys-cdefs.h.patch: -------------------------------------------------------------------------------- 1 | diff -uNr sysroot/usr/include/sys/cdefs.h sysroot.mod/usr/include/sys/cdefs.h 2 | --- sysroot/usr/include/sys/cdefs.h 3 | +++ sysroot.mod/usr/include/sys/cdefs.h 4 | @@ -399,4 +399,7 @@ 5 | #define __unsafe_check_mul_overflow(x, y) ((__SIZE_TYPE__)-1 / (x) < (y)) 6 | #endif 7 | 8 | +#define __TERMUX__ 1 9 | +#define __TERMUX_PREFIX__ "@TERMUX_PREFIX@" 10 | + 11 | #endif /* !_SYS_CDEFS_H_ */ 12 | -------------------------------------------------------------------------------- /common-files/override-packages.txt: -------------------------------------------------------------------------------- 1 | packages/python-scipy 2 | packages/suitesparse 3 | packages/sundials 4 | packages/arpack-ng 5 | packages/qrupdate-ng 6 | packages/octave 7 | packages/virglrenderer-android 8 | x11-packages/octave-x 9 | x11-packages/wine-stable 10 | -------------------------------------------------------------------------------- /sample/build.sh: -------------------------------------------------------------------------------- 1 | # Skeleton build.sh script for new package. 2 | # For reference about available fields, check the Termux Developer's Wiki page: 3 | # https://github.com/termux/termux-packages/wiki/Creating-new-package 4 | 5 | TERMUX_PKG_HOMEPAGE= 6 | TERMUX_PKG_DESCRIPTION="" 7 | TERMUX_PKG_LICENSE="" 8 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 9 | TERMUX_PKG_VERSION= 10 | TERMUX_PKG_SRCURL= 11 | TERMUX_PKG_SHA256= 12 | #TERMUX_PKG_DEPENDS="" 13 | #TERMUX_PKG_BUILD_IN_SRC=true 14 | -------------------------------------------------------------------------------- /sample/sample-sub.subpackage.sh: -------------------------------------------------------------------------------- 1 | # Skeleton *.subpackage.sh script for new package. 2 | # Delete this file if package shouldn't be splitted, otherwise rename and fill 3 | # necessary fields. 4 | # More information available on the Termux Developer's Wiki page: 5 | # https://github.com/termux/termux-packages/wiki/Creating-new-package#writing-a-subpackage-script 6 | 7 | TERMUX_SUBPKG_DESCRIPTION="" 8 | TERMUX_SUBPKG_INCLUDE="" 9 | -------------------------------------------------------------------------------- /tur-continuous/.placeholder: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tur-continuous/hello-tur-continuous/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | puts("Hello TUR Continuous."); 4 | } 5 | -------------------------------------------------------------------------------- /tur-disabled/bfm/build.sh: -------------------------------------------------------------------------------- 1 | # Origin repo: tur 2 | TERMUX_PKG_HOMEPAGE=https://github.com/codedsprit/bfm 3 | TERMUX_PKG_DESCRIPTION="🌼 ez file manager slokes in bash" 4 | TERMUX_PKG_LICENSE="MIT" 5 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 6 | TERMUX_PKG_VERSION="2023.08.02" 7 | TERMUX_PKG_SRCURL=git+https://github.com/codedsprit/bfm 8 | TERMUX_PKG_GIT_BRANCH="main" 9 | TERMUX_PKG_SUGGESTS="vim" 10 | TERMUX_PKG_BUILD_IN_SRC=true 11 | 12 | termux_step_make() { 13 | : 14 | } 15 | 16 | termux_step_make_install() { 17 | make install PREFIX=$TERMUX_PREFIX 18 | } 19 | -------------------------------------------------------------------------------- /tur-disabled/tmux-sixel/compat-setproctitle.c.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../tmux-2.5/compat/setproctitle.c ./compat/setproctitle.c 2 | --- ../tmux-2.5/compat/setproctitle.c 2017-04-28 15:43:11.000000000 +0200 3 | +++ ./compat/setproctitle.c 2017-07-02 11:16:40.393826133 +0200 4 | @@ -18,6 +18,9 @@ 5 | 6 | #include 7 | #include 8 | +#ifdef __ANDROID__ 9 | +# include /* For getprogname() */ 10 | +#endif 11 | 12 | #include "compat.h" 13 | 14 | -------------------------------------------------------------------------------- /tur-disabled/tmux-sixel/compat.h.patch: -------------------------------------------------------------------------------- 1 | --- a/compat.h 2 | +++ b/compat.h 3 | @@ -18,6 +18,7 @@ 4 | #define COMPAT_H 5 | 6 | #include 7 | +#include 8 | #include 9 | #include 10 | 11 | -------------------------------------------------------------------------------- /tur-disabled/tmux-sixel/tmux.conf: -------------------------------------------------------------------------------- 1 | set -g mouse on 2 | -------------------------------------------------------------------------------- /tur-disabled/tmux-sixel/tmux.h.patch: -------------------------------------------------------------------------------- 1 | --- a/tmux.h 2 | +++ b/tmux.h 3 | @@ -74,7 +74,7 @@ 4 | #define TMUX_CONF "/etc/tmux.conf:~/.tmux.conf" 5 | #endif 6 | #ifndef TMUX_SOCK 7 | -#define TMUX_SOCK "$TMUX_TMPDIR:" _PATH_TMP 8 | +#define TMUX_SOCK "$TMUX_TMPDIR:@TERMUX_PREFIX@/var/run" 9 | #endif 10 | #ifndef TMUX_TERM 11 | #define TMUX_TERM "screen" 12 | -------------------------------------------------------------------------------- /tur-hacking/burpsuite-pro/burpsuite-pro.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=Burp Suite Professional Edition 4 | Exec=burpsuite-pro 5 | Icon=burpsuite-pro 6 | Comment=Burp Suite is an integrated platform for attacking web applications (professional edition) 7 | Categories=Development;Security 8 | Terminal=false 9 | MimeType=application/x-extension-iml; -------------------------------------------------------------------------------- /tur-hacking/burpsuite/burpsuite.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=Burp Suite Community Edition 4 | Exec=burpsuite 5 | Icon=burpsuite 6 | Comment=Burp Suite is an integrated platform for attacking web applications (community edition) 7 | Categories=Development;Security 8 | Terminal=false 9 | MimeType=application/x-extension-iml; -------------------------------------------------------------------------------- /tur-hacking/ettercap/cmake-Modules-EttercapOSTest.cmake.patch: -------------------------------------------------------------------------------- 1 | --- ../EttercapOSTest.cmake.orig 2019-08-27 19:01:04.600920329 +0200 2 | +++ ./cmake/Modules/EttercapOSTest.cmake 2019-08-27 19:57:48.826678789 +0200 3 | @@ -1,5 +1,7 @@ 4 | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") 5 | set(OS_LINUX 1) 6 | +elseif(${CMAKE_SYSTEM_NAME} MATCHES "Android") 7 | + set(OS_LINUX 1) 8 | elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") 9 | set(OS_BSD 1) 10 | set(OS_BSD_FREE 1) 11 | -------------------------------------------------------------------------------- /tur-hacking/ettercap/include-ec_threads.h.patch: -------------------------------------------------------------------------------- 1 | --- ../ec_threads.h.orig 2019-08-27 20:14:48.025423828 +0200 2 | +++ ./include/ec_threads.h 2019-08-27 20:18:58.102432737 +0200 3 | @@ -33,7 +33,7 @@ 4 | 5 | #define RETURN_IF_NOT_MAIN() do{ if (strcmp(ec_thread_getname(EC_PTHREAD_SELF), EC_GBL_PROGRAM)) return; }while(0) 6 | 7 | -#define CANCELLATION_POINT() pthread_testcancel() 8 | +#define CANCELLATION_POINT() 9 | 10 | #if defined(OS_DARWIN) || defined(OS_WINDOWS) || defined(OS_CYGWIN) 11 | /* XXX - darwin and windows are broken, pthread_join hangs up forever */ 12 | -------------------------------------------------------------------------------- /tur-hacking/hashcat/deps-unrar-ulinks.cpp.patch: -------------------------------------------------------------------------------- 1 | --- a/deps/unrar/os.hpp 2 | +++ b/deps/unrar/os.hpp 3 | @@ -154,7 +154,7 @@ 4 | #define SAVE_LINKS 5 | #endif 6 | 7 | -#if defined(__linux) || defined(__FreeBSD__) 8 | +#if (defined(__linux) && !defined(__ANDROID__)) || defined(__FreeBSD__) 9 | #include 10 | #define USE_LUTIMES 11 | #endif 12 | -------------------------------------------------------------------------------- /tur-hacking/hashcat/include-types.h.patch: -------------------------------------------------------------------------------- 1 | diff -uNr hashcat-6.2.6/include/types.h hashcat-6.2.6.mod/include/types.h 2 | --- hashcat-6.2.6/include/types.h 2022-09-02 22:58:13.000000000 +0800 3 | +++ hashcat-6.2.6.mod/include/types.h 2023-06-10 09:57:29.232857095 +0800 4 | @@ -870,7 +870,7 @@ 5 | * structs 6 | */ 7 | 8 | -typedef struct user 9 | +typedef struct user_hashcat 10 | { 11 | char *user_name; 12 | u32 user_len; 13 | -------------------------------------------------------------------------------- /tur-hacking/nbtscan/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://github.com/resurrecting-open-source-projects/nbtscan 2 | TERMUX_PKG_DESCRIPTION="Scan networks searching for NetBIOS information" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 5 | TERMUX_PKG_VERSION=1.7.2 6 | TERMUX_PKG_SRCURL=https://github.com/resurrecting-open-source-projects/nbtscan/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz 7 | TERMUX_PKG_SHA256=00e61be7c05cd3a34d5fefedffff86dc6add02d4c728b22e13fb9fbeabba1984 8 | 9 | termux_step_pre_configure() { 10 | ./autogen.sh 11 | } 12 | -------------------------------------------------------------------------------- /tur-hacking/slowhttptest/1-configure-fix-prefix.patch: -------------------------------------------------------------------------------- 1 | --- ./configure 2024-10-09 12:56:38.680188116 +0000 2 | +++ ./configure 2024-10-10 11:40:04.946193991 +0000 3 | @@ -750,7 +750,7 @@ 4 | exec_prefix=NONE 5 | no_create= 6 | no_recursion= 7 | -prefix=NONE 8 | +prefix=/data/data/com.termux/files/usr 9 | program_prefix=NONE 10 | program_suffix=NONE 11 | program_transform_name=s,x,x, 12 | -------------------------------------------------------------------------------- /tur-hacking/zaproxy/zap.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Categories=System;Security; 3 | Type=Application 4 | Name=ZAP 5 | GenericName=Attack Proxy 6 | Comment=Zed Attack Proxy 7 | Exec=zaproxy 8 | Icon=zap 9 | -------------------------------------------------------------------------------- /tur-multilib/lib32-libc++/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://github.com/termux-user-repository/tur 2 | TERMUX_PKG_DESCRIPTION="A metapackage that provides libc++ multilib library" 3 | TERMUX_PKG_LICENSE="Public Domain" 4 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 5 | TERMUX_PKG_VERSION=25c 6 | TERMUX_PKG_DEPENDS="lib32-libc++-shared | ndk-multilib" 7 | TERMUX_PKG_PLATFORM_INDEPENDENT=true 8 | TERMUX_PKG_SKIP_SRC_EXTRACT=true 9 | TERMUX_PKG_METAPACKAGE=true 10 | -------------------------------------------------------------------------------- /tur-multilib/lib32-libiconv/bin32-iconv.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE="$TUR_MULTILIB_ARCH_TRIPLE/bin/iconv" 2 | TERMUX_SUBPKG_DESCRIPTION="Utility converting between different character encodings" 3 | -------------------------------------------------------------------------------- /tur-multilib/lib32-libnettle/bin32-nettle.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE="$TUR_MULTILIB_ARCH_TRIPLE/bin/" 2 | TERMUX_SUBPKG_DESCRIPTION="Low level cryptographic tools" 3 | -------------------------------------------------------------------------------- /tur-on-device/classic-flang/flang-lib-scutil-host-fp-folding.c.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/scutil/host-fp-folding.c.orig 2 | +++ b/lib/scutil/host-fp-folding.c 3 | @@ -28,6 +28,12 @@ 4 | #include 5 | #endif 6 | 7 | +#if defined(__ANDROID__) && __ANDROID_API__ < 26 8 | +double complex cpow(double complex __x, double complex __z); 9 | +float complex cpowf(float complex __x, float complex __z); 10 | +long double complex cpowl(long double complex __x, long double complex __z); 11 | +#endif 12 | + 13 | /* 14 | * Build-time sanity checks 15 | */ 16 | -------------------------------------------------------------------------------- /tur-on-device/classic-flang/flang-lib-scutil-pgnewfil.c.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/scutil/pgnewfil.c.orig 2 | +++ b/lib/scutil/pgnewfil.c 3 | @@ -31,7 +31,6 @@ 4 | #if DEBUG 5 | int pgnewfil_debug = 0; 6 | #endif 7 | -extern size_t strlen(); 8 | 9 | #ifndef S_ISDIR 10 | #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 11 | -------------------------------------------------------------------------------- /tur-on-device/classic-flang/flang-runtime-libpgmath-lib-common-fltfenv.c.patch: -------------------------------------------------------------------------------- 1 | diff -uNr a/runtime/libpgmath/lib/common/fltfenv.c b/runtime/libpgmath/lib/common/fltfenv.c 2 | --- a/runtime/libpgmath/lib/common/fltfenv.c 3 | +++ b/runtime/libpgmath/lib/common/fltfenv.c 4 | @@ -573,7 +573,7 @@ 5 | return feupdateenv(env); 6 | } 7 | 8 | -#if defined(TARGET_LINUX_ARM) 9 | +#if defined(TARGET_LINUX_ARM) && !defined(__ANDROID__) 10 | 11 | /* 12 | * ARM aarch64. 13 | -------------------------------------------------------------------------------- /tur-on-device/classic-flang/flang-tools-flang1-flang1exe-CMakeLists.txt.patch: -------------------------------------------------------------------------------- 1 | --- a/tools/flang1/flang1exe/CMakeLists.txt.orig 2 | +++ b/tools/flang1/flang1exe/CMakeLists.txt 3 | @@ -161,7 +161,7 @@ 4 | ) 5 | 6 | if (NOT MSVC) 7 | - target_link_libraries(flang1 PRIVATE m) 8 | + target_link_libraries(flang1 PRIVATE m android-complex-math) 9 | endif() 10 | 11 | # Install flang1 executable 12 | -------------------------------------------------------------------------------- /tur-on-device/classic-flang/flang-tools-flang2-flang2exe-CMakeLists.txt.patch: -------------------------------------------------------------------------------- 1 | --- a/tools/flang2/flang2exe/CMakeLists.txt.orig 2 | +++ b/tools/flang2/flang2exe/CMakeLists.txt 3 | @@ -134,7 +134,7 @@ 4 | ) 5 | 6 | if (NOT MSVC) 7 | - target_link_libraries(flang2 PRIVATE m) 8 | + target_link_libraries(flang2 PRIVATE m android-complex-math) 9 | endif() 10 | 11 | add_dependencies(flang2 12 | -------------------------------------------------------------------------------- /tur-on-device/hello-tur-on-device/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | puts("Hello TUR on Device."); 4 | } -------------------------------------------------------------------------------- /tur-on-device/python2-numpy/site.cfg.patch: -------------------------------------------------------------------------------- 1 | --- a/site.cfg 2 | +++ b/site.cfg 3 | @@ -0,0 +1,9 @@ 4 | +[DEFAULT] 5 | +library_dirs = @TERMUX_PREFIX@/lib 6 | +include_dirs = @TERMUX_PREFIX@/include 7 | + 8 | +[openblas] 9 | +libraries = openblas 10 | +library_dirs = @TERMUX_PREFIX@/lib 11 | +include_dirs = @TERMUX_PREFIX@/include 12 | +runtime_library_dirs = @TERMUX_PREFIX@/lib 13 | -------------------------------------------------------------------------------- /tur-on-device/s-nail/mblen.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/mx/ui-str.c b/src/mx/ui-str.c 2 | index 8ef4e48..bc8a99c 100644 3 | --- a/src/mx/ui-str.c 4 | +++ b/src/mx/ui-str.c 5 | @@ -54,6 +54,8 @@ 6 | /* TODO fake */ 7 | #include "su/code-in.h" 8 | 9 | +int mblen(const char *s, size_t n) {return mbtowc(0, s, n);} 10 | + 11 | #ifdef mx_HAVE_NATCH_CHAR 12 | struct a_uis_bidi_info{ 13 | struct str bi_start; /* Start of (possibly) bidirectional text */ 14 | -------------------------------------------------------------------------------- /tur-on-device/thc-hydra/0001-fix-docdir.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -9,7 +9,7 @@ 4 | LIBS=-lm 5 | DESTDIR ?= 6 | BINDIR = /bin 7 | -MANDIR = /man/man1/ 8 | +MANDIR = /share/man/man1/ 9 | DATADIR = /etc 10 | PIXDIR = /share/pixmaps 11 | APPDIR = /share/applications 12 | -------------------------------------------------------------------------------- /tur/3dstool/0002-link-against-capstone.patch: -------------------------------------------------------------------------------- 1 | --- a/src/CMakeLists.txt 2 | +++ b/src/CMakeLists.txt 3 | @@ -33,7 +33,7 @@ 4 | target_link_libraries(3dstool curl crypto) 5 | endif() 6 | else() 7 | - target_link_libraries(3dstool curl ssl crypto) 8 | + target_link_libraries(3dstool curl ssl crypto capstone) 9 | if(APPLE OR CYGWIN) 10 | target_link_libraries(3dstool iconv) 11 | endif() 12 | -------------------------------------------------------------------------------- /tur/abuse/0001-do-not-include-shm.h.patch: -------------------------------------------------------------------------------- 1 | --- a/src/net/tcpip.h.orig 2 | +++ b/src/net/tcpip.h 3 | @@ -34,7 +34,6 @@ 4 | # include 5 | # include 6 | # include 7 | -# include 8 | # include 9 | # include 10 | # ifdef HAVE_BSTRING_H 11 | -------------------------------------------------------------------------------- /tur/afio/0000-dir_h.compfile.c.patch: -------------------------------------------------------------------------------- 1 | diff --git a/compfile.c b/compfile.c 2 | index 3a685e3..6658f7c 100644 3 | --- a/compfile.c 4 | +++ b/compfile.c 5 | @@ -224,7 +224,7 @@ void waitforgzip() 6 | * version; 7 | */ 8 | 9 | -#if ( defined(sun) && defined(__svr4__) ) || defined(__CYGWIN32__) 10 | +#if ( defined(sun) && defined(__svr4__) ) || defined(__CYGWIN32__) || defined(__ANDROID__) 11 | #include 12 | #else 13 | #include 14 | -------------------------------------------------------------------------------- /tur/archisteamfarm/cc.sh.patch: -------------------------------------------------------------------------------- 1 | --- a/cc.sh 2 | +++ b/cc.sh 3 | @@ -111,7 +111,7 @@ if [ "$ASF_UI" -eq 1 ]; then 4 | fi 5 | 6 | DOTNET_FLAGS="-c $CONFIGURATION -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo" 7 | -PUBLISH_FLAGS="-r ${os_type}-${cpu_architecture} --no-self-contained" 8 | +PUBLISH_FLAGS="-r ${DOTNET_TARGET_NAME} --no-self-contained" 9 | 10 | if [ "$ANALYSIS" -eq 0 ]; then 11 | DOTNET_FLAGS="$DOTNET_FLAGS -p:AnalysisMode=AllDisabledByDefault" 12 | -------------------------------------------------------------------------------- /tur/astrometry.net-data-basic/copyright: -------------------------------------------------------------------------------- 1 | The 4100-series index files are generated from and follow the license of the Tycho-2 catalogue. 2 | 3 | The license information for the Tycho-2 catalogue: 4 | Copyright 2000 Hog E., Fabricius C., Makarov V.V., Urban S., Corbin T., Wycoff G., Bastian U., Schwekendiek P., Wicenec A. 5 | 6 | The Astrometry.net team claims copyright on the script to generate 4100-series index files (but not on the resulting index files): 7 | Copyright 2006-2015 Michael Blanton, David W. Hogg, Dustin Lang, Keir Mierle and Sam Roweis -------------------------------------------------------------------------------- /tur/astrometry.net/0001-gsl-an-configure-cross-compile.patch: -------------------------------------------------------------------------------- 1 | diff --git a/gsl-an/Makefile b/gsl-an/Makefile 2 | index 8b9ced0..cf1995f 100644 3 | --- a/gsl-an/Makefile 4 | +++ b/gsl-an/Makefile 5 | @@ -201,7 +201,7 @@ $(GSL_LIB): config.h $(GSL_OBJS) 6 | $(RANLIB) $@ 7 | 8 | config.h: configure config.h.in 9 | - ./configure --enable-shared=no --prefix=`pwd`/stage 10 | + ./configure --disable-rpath --disable-rpath-hack --enable-shared=no --host=$(TERMUX_HOST_PLATFORM) --prefix=`pwd`/stage 11 | touch $@ 12 | 13 | config.h.in: ; 14 | -------------------------------------------------------------------------------- /tur/astrometry.net/0003-ioutils-TMPDIR.patch: -------------------------------------------------------------------------------- 1 | diff --git a/util/ioutils.c b/util/ioutils.c 2 | index 3a9bd48..91b8832 100644 3 | --- a/util/ioutils.c 4 | +++ b/util/ioutils.c 5 | @@ -638,7 +638,11 @@ char* shell_escape(const char* str) { 6 | } 7 | 8 | static char* get_temp_dir() { 9 | +#ifdef __TERMUX__ 10 | + char* dir = getenv("TMPDIR"); 11 | +#else 12 | char* dir = getenv("TMP"); 13 | +#endif 14 | if (!dir) { 15 | dir = "/tmp"; 16 | } 17 | -------------------------------------------------------------------------------- /tur/bazel/0002-impl-wait3.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/tools/process-tools.cc 2 | +++ b/src/main/tools/process-tools.cc 3 | @@ -217,7 +217,11 @@ 4 | // Discard any zombies that we may get when the child subreaper feature is 5 | // enabled. 6 | do { 7 | +#ifndef __ANDROID__ 8 | err = wait3(&status, 0, rusage); 9 | +#else 10 | + err = wait4(-1, &status, 0, rusage); 11 | +#endif 12 | } while (err != pid || (err == -1 && errno == EINTR)); 13 | } else { 14 | do { 15 | -------------------------------------------------------------------------------- /tur/bazel/0003-disable-sandbox.patch: -------------------------------------------------------------------------------- 1 | `sandbox` will not work on Android due to SELinux rules 2 | 3 | --- a/src/main/tools/BUILD 4 | +++ b/src/main/tools/BUILD 5 | @@ -75,6 +75,7 @@ 6 | "//src/conditions:freebsd": ["dummy-sandbox.c"], 7 | "//src/conditions:openbsd": ["dummy-sandbox.c"], 8 | "//src/conditions:windows": ["dummy-sandbox.c"], 9 | + "//src/conditions:linux": ["dummy-sandbox.c"], 10 | "//conditions:default": [ 11 | "linux-sandbox.cc", 12 | "linux-sandbox.h", 13 | -------------------------------------------------------------------------------- /tur/bazel/0004-spawn.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -54,6 +54,7 @@ 4 | "//src/conditions:windows": WIN_LINK_OPTS, 5 | "//conditions:default": [ 6 | "-lrt", 7 | + "-l:libandroid-spawn.a", 8 | ], 9 | }), 10 | deps = [ 11 | -------------------------------------------------------------------------------- /tur/bazel/0005-bazelrc-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -178,7 +161,7 @@ 4 | # For posix platforms, this can include environment variables in the 5 | # form ${var_name}. Braces are required. 6 | "//conditions:default": [ 7 | - "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"/etc/bazel.bazelrc\\\"", 8 | + "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"@TERMUX_PREFIX@/etc/bazel.bazelrc\\\"", 9 | ], 10 | }), 11 | visibility = [ 12 | -------------------------------------------------------------------------------- /tur/bazel/0006-force-use-external-patch_tools.patch: -------------------------------------------------------------------------------- 1 | Don't know why `grpc.patch` cannot be patched with builtin_patch_tool of bazel. 2 | No matter what, force using the external patch_tool. 3 | 4 | --- a/tools/build_defs/repo/utils.bzl 5 | +++ b/tools/build_defs/repo/utils.bzl 6 | @@ -144,7 +144,7 @@ 7 | patch_tool = ctx.attr.patch_tool 8 | if not patch_tool: 9 | patch_tool = "patch" 10 | - native_patch = True 11 | + native_patch = False 12 | else: 13 | native_patch = False 14 | 15 | -------------------------------------------------------------------------------- /tur/bazel/0009-compile-cpu_profiler-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/java/net/starlark/java/eval/BUILD 2 | +++ b/src/main/java/net/starlark/java/eval/BUILD 3 | @@ -109,4 +109,5 @@ 4 | }), 5 | linkshared = 1, 6 | deps = ["@bazel_tools//tools/jdk:jni"], 7 | + cxxopts = ["-fPIC"], 8 | ) 9 | -------------------------------------------------------------------------------- /tur/bazel/bazel8.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Correct, reproducible, and fast builds for everyone (Version 8)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=deps 3 | TERMUX_SUBPKG_INCLUDE=" 4 | bin/bazel-$TERMUX_PKG_VERSION 5 | " 6 | -------------------------------------------------------------------------------- /tur/bazel/dep-patches/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["notice"]) 2 | 3 | filegroup( 4 | name = "srcs", 5 | srcs = glob(["**"]), 6 | visibility = ["//third_party:__pkg__"], 7 | ) 8 | -------------------------------------------------------------------------------- /tur/bazel/dep-patches/protobuf.patch: -------------------------------------------------------------------------------- 1 | --- a/src/google/protobuf/stubs/common.cc 2 | +++ b/src/google/protobuf/stubs/common.cc 3 | @@ -45,7 +45,7 @@ 4 | #include 5 | #define snprintf _snprintf // see comment in strutil.cc 6 | #endif 7 | -#if defined(__ANDROID__) 8 | +#if defined(__ANDROID__) && !defined(__TERMUX__) 9 | #include 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /tur/bazel/dep-patches/rules_cc.patch: -------------------------------------------------------------------------------- 1 | Force disable module_maps as it doesn't support on Termux 2 | 3 | --- a/cc/private/toolchain/unix_cc_toolchain_config.bzl 4 | +++ b/cc/private/toolchain/unix_cc_toolchain_config.bzl 5 | @@ -37,7 +37,7 @@ def _target_os_version(ctx): 6 | return xcode_config.minimum_os_for_platform_type(platform_type) 7 | 8 | def layering_check_features(compiler, extra_flags_per_feature, is_macos): 9 | - if compiler != "clang": 10 | + if True: 11 | return [] 12 | return [ 13 | feature( 14 | -------------------------------------------------------------------------------- /tur/bazel/dep-patches/z-protobuf.patch: -------------------------------------------------------------------------------- 1 | --- /dev/null 2 | +++ b/termux-patches/protobuf.patch 3 | @@ -0,0 +1,11 @@ 4 | +--- a/src/google/protobuf/stubs/common.cc 5 | ++++ b/src/google/protobuf/stubs/common.cc 6 | +@@ -45,7 +45,7 @@ 7 | + #include 8 | + #define snprintf _snprintf // see comment in strutil.cc 9 | + #endif 10 | +-#if defined(__ANDROID__) 11 | ++#if defined(__ANDROID__) && !defined(__TERMUX__) 12 | + #include 13 | + #endif 14 | + 15 | -------------------------------------------------------------------------------- /tur/bazel/termux-cross/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel/termux-cross/BUILD -------------------------------------------------------------------------------- /tur/bazel/termux-cross/toolchain/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel/termux-cross/toolchain/BUILD -------------------------------------------------------------------------------- /tur/bazel/termux-cross/toolchain/template/bin/wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | exec external/+_repo_rules6+termux-toolchain/bin/$(basename "$0") "$@" 4 | -------------------------------------------------------------------------------- /tur/bazel5/0002-impl-wait3.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/tools/process-tools.cc 2 | +++ b/src/main/tools/process-tools.cc 3 | @@ -217,7 +217,11 @@ 4 | // Discard any zombies that we may get when the child subreaper feature is 5 | // enabled. 6 | do { 7 | +#ifndef __ANDROID__ 8 | err = wait3(&status, 0, rusage); 9 | +#else 10 | + err = wait4(-1, &status, 0, rusage); 11 | +#endif 12 | } while (err != pid || (err == -1 && errno == EINTR)); 13 | } else { 14 | do { 15 | -------------------------------------------------------------------------------- /tur/bazel5/0003-disable-sandbox.patch: -------------------------------------------------------------------------------- 1 | `sandbox` will not work on Android due to SELinux rules 2 | 3 | --- a/src/main/tools/BUILD 4 | +++ b/src/main/tools/BUILD 5 | @@ -75,6 +75,7 @@ 6 | "//src/conditions:freebsd": ["dummy-sandbox.c"], 7 | "//src/conditions:openbsd": ["dummy-sandbox.c"], 8 | "//src/conditions:windows": ["dummy-sandbox.c"], 9 | + "//src/conditions:linux": ["dummy-sandbox.c"], 10 | "//conditions:default": [ 11 | "linux-sandbox.cc", 12 | "linux-sandbox.h", 13 | -------------------------------------------------------------------------------- /tur/bazel5/0004-spawn.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -54,6 +54,7 @@ 4 | "//src/conditions:windows": WIN_LINK_OPTS, 5 | "//conditions:default": [ 6 | "-lrt", 7 | + "-l:libandroid-spawn.a", 8 | ], 9 | }), 10 | deps = [ 11 | -------------------------------------------------------------------------------- /tur/bazel5/0006-force-use-external-patch_tools.patch: -------------------------------------------------------------------------------- 1 | Don't know why `grpc.patch` cannot be patched with builtin_patch_tool of bazel. 2 | No matter what, force using the external patch_tool. 3 | 4 | --- a/tools/build_defs/repo/utils.bzl 5 | +++ b/tools/build_defs/repo/utils.bzl 6 | @@ -144,7 +144,7 @@ 7 | patch_tool = ctx.attr.patch_tool 8 | if not patch_tool: 9 | patch_tool = "patch" 10 | - native_patch = True 11 | + native_patch = False 12 | else: 13 | native_patch = False 14 | 15 | -------------------------------------------------------------------------------- /tur/bazel5/0007-disable-module_maps.patch: -------------------------------------------------------------------------------- 1 | --- a/tools/cpp/unix_cc_toolchain_config.bzl 2 | +++ b/tools/cpp/unix_cc_toolchain_config.bzl 3 | @@ -37,7 +37,7 @@ 4 | return xcode_config.minimum_os_for_platform_type(platform_type) 5 | 6 | def layering_check_features(compiler): 7 | - if compiler != "clang": 8 | + if True: 9 | return [] 10 | return [ 11 | feature( 12 | -------------------------------------------------------------------------------- /tur/bazel5/0009-bazelrc-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -178,7 +161,7 @@ 4 | # For posix platforms, this can include environment variables in the 5 | # form ${var_name}. Braces are required. 6 | "//conditions:default": [ 7 | - "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"/etc/bazel.bazelrc\\\"", 8 | + "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"@TERMUX_PREFIX@/etc/bazel.bazelrc\\\"", 9 | ], 10 | }), 11 | visibility = [ 12 | -------------------------------------------------------------------------------- /tur/bazel5/0011-compile-cpu_profiler-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/java/net/starlark/java/eval/BUILD 2 | +++ b/src/main/java/net/starlark/java/eval/BUILD 3 | @@ -109,4 +109,5 @@ 4 | }), 5 | linkshared = 1, 6 | deps = ["@bazel_tools//tools/jdk:jni"], 7 | + copts = ["-fPIC"], 8 | ) 9 | -------------------------------------------------------------------------------- /tur/bazel5/dep-patches/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["notice"]) 2 | 3 | filegroup( 4 | name = "srcs", 5 | srcs = glob(["**"]), # glob everything to satisfy the compile.sh srcs test 6 | visibility = ["//third_party:__pkg__"], 7 | ) 8 | -------------------------------------------------------------------------------- /tur/bazel5/termux-cross/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel5/termux-cross/BUILD -------------------------------------------------------------------------------- /tur/bazel5/termux-cross/toolchain/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel5/termux-cross/toolchain/BUILD -------------------------------------------------------------------------------- /tur/bazel5/termux-cross/toolchain/template/bin/wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | exec external/termux-toolchain/bin/$(basename "$0") "$@" 4 | -------------------------------------------------------------------------------- /tur/bazel6/0002-impl-wait3.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/tools/process-tools.cc 2 | +++ b/src/main/tools/process-tools.cc 3 | @@ -217,7 +217,11 @@ 4 | // Discard any zombies that we may get when the child subreaper feature is 5 | // enabled. 6 | do { 7 | +#ifndef __ANDROID__ 8 | err = wait3(&status, 0, rusage); 9 | +#else 10 | + err = wait4(-1, &status, 0, rusage); 11 | +#endif 12 | } while (err != pid || (err == -1 && errno == EINTR)); 13 | } else { 14 | do { 15 | -------------------------------------------------------------------------------- /tur/bazel6/0003-disable-sandbox.patch: -------------------------------------------------------------------------------- 1 | `sandbox` will not work on Android due to SELinux rules 2 | 3 | --- a/src/main/tools/BUILD 4 | +++ b/src/main/tools/BUILD 5 | @@ -75,6 +75,7 @@ 6 | "//src/conditions:freebsd": ["dummy-sandbox.c"], 7 | "//src/conditions:openbsd": ["dummy-sandbox.c"], 8 | "//src/conditions:windows": ["dummy-sandbox.c"], 9 | + "//src/conditions:linux": ["dummy-sandbox.c"], 10 | "//conditions:default": [ 11 | "linux-sandbox.cc", 12 | "linux-sandbox.h", 13 | -------------------------------------------------------------------------------- /tur/bazel6/0004-spawn.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -54,6 +54,7 @@ 4 | "//src/conditions:windows": WIN_LINK_OPTS, 5 | "//conditions:default": [ 6 | "-lrt", 7 | + "-l:libandroid-spawn.a", 8 | ], 9 | }), 10 | deps = [ 11 | -------------------------------------------------------------------------------- /tur/bazel6/0006-force-use-external-patch_tools.patch: -------------------------------------------------------------------------------- 1 | Don't know why `grpc.patch` cannot be patched with builtin_patch_tool of bazel. 2 | No matter what, force using the external patch_tool. 3 | 4 | --- a/tools/build_defs/repo/utils.bzl 5 | +++ b/tools/build_defs/repo/utils.bzl 6 | @@ -144,7 +144,7 @@ 7 | patch_tool = ctx.attr.patch_tool 8 | if not patch_tool: 9 | patch_tool = "patch" 10 | - native_patch = True 11 | + native_patch = False 12 | else: 13 | native_patch = False 14 | 15 | -------------------------------------------------------------------------------- /tur/bazel6/0007-disable-module_maps.patch: -------------------------------------------------------------------------------- 1 | --- a/tools/cpp/unix_cc_toolchain_config.bzl 2 | +++ b/tools/cpp/unix_cc_toolchain_config.bzl 3 | @@ -37,7 +37,7 @@ 4 | return xcode_config.minimum_os_for_platform_type(platform_type) 5 | 6 | def layering_check_features(compiler): 7 | - if compiler != "clang": 8 | + if True: 9 | return [] 10 | return [ 11 | feature( 12 | -------------------------------------------------------------------------------- /tur/bazel6/0009-bazelrc-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -178,7 +161,7 @@ 4 | # For posix platforms, this can include environment variables in the 5 | # form ${var_name}. Braces are required. 6 | "//conditions:default": [ 7 | - "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"/etc/bazel.bazelrc\\\"", 8 | + "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"@TERMUX_PREFIX@/etc/bazel.bazelrc\\\"", 9 | ], 10 | }), 11 | visibility = [ 12 | -------------------------------------------------------------------------------- /tur/bazel6/0011-fix-patch-eol.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/cncf_udpa/cncf_udpa_0.0.1.patch 2 | +++ b/third_party/cncf_udpa/cncf_udpa_0.0.1.patch 3 | @@ -155,4 +155,4 @@ 4 | +# "//udpa/service/orca/v1:pkg_go_proto", 5 | +# "//udpa/type/v1:pkg_go_proto", 6 | +# ], 7 | -+#) 8 | \ No newline at end of file 9 | ++#) 10 | -------------------------------------------------------------------------------- /tur/bazel6/0012-compile-cpu_profiler-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/java/net/starlark/java/eval/BUILD 2 | +++ b/src/main/java/net/starlark/java/eval/BUILD 3 | @@ -109,4 +109,5 @@ 4 | }), 5 | linkshared = 1, 6 | deps = ["@bazel_tools//tools/jdk:jni"], 7 | + copts = ["-fPIC"], 8 | ) 9 | -------------------------------------------------------------------------------- /tur/bazel6/dep-patches/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["notice"]) 2 | 3 | filegroup( 4 | name = "srcs", 5 | srcs = glob(["**"]), 6 | visibility = ["//third_party:__pkg__"], 7 | ) 8 | -------------------------------------------------------------------------------- /tur/bazel6/termux-cross/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel6/termux-cross/BUILD -------------------------------------------------------------------------------- /tur/bazel6/termux-cross/toolchain/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel6/termux-cross/toolchain/BUILD -------------------------------------------------------------------------------- /tur/bazel6/termux-cross/toolchain/template/bin/wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | exec external/termux-toolchain/bin/$(basename "$0") "$@" 4 | -------------------------------------------------------------------------------- /tur/bazel7/0002-impl-wait3.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/tools/process-tools.cc 2 | +++ b/src/main/tools/process-tools.cc 3 | @@ -217,7 +217,11 @@ 4 | // Discard any zombies that we may get when the child subreaper feature is 5 | // enabled. 6 | do { 7 | +#ifndef __ANDROID__ 8 | err = wait3(&status, 0, rusage); 9 | +#else 10 | + err = wait4(-1, &status, 0, rusage); 11 | +#endif 12 | } while (err != pid || (err == -1 && errno == EINTR)); 13 | } else { 14 | do { 15 | -------------------------------------------------------------------------------- /tur/bazel7/0003-disable-sandbox.patch: -------------------------------------------------------------------------------- 1 | `sandbox` will not work on Android due to SELinux rules 2 | 3 | --- a/src/main/tools/BUILD 4 | +++ b/src/main/tools/BUILD 5 | @@ -75,6 +75,7 @@ 6 | "//src/conditions:freebsd": ["dummy-sandbox.c"], 7 | "//src/conditions:openbsd": ["dummy-sandbox.c"], 8 | "//src/conditions:windows": ["dummy-sandbox.c"], 9 | + "//src/conditions:linux": ["dummy-sandbox.c"], 10 | "//conditions:default": [ 11 | "linux-sandbox.cc", 12 | "linux-sandbox.h", 13 | -------------------------------------------------------------------------------- /tur/bazel7/0004-spawn.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -54,6 +54,7 @@ 4 | "//src/conditions:windows": WIN_LINK_OPTS, 5 | "//conditions:default": [ 6 | "-lrt", 7 | + "-l:libandroid-spawn.a", 8 | ], 9 | }), 10 | deps = [ 11 | -------------------------------------------------------------------------------- /tur/bazel7/0005-bazelrc-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/cpp/BUILD 2 | +++ b/src/main/cpp/BUILD 3 | @@ -178,7 +161,7 @@ 4 | # For posix platforms, this can include environment variables in the 5 | # form ${var_name}. Braces are required. 6 | "//conditions:default": [ 7 | - "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"/etc/bazel.bazelrc\\\"", 8 | + "-DBAZEL_SYSTEM_BAZELRC_PATH=\\\"@TERMUX_PREFIX@/etc/bazel.bazelrc\\\"", 9 | ], 10 | }), 11 | visibility = [ 12 | -------------------------------------------------------------------------------- /tur/bazel7/0006-force-use-external-patch_tools.patch: -------------------------------------------------------------------------------- 1 | Don't know why `grpc.patch` cannot be patched with builtin_patch_tool of bazel. 2 | No matter what, force using the external patch_tool. 3 | 4 | --- a/tools/build_defs/repo/utils.bzl 5 | +++ b/tools/build_defs/repo/utils.bzl 6 | @@ -144,7 +144,7 @@ 7 | patch_tool = ctx.attr.patch_tool 8 | if not patch_tool: 9 | patch_tool = "patch" 10 | - native_patch = True 11 | + native_patch = False 12 | else: 13 | native_patch = False 14 | 15 | -------------------------------------------------------------------------------- /tur/bazel7/0007-disable-module_maps.patch: -------------------------------------------------------------------------------- 1 | --- a/tools/cpp/unix_cc_toolchain_config.bzl 2 | +++ b/tools/cpp/unix_cc_toolchain_config.bzl 3 | @@ -37,7 +37,7 @@ def _target_os_version(ctx): 4 | return xcode_config.minimum_os_for_platform_type(platform_type) 5 | 6 | def layering_check_features(compiler, extra_flags_per_feature, is_macos): 7 | - if compiler != "clang": 8 | + if True: 9 | return [] 10 | return [ 11 | feature( 12 | -------------------------------------------------------------------------------- /tur/bazel7/0009-compile-cpu_profiler-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main/java/net/starlark/java/eval/BUILD 2 | +++ b/src/main/java/net/starlark/java/eval/BUILD 3 | @@ -109,4 +109,5 @@ 4 | }), 5 | linkshared = 1, 6 | deps = ["@bazel_tools//tools/jdk:jni"], 7 | + cxxopts = ["-fPIC"], 8 | ) 9 | -------------------------------------------------------------------------------- /tur/bazel7/dep-patches/BUILD: -------------------------------------------------------------------------------- 1 | licenses(["notice"]) 2 | 3 | filegroup( 4 | name = "srcs", 5 | srcs = glob(["**"]), 6 | visibility = ["//third_party:__pkg__"], 7 | ) 8 | -------------------------------------------------------------------------------- /tur/bazel7/termux-cross/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel7/termux-cross/BUILD -------------------------------------------------------------------------------- /tur/bazel7/termux-cross/toolchain/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux-user-repository/tur/0b8d980ec60725f5cd1864d4384188bc164349ed/tur/bazel7/termux-cross/toolchain/BUILD -------------------------------------------------------------------------------- /tur/bazel7/termux-cross/toolchain/template/bin/wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | exec external/_main~_repo_rules~termux-toolchain/bin/$(basename "$0") "$@" 4 | -------------------------------------------------------------------------------- /tur/box2d/0001-aligned_alloc.patch: -------------------------------------------------------------------------------- 1 | --- a/samples/main.cpp 2 | +++ b/samples/main.cpp 3 | @@ -77,6 +77,13 @@ 4 | 5 | #if defined( _MSC_VER ) 6 | void* ptr = _aligned_malloc( sizeAligned, alignment ); 7 | +#elif defined( __ANDROID__ ) 8 | + void* ptr = NULL; 9 | + if ( posix_memalign( &ptr, alignment, sizeAligned ) != 0 ) 10 | + { 11 | + // allocation failed 12 | + ptr = nullptr; 13 | + } 14 | #else 15 | void* ptr = aligned_alloc( alignment, sizeAligned ); 16 | #endif 17 | -------------------------------------------------------------------------------- /tur/boxedwine/for-clang16.patch: -------------------------------------------------------------------------------- 1 | --- a/source/emulation/cpu/dynamic/dynamic_generic_base.h 2 | +++ b/source/emulation/cpu/dynamic/dynamic_generic_base.h 3 | @@ -1019,7 +1019,7 @@ 4 | } 5 | U8* begin = (U8*)mem + memory->dynamicExecutableMemoryPos; 6 | 7 | - Platform::writeCodeToMemory(begin, outBufferPos, [begin, outBuffer, outBufferPos] { 8 | + Platform::writeCodeToMemory(begin, outBufferPos, [begin] { 9 | memcpy(begin, outBuffer, outBufferPos); 10 | }); 11 | 12 | -------------------------------------------------------------------------------- /tur/boxedwine/lib-tiny-process-process_unix.cpp.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/tiny-process/process_unix.cpp 2 | +++ b/lib/tiny-process/process_unix.cpp 3 | @@ -33,7 +33,9 @@ 4 | char cspath[PATH_MAX + 1] = {}; 5 | if(!path) { 6 | // If env variable is not set, use static path string. 7 | - confstr(_CS_PATH, cspath, sizeof(cspath)); 8 | + //confstr(_CS_PATH, cspath, sizeof(cspath)); 9 | + strncpy(cspath, "@TERMUX_PREFIX@/bin", sizeof(cspath)); 10 | + cspath[sizeof(cspath) - 1] = '\0'; 11 | path = cspath; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/0002-compiler-disable-warnings.patch: -------------------------------------------------------------------------------- 1 | --- a/build/config/compiler/BUILD.gn 2 | +++ b/build/config/compiler/BUILD.gn 3 | @@ -1919,6 +1912,11 @@ 4 | } 5 | } 6 | 7 | + cflags += [ 8 | + "-Wno-unknown-warning-option", 9 | + "-Wno-unknown-pragmas", 10 | + ] 11 | + 12 | # Rust warnings 13 | 14 | # Require `unsafe` blocks even in `unsafe` fns. This is intended to become 15 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1003-chromium-fix-type-for-inotify.patch: -------------------------------------------------------------------------------- 1 | --- a/base/files/file_path_watcher_inotify.cc 2 | +++ b/base/files/file_path_watcher_inotify.cc 3 | @@ -114,7 +114,7 @@ 4 | class InotifyReader { 5 | public: 6 | // Watch descriptor used by AddWatch() and RemoveWatch(). 7 | -#if BUILDFLAG(IS_ANDROID) 8 | +#if BUILDFLAG(IS_ANDROID) || defined(__TERMUX__) 9 | using Watch = uint32_t; 10 | #else 11 | using Watch = int; 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1008-chromium-no-futimes.patch: -------------------------------------------------------------------------------- 1 | --- a/base/files/file_posix.cc 2 | +++ b/base/files/file_posix.cc 3 | @@ -50,7 +50,7 @@ 4 | } 5 | 6 | int CallFutimes(PlatformFile file, const struct timeval times[2]) { 7 | -#ifdef __USE_XOPEN2K8 8 | +#if defined(__USE_XOPEN2K8) || (defined(__ANDROID__) && __ANDROID_API__ < 26) 9 | // futimens should be available, but futimes might not be 10 | // http://pubs.opengroup.org/onlinepubs/9699919799/ 11 | 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1009-chromium-disable-google-api-warnings.patch: -------------------------------------------------------------------------------- 1 | --- a/chrome/browser/ui/startup/infobar_utils.cc 2 | +++ b/chrome/browser/ui/startup/infobar_utils.cc 3 | @@ -154,7 +154,11 @@ 4 | infobars::ContentInfoBarManager* infobar_manager = 5 | infobars::ContentInfoBarManager::FromWebContents(web_contents); 6 | 7 | +#ifdef __TERMUX__ 8 | + if (0) { 9 | +#else 10 | if (!google_apis::HasAPIKeyConfigured()) { 11 | +#endif 12 | GoogleApiKeysInfoBarDelegate::Create(infobar_manager); 13 | } 14 | 15 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1012-chromium-redefine-termios2.patch: -------------------------------------------------------------------------------- 1 | --- a/services/device/serial/serial_io_handler_posix.cc 2 | +++ b/services/device/serial/serial_io_handler_posix.cc 3 | @@ -16,7 +16,7 @@ 4 | #include "build/build_config.h" 5 | #include "components/device_event_log/device_event_log.h" 6 | 7 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 8 | +#if (BUILDFLAG(IS_LINUX) && !defined(__TERMUX__)) || BUILDFLAG(IS_CHROMEOS) 9 | #include 10 | #include 11 | 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1014-chromium-unity-fix-dynamic-loaded-libraries.patch: -------------------------------------------------------------------------------- 1 | --- a/chrome/browser/download/download_status_updater_linux.cc 2 | +++ b/chrome/browser/download/download_status_updater_linux.cc 3 | @@ -77,6 +77,8 @@ 4 | if (!unity_lib) 5 | unity_lib = dlopen("libunity.so.9", RTLD_LAZY); 6 | if (!unity_lib) 7 | + unity_lib = dlopen("libunity.so", RTLD_LAZY); 8 | + if (!unity_lib) 9 | return; 10 | 11 | unity_inspector_get_default_func inspector_get_default = 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1016-chromium-ozone-wayland-memfd.patch: -------------------------------------------------------------------------------- 1 | --- a/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc 2 | +++ b/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc 3 | @@ -22,6 +22,11 @@ 4 | #include "ui/ozone/platform/wayland/host/wayland_seat.h" 5 | #include "ui/ozone/platform/wayland/host/wayland_window.h" 6 | 7 | +#if defined __ANDROID__ && __ANDROID_API__ < 30 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | namespace ui { 13 | namespace { 14 | 15 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1018-chromium-no-landlock.patch: -------------------------------------------------------------------------------- 1 | --- a/content/app/content_main_runner_impl.cc 2 | +++ b/content/app/content_main_runner_impl.cc 3 | @@ -1059,7 +1059,7 @@ 4 | } 5 | #endif // BUILDFLAG(USE_ZYGOTE) 6 | 7 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 8 | +#if (BUILDFLAG(IS_LINUX) && !defined(__TERMUX__)) || BUILDFLAG(IS_CHROMEOS) 9 | if (process_type.empty()) { 10 | // Check if Landlock is supported. 11 | sandbox::policy::SandboxLinux::ReportLandlockStatus(); 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1501-v8-fix-compress-pointer-offset.patch: -------------------------------------------------------------------------------- 1 | --- a/v8/include/v8-internal.h 2 | +++ b/v8/include/v8-internal.h 3 | @@ -242,7 +242,7 @@ 4 | 5 | #ifdef V8_COMPRESS_POINTERS 6 | 7 | -#ifdef V8_TARGET_OS_ANDROID 8 | +#if defined(V8_TARGET_OS_ANDROID) && !defined(__TERMUX__) 9 | // The size of the virtual memory reservation for an external pointer table. 10 | // This determines the maximum number of entries in a table. Using a maximum 11 | // size allows omitting bounds checks on table accesses if the indices are 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1502-v8-memfd_create.patch: -------------------------------------------------------------------------------- 1 | --- a/v8/src/wasm/wasm-objects.cc 2 | +++ b/v8/src/wasm/wasm-objects.cc 3 | @@ -11,6 +11,11 @@ 4 | #undef MAP_TYPE 5 | #endif // V8_TARGET_OS_LINUX 6 | 7 | +#if defined __ANDROID__ && __ANDROID_API__ < 30 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | #include "src/wasm/wasm-objects.h" 13 | 14 | #include 15 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1601-angle-no-android-jni.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/angle/src/common/platform.h 2 | +++ b/third_party/angle/src/common/platform.h 3 | @@ -17,7 +17,7 @@ 4 | #elif defined(__APPLE__) 5 | # define ANGLE_PLATFORM_APPLE 1 6 | # define ANGLE_PLATFORM_POSIX 1 7 | -#elif defined(ANDROID) && !defined(ANGLE_ANDROID_DMA_BUF) 8 | +#elif (defined(ANDROID) && !defined(ANGLE_ANDROID_DMA_BUF) && !defined(__TERMUX__)) 9 | # define ANGLE_PLATFORM_ANDROID 1 10 | # define ANGLE_PLATFORM_POSIX 1 11 | #elif defined(__ggp__) 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/1701-swiftshader-no-spawn.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h 2 | +++ b/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h 3 | @@ -166,7 +166,7 @@ 4 | #define HAVE_POSIX_FALLOCATE 1 5 | 6 | /* Define to 1 if you have the `posix_spawn' function. */ 7 | -#define HAVE_POSIX_SPAWN 1 8 | +/* #define HAVE_POSIX_SPAWN 1 */ 9 | 10 | /* Define to 1 if you have the `pread' function. */ 11 | #define HAVE_PREAD 1 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/2001-weston-memfd_create.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/weston/src/shared/os-compatibility.c 2 | +++ b/third_party/weston/src/shared/os-compatibility.c 3 | @@ -38,6 +38,11 @@ 4 | 5 | #include "os-compatibility.h" 6 | 7 | +#if defined(__ANDROID__) && __ANDROID_API__ < 26 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | #define READONLY_SEALS (F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE) 13 | 14 | int 15 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/2003-wayland-memfd_create.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/wayland/src/cursor/os-compatibility.c 2 | +++ b/third_party/wayland/src/cursor/os-compatibility.c 3 | @@ -42,6 +42,11 @@ 4 | 5 | #include "os-compatibility.h" 6 | 7 | +#if defined(__ANDROID__) && __ANDROID_API__ < 26 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | #ifndef HAVE_MKOSTEMP 13 | static int 14 | set_cloexec_or_close(int fd) 15 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/2009-cpuinfo-android-arm.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/cpuinfo/src/src/arm/linux/init.c 2 | +++ b/third_party/cpuinfo/src/src/arm/linux/init.c 3 | @@ -14,6 +14,10 @@ 4 | #include 5 | #include 6 | 7 | +#ifdef __TERMUX__ 8 | +#include 9 | +#endif 10 | + 11 | struct cpuinfo_arm_isa cpuinfo_isa = {0}; 12 | 13 | static struct cpuinfo_package package = {{0}}; 14 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/2010-dav1d-no-get-affinity.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/dav1d/libdav1d/src/cpu.c 2 | +++ b/third_party/dav1d/libdav1d/src/cpu.c 3 | @@ -91,7 +91,7 @@ 4 | GetNativeSystemInfo(&system_info); 5 | return system_info.dwNumberOfProcessors; 6 | #endif 7 | -#elif HAVE_PTHREAD_GETAFFINITY_NP && defined(CPU_COUNT) 8 | +#elif HAVE_PTHREAD_GETAFFINITY_NP && defined(CPU_COUNT) && !defined(__ANDROID__) 9 | cpu_set_t affinity; 10 | if (!pthread_getaffinity_np(pthread_self(), sizeof(affinity), &affinity)) 11 | return CPU_COUNT(&affinity); 12 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/cr-patches/8001-material_color_utilities-include-cmath.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/material_color_utilities/src/cpp/utils/utils.h 2 | +++ b/third_party/material_color_utilities/src/cpp/utils/utils.h 3 | @@ -18,6 +18,7 @@ 4 | #define CPP_UTILS_UTILS_H_ 5 | 6 | #include 7 | +#include 8 | #include 9 | 10 | namespace material_color_utilities { 11 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/toolchain-template/host-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | import("//build/config/sysroot.gni") 2 | import("//build/toolchain/gcc_toolchain.gni") 3 | 4 | gcc_toolchain("host") { 5 | cc = "@HOST_CC@" 6 | cxx = "@HOST_CXX@" 7 | ld = "@HOST_LD@" 8 | ar = "@HOST_AR@" 9 | nm = "@HOST_NM@" 10 | toolchain_args = { 11 | current_os = "linux" 12 | current_cpu = "x64" 13 | v8_current_cpu = "@V8_CURRENT_CPU@" 14 | is_clang = @HOST_IS_CLANG@ 15 | sysroot = "@HOST_SYSROOT@" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tur/chromium-beta-host-tools/toolchain-template/v8-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | gcc_toolchain("@V8_TOOLCHAIN_NAME@") { 2 | cc = "@V8_CC@" 3 | cxx = "@V8_CXX@" 4 | ld = "@V8_LD@" 5 | ar = "@V8_AR@" 6 | nm = "@V8_NM@" 7 | toolchain_args = { 8 | current_os = "linux" 9 | current_cpu = "@V8_CURRENT_CPU@" 10 | v8_current_cpu = "@V8_V8_CURRENT_CPU@" 11 | is_clang = @V8_IS_CLANG@ 12 | sysroot = "@V8_SYSROOT@" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tur/chromium-beta/host-tools.txt: -------------------------------------------------------------------------------- 1 | host/brotli 2 | host/flatc 3 | host/cppgen_plugin 4 | host/ipc_plugin 5 | host/nasm 6 | host/protoc 7 | host/protoc-gen-js 8 | host/protozero_plugin 9 | host/wayland_scanner 10 | 11 | host/character_data_generator 12 | host/generate_colors_info 13 | host/make_top_domain_list_variables 14 | host/root_store_tool 15 | host/top_domain_generator 16 | host/transport_security_state_generator 17 | -------------------------------------------------------------------------------- /tur/chromium-beta/third_party_override/swiftshader/src/Vulkan/vulkan.gni: -------------------------------------------------------------------------------- 1 | swiftshader_icd_file_name = "vk_swiftshader_icd.json" 2 | -------------------------------------------------------------------------------- /tur/chromium-beta/toolchain-template/host-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | import("//build/config/sysroot.gni") 2 | import("//build/toolchain/gcc_toolchain.gni") 3 | 4 | gcc_toolchain("host") { 5 | cc = "@HOST_CC@" 6 | cxx = "@HOST_CXX@" 7 | ld = "@HOST_LD@" 8 | ar = "@HOST_AR@" 9 | nm = "@HOST_NM@" 10 | toolchain_args = { 11 | current_os = "linux" 12 | current_cpu = "x64" 13 | v8_current_cpu = "@V8_CURRENT_CPU@" 14 | is_clang = @HOST_IS_CLANG@ 15 | sysroot = "@HOST_SYSROOT@" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tur/chromium-beta/toolchain-template/v8-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | gcc_toolchain("@V8_TOOLCHAIN_NAME@") { 2 | cc = "@V8_CC@" 3 | cxx = "@V8_CXX@" 4 | ld = "@V8_LD@" 5 | ar = "@V8_AR@" 6 | nm = "@V8_NM@" 7 | toolchain_args = { 8 | current_os = "linux" 9 | current_cpu = "@V8_CURRENT_CPU@" 10 | v8_current_cpu = "@V8_V8_CURRENT_CPU@" 11 | is_clang = @V8_IS_CLANG@ 12 | sysroot = "@V8_SYSROOT@" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tur/cksfv/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=http://zakalwe.fi/~shd/foss/cksfv 2 | TERMUX_PKG_DESCRIPTION="SFV (Simple File Verification) Checker" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 5 | TERMUX_PKG_VERSION="1.3.15" 6 | TERMUX_PKG_SRCURL="http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-$TERMUX_PKG_VERSION.tar.bz2" 7 | TERMUX_PKG_SHA256=a173be5b6519e19169b6bb0b8a8530f04303fe3b17706927b9bd58461256064c 8 | TERMUX_PKG_BUILD_IN_SRC=true 9 | -------------------------------------------------------------------------------- /tur/clanbomber/0001-drop-linkage-stdcxxfs.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile.am 2 | +++ b/src/Makefile.am 3 | @@ -3,7 +3,7 @@ 4 | clanbomber2dir = $(RELATIVE_DATADIR)/$(PACKAGE) 5 | relative_localedir = $(RELATIVE_DATADIR)/locale 6 | 7 | -AM_CXXFLAGS = -std=c++17 -lstdc++fs 8 | +AM_CXXFLAGS = -std=c++17 9 | 10 | AM_CPPFLAGS = \ 11 | $(SDL2_CFLAGS) \ 12 | -------------------------------------------------------------------------------- /tur/clucene/0005-clucene-multimap-put.patch: -------------------------------------------------------------------------------- 1 | --- a/src/core/CLucene/util/VoidMap.h 2 | +++ b/src/core/CLucene/util/VoidMap.h 3 | @@ -316,6 +316,7 @@ public: 4 | if ( _this::dk || _this::dv ) 5 | _this::remove(k); 6 | 7 | + (*this)[k] = v; 8 | } 9 | }; 10 | 11 | -------------------------------------------------------------------------------- /tur/clucene/0007-clucene-debug.patch: -------------------------------------------------------------------------------- 1 | --- a/src/core/CLucene/index/TermInfosReader.cpp 2 | +++ b/src/core/CLucene/index/TermInfosReader.cpp 3 | @@ -111,7 +111,7 @@ 4 | //destroy their elements 5 | #ifdef _DEBUG 6 | for ( int32_t i=0; i(int, int, int); 6 | template bool raii_socket::set_option(int, int, bool); 7 | +#if !defined(__ANDROID__) || defined(__LP64__) 8 | template bool raii_socket::set_option(int, int, socklen_t); 9 | +#endif 10 | 11 | bool raii_socket::listen() { 12 | return ::listen(fd, SOMAXCONN) >= 0; 13 | -------------------------------------------------------------------------------- /tur/edex-ui/9999-fix-for-isexe.diff: -------------------------------------------------------------------------------- 1 | --- resources/app/node_modules/isexe/mode.js.orig 2 | +++ resources/app/node_modules/isexe/mode.js 3 | @@ -32,10 +32,8 @@ 4 | var o = parseInt('001', 8) 5 | var ug = u | g 6 | 7 | - var ret = (mod & o) || 8 | - (mod & g) && gid === myGid || 9 | - (mod & u) && uid === myUid || 10 | - (mod & ug) && myUid === 0 11 | + // Do not check uid/gid on Termux. 12 | + var ret = (mod & o) || (mod & g) || (mod & u) || (mod & ug) 13 | 14 | return ret 15 | } 16 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/0002-compiler-disable-warnings.patch: -------------------------------------------------------------------------------- 1 | --- a/build/config/compiler/BUILD.gn 2 | +++ b/build/config/compiler/BUILD.gn 3 | @@ -1919,6 +1912,11 @@ 4 | } 5 | } 6 | 7 | + cflags += [ 8 | + "-Wno-unknown-warning-option", 9 | + "-Wno-unknown-pragmas", 10 | + ] 11 | + 12 | # Rust warnings 13 | 14 | # Require `unsafe` blocks even in `unsafe` fns. This is intended to become 15 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1003-chromium-fix-type-for-inotify.patch: -------------------------------------------------------------------------------- 1 | --- a/base/files/file_path_watcher_inotify.cc 2 | +++ b/base/files/file_path_watcher_inotify.cc 3 | @@ -114,7 +114,7 @@ 4 | class InotifyReader { 5 | public: 6 | // Watch descriptor used by AddWatch() and RemoveWatch(). 7 | -#if BUILDFLAG(IS_ANDROID) 8 | +#if BUILDFLAG(IS_ANDROID) || defined(__TERMUX__) 9 | using Watch = uint32_t; 10 | #else 11 | using Watch = int; 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1008-chromium-no-futimes.patch: -------------------------------------------------------------------------------- 1 | --- a/base/files/file_posix.cc 2 | +++ b/base/files/file_posix.cc 3 | @@ -50,7 +50,7 @@ 4 | } 5 | 6 | int CallFutimes(PlatformFile file, const struct timeval times[2]) { 7 | -#ifdef __USE_XOPEN2K8 8 | +#if defined(__USE_XOPEN2K8) || (defined(__ANDROID__) && __ANDROID_API__ < 26) 9 | // futimens should be available, but futimes might not be 10 | // http://pubs.opengroup.org/onlinepubs/9699919799/ 11 | 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1009-chromium-disable-google-api-warnings.patch: -------------------------------------------------------------------------------- 1 | --- a/chrome/browser/ui/startup/infobar_utils.cc 2 | +++ b/chrome/browser/ui/startup/infobar_utils.cc 3 | @@ -154,7 +154,11 @@ 4 | infobars::ContentInfoBarManager* infobar_manager = 5 | infobars::ContentInfoBarManager::FromWebContents(web_contents); 6 | 7 | +#ifdef __TERMUX__ 8 | + if (0) { 9 | +#else 10 | if (!google_apis::HasAPIKeyConfigured()) { 11 | +#endif 12 | GoogleApiKeysInfoBarDelegate::Create(infobar_manager); 13 | } 14 | 15 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1012-chromium-redefine-termios2.patch: -------------------------------------------------------------------------------- 1 | --- a/services/device/serial/serial_io_handler_posix.cc 2 | +++ b/services/device/serial/serial_io_handler_posix.cc 3 | @@ -16,7 +16,7 @@ 4 | #include "build/build_config.h" 5 | #include "components/device_event_log/device_event_log.h" 6 | 7 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 8 | +#if (BUILDFLAG(IS_LINUX) && !defined(__TERMUX__)) || BUILDFLAG(IS_CHROMEOS) 9 | #include 10 | #include 11 | 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1014-chromium-unity-fix-dynamic-loaded-libraries.patch: -------------------------------------------------------------------------------- 1 | --- a/chrome/browser/download/download_status_updater_linux.cc 2 | +++ b/chrome/browser/download/download_status_updater_linux.cc 3 | @@ -77,6 +77,8 @@ 4 | if (!unity_lib) 5 | unity_lib = dlopen("libunity.so.9", RTLD_LAZY); 6 | if (!unity_lib) 7 | + unity_lib = dlopen("libunity.so", RTLD_LAZY); 8 | + if (!unity_lib) 9 | return; 10 | 11 | unity_inspector_get_default_func inspector_get_default = 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1018-chromium-no-landlock.patch: -------------------------------------------------------------------------------- 1 | --- a/content/app/content_main_runner_impl.cc 2 | +++ b/content/app/content_main_runner_impl.cc 3 | @@ -1059,7 +1059,7 @@ 4 | } 5 | #endif // BUILDFLAG(USE_ZYGOTE) 6 | 7 | -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 8 | +#if (BUILDFLAG(IS_LINUX) && !defined(__TERMUX__)) || BUILDFLAG(IS_CHROMEOS) 9 | if (process_type.empty()) { 10 | // Check if Landlock is supported. 11 | sandbox::policy::SandboxLinux::ReportLandlockStatus(); 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1501-v8-fix-compress-pointer-offset.patch: -------------------------------------------------------------------------------- 1 | --- a/v8/include/v8-internal.h 2 | +++ b/v8/include/v8-internal.h 3 | @@ -242,7 +242,7 @@ 4 | 5 | #ifdef V8_COMPRESS_POINTERS 6 | 7 | -#ifdef V8_TARGET_OS_ANDROID 8 | +#if defined(V8_TARGET_OS_ANDROID) && !defined(__TERMUX__) 9 | // The size of the virtual memory reservation for an external pointer table. 10 | // This determines the maximum number of entries in a table. Using a maximum 11 | // size allows omitting bounds checks on table accesses if the indices are 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1502-v8-reimpl-page-allocator.patch: -------------------------------------------------------------------------------- 1 | --- a/v8/include/v8-platform.h 2 | +++ b/v8/include/v8-platform.h 3 | @@ -925,7 +925,9 @@ 4 | * Allows the embedder to manage memory page allocations. 5 | * Returning nullptr will cause V8 to use the default page allocator. 6 | */ 7 | - virtual PageAllocator* GetPageAllocator() = 0; 8 | + virtual PageAllocator* GetPageAllocator() { 9 | + return nullptr; 10 | + } 11 | 12 | /** 13 | * Allows the embedder to specify a custom allocator used for zones. 14 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1601-angle-no-android-jni.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/angle/src/common/platform.h 2 | +++ b/third_party/angle/src/common/platform.h 3 | @@ -17,7 +17,7 @@ 4 | #elif defined(__APPLE__) 5 | # define ANGLE_PLATFORM_APPLE 1 6 | # define ANGLE_PLATFORM_POSIX 1 7 | -#elif defined(ANDROID) && !defined(ANGLE_ANDROID_DMA_BUF) 8 | +#elif (defined(ANDROID) && !defined(ANGLE_ANDROID_DMA_BUF) && !defined(__TERMUX__)) 9 | # define ANGLE_PLATFORM_ANDROID 1 10 | # define ANGLE_PLATFORM_POSIX 1 11 | #elif defined(__ggp__) 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/1701-swiftshader-no-spawn.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h 2 | +++ b/third_party/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/Config/config.h 3 | @@ -166,7 +166,7 @@ 4 | #define HAVE_POSIX_FALLOCATE 1 5 | 6 | /* Define to 1 if you have the `posix_spawn' function. */ 7 | -#define HAVE_POSIX_SPAWN 1 8 | +/* #define HAVE_POSIX_SPAWN 1 */ 9 | 10 | /* Define to 1 if you have the `pread' function. */ 11 | #define HAVE_PREAD 1 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/2001-weston-memfd_create.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/weston/src/shared/os-compatibility.c 2 | +++ b/third_party/weston/src/shared/os-compatibility.c 3 | @@ -38,6 +38,11 @@ 4 | 5 | #include "os-compatibility.h" 6 | 7 | +#if defined(__ANDROID__) && __ANDROID_API__ < 26 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | #define READONLY_SEALS (F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE) 13 | 14 | int 15 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/2003-wayland-memfd_create.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/wayland/src/cursor/os-compatibility.c 2 | +++ b/third_party/wayland/src/cursor/os-compatibility.c 3 | @@ -42,6 +42,11 @@ 4 | 5 | #include "os-compatibility.h" 6 | 7 | +#if defined(__ANDROID__) && __ANDROID_API__ < 26 8 | +#include 9 | +#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) 10 | +#endif 11 | + 12 | #ifndef HAVE_MKOSTEMP 13 | static int 14 | set_cloexec_or_close(int fd) 15 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/2009-cpuinfo-android-arm.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/cpuinfo/src/src/arm/linux/init.c 2 | +++ b/third_party/cpuinfo/src/src/arm/linux/init.c 3 | @@ -14,6 +14,10 @@ 4 | #include 5 | #include 6 | 7 | +#ifdef __TERMUX__ 8 | +#include 9 | +#endif 10 | + 11 | struct cpuinfo_arm_isa cpuinfo_isa = {0}; 12 | 13 | static struct cpuinfo_package package = {{0}}; 14 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/2010-dav1d-no-get-affinity.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/dav1d/libdav1d/src/cpu.c 2 | +++ b/third_party/dav1d/libdav1d/src/cpu.c 3 | @@ -91,7 +91,7 @@ 4 | GetNativeSystemInfo(&system_info); 5 | return system_info.dwNumberOfProcessors; 6 | #endif 7 | -#elif HAVE_PTHREAD_GETAFFINITY_NP && defined(CPU_COUNT) 8 | +#elif HAVE_PTHREAD_GETAFFINITY_NP && defined(CPU_COUNT) && !defined(__ANDROID__) 9 | cpu_set_t affinity; 10 | if (!pthread_getaffinity_np(pthread_self(), sizeof(affinity), &affinity)) 11 | return CPU_COUNT(&affinity); 12 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/cr-patches/8001-material_color_utilities-include-cmath.patch: -------------------------------------------------------------------------------- 1 | --- a/third_party/material_color_utilities/src/cpp/utils/utils.h 2 | +++ b/third_party/material_color_utilities/src/cpp/utils/utils.h 3 | @@ -18,6 +18,7 @@ 4 | #define CPP_UTILS_UTILS_H_ 5 | 6 | #include 7 | +#include 8 | #include 9 | 10 | namespace material_color_utilities { 11 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/electron-patches/9001-electron-getversion-from-file.patch: -------------------------------------------------------------------------------- 1 | We pass `--no-history` to gclient, so there will be no version for electron. 2 | --- a/electron/script/get-git-version.py 3 | +++ b/electron/script/get-git-version.py 4 | @@ -20,7 +20,7 @@ 5 | 6 | try: 7 | output = subprocess.check_output( 8 | - ['git', 'describe', '--tags', '--abbrev=0'], 9 | + ['cat', 'ELECTRON_VERSION'], 10 | cwd=os.path.abspath(os.path.join(os.path.dirname(__file__), '..')), 11 | stderr=subprocess.PIPE, 12 | universal_newlines=True) 13 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/toolchain-template/host-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | import("//build/config/sysroot.gni") 2 | import("//build/toolchain/gcc_toolchain.gni") 3 | 4 | gcc_toolchain("host") { 5 | cc = "@HOST_CC@" 6 | cxx = "@HOST_CXX@" 7 | ld = "@HOST_LD@" 8 | ar = "@HOST_AR@" 9 | nm = "@HOST_NM@" 10 | toolchain_args = { 11 | current_os = "linux" 12 | current_cpu = "x64" 13 | v8_current_cpu = "@V8_CURRENT_CPU@" 14 | is_clang = @HOST_IS_CLANG@ 15 | sysroot = "@HOST_SYSROOT@" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tur/electron-jumbo-host-tools/toolchain-template/v8-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | gcc_toolchain("@V8_TOOLCHAIN_NAME@") { 2 | cc = "@V8_CC@" 3 | cxx = "@V8_CXX@" 4 | ld = "@V8_LD@" 5 | ar = "@V8_AR@" 6 | nm = "@V8_NM@" 7 | toolchain_args = { 8 | current_os = "linux" 9 | current_cpu = "@V8_CURRENT_CPU@" 10 | v8_current_cpu = "@V8_V8_CURRENT_CPU@" 11 | is_clang = @V8_IS_CLANG@ 12 | sysroot = "@V8_SYSROOT@" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tur/electron-jumbo/third_party_override/swiftshader/src/Vulkan/vulkan.gni: -------------------------------------------------------------------------------- 1 | swiftshader_icd_file_name = "vk_swiftshader_icd.json" 2 | -------------------------------------------------------------------------------- /tur/electron-jumbo/toolchain-template/host-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | import("//build/config/sysroot.gni") 2 | import("//build/toolchain/gcc_toolchain.gni") 3 | 4 | gcc_toolchain("host") { 5 | cc = "@HOST_CC@" 6 | cxx = "@HOST_CXX@" 7 | ld = "@HOST_LD@" 8 | ar = "@HOST_AR@" 9 | nm = "@HOST_NM@" 10 | toolchain_args = { 11 | current_os = "linux" 12 | current_cpu = "x64" 13 | v8_current_cpu = "@V8_CURRENT_CPU@" 14 | is_clang = @HOST_IS_CLANG@ 15 | sysroot = "@HOST_SYSROOT@" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tur/electron-jumbo/toolchain-template/v8-toolchain.gn.in: -------------------------------------------------------------------------------- 1 | gcc_toolchain("@V8_TOOLCHAIN_NAME@") { 2 | cc = "@V8_CC@" 3 | cxx = "@V8_CXX@" 4 | ld = "@V8_LD@" 5 | ar = "@V8_AR@" 6 | nm = "@V8_NM@" 7 | toolchain_args = { 8 | current_os = "linux" 9 | current_cpu = "@V8_CURRENT_CPU@" 10 | v8_current_cpu = "@V8_V8_CURRENT_CPU@" 11 | is_clang = @V8_IS_CLANG@ 12 | sysroot = "@V8_SYSROOT@" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tur/ffmpeg5.1/enable-soname-version.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -5466,9 +5466,6 @@ 4 | enable section_data_rel_ro 5 | add_cflags -fPIE 6 | add_ldexeflags -fPIE -pie 7 | - SLIB_INSTALL_NAME='$(SLIBNAME)' 8 | - SLIB_INSTALL_LINKS= 9 | - SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)' 10 | ;; 11 | haiku) 12 | prefix_default="/boot/common" 13 | -------------------------------------------------------------------------------- /tur/ffmpeg7/enable-soname-version.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -5466,9 +5466,6 @@ 4 | enable section_data_rel_ro 5 | add_cflags -fPIE 6 | add_ldexeflags -fPIE -pie 7 | - SLIB_INSTALL_NAME='$(SLIBNAME)' 8 | - SLIB_INSTALL_LINKS= 9 | - SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)' 10 | ;; 11 | haiku) 12 | prefix_default="/boot/common" 13 | -------------------------------------------------------------------------------- /tur/gcc-11/0107-ada-properly-use-CPUSET.patch: -------------------------------------------------------------------------------- 1 | --- a/gcc/ada/adaint.c 2 | +++ b/gcc/ada/adaint.c 3 | @@ -3441,7 +3441,7 @@ 4 | } 5 | #endif 6 | 7 | -#if defined (__linux__) 8 | +#if defined (__linux__) || defined (__ANDROID__) 9 | #include 10 | 11 | /* glibc versions earlier than 2.7 do not define the routines to handle 12 | -------------------------------------------------------------------------------- /tur/gcc-11/0108-ada-dummy-gnat_has_cap_sys_nice.patch: -------------------------------------------------------------------------------- 1 | --- a/gcc/ada/sysdep.c 2 | +++ b/gcc/ada/sysdep.c 3 | @@ -1013,6 +1013,12 @@ 4 | 5 | #ifdef __ANDROID__ 6 | 7 | +int 8 | +__gnat_has_cap_sys_nice () { 9 | + // Stub 10 | + return 0; 11 | +} 12 | + 13 | /* Provide extern symbols for sig* as needed by the tasking run-time, instead 14 | of static inline functions. */ 15 | 16 | -------------------------------------------------------------------------------- /tur/gcc-13/0010-fix-ginclude-limits.h.patch: -------------------------------------------------------------------------------- 1 | --- a/gcc/Makefile.in 2 | +++ b/gcc/Makefile.in 3 | @@ -553,7 +553,7 @@ 4 | STMP_FIXINC = @STMP_FIXINC@ 5 | 6 | # Test to see whether exists in the system header files. 7 | -LIMITS_H_TEST = [ -f $(BUILD_SYSTEM_HEADER_DIR)/limits.h ] 8 | +LIMITS_H_TEST = [ -e /dev/null ] 9 | 10 | # Directory for prefix to system directories, for 11 | # each of $(system_prefix)/usr/include, $(system_prefix)/usr/lib, etc. 12 | -------------------------------------------------------------------------------- /tur/gcc-14/0009-fix-ginclude-limits.h.patch: -------------------------------------------------------------------------------- 1 | --- a/gcc/Makefile.in 2 | +++ b/gcc/Makefile.in 3 | @@ -553,7 +553,7 @@ 4 | STMP_FIXINC = @STMP_FIXINC@ 5 | 6 | # Test to see whether exists in the system header files. 7 | -LIMITS_H_TEST = [ -f $(BUILD_SYSTEM_HEADER_DIR)/limits.h ] 8 | +LIMITS_H_TEST = [ -e /dev/null ] 9 | 10 | # Directory for prefix to system directories, for 11 | # each of $(system_prefix)/usr/include, $(system_prefix)/usr/lib, etc. 12 | -------------------------------------------------------------------------------- /tur/gcc-15/0009-fix-ginclude-limits.h.patch: -------------------------------------------------------------------------------- 1 | --- a/gcc/Makefile.in 2 | +++ b/gcc/Makefile.in 3 | @@ -553,7 +553,7 @@ 4 | STMP_FIXINC = @STMP_FIXINC@ 5 | 6 | # Test to see whether exists in the system header files. 7 | -LIMITS_H_TEST = [ -f $(BUILD_SYSTEM_HEADER_DIR)/limits.h ] 8 | +LIMITS_H_TEST = [ -e /dev/null ] 9 | 10 | # Directory for prefix to system directories, for 11 | # each of $(system_prefix)/usr/include, $(system_prefix)/usr/lib, etc. 12 | -------------------------------------------------------------------------------- /tur/go-moreutils/0001-use-go-flags-from-env.patch: -------------------------------------------------------------------------------- 1 | --- a/build.sh 2 | +++ b/build.sh 3 | @@ -14,8 +14,6 @@ 4 | # default output bin name 5 | # use `go tool dist list` to see all platform and architecture options (*Note* that some tools will currently not build outside of linux) 6 | bin="$SCRIPT_DIR/bin" 7 | -GOOS=linux 8 | -GOARCH=amd64 9 | 10 | export GOOS 11 | export GOARCH 12 | -------------------------------------------------------------------------------- /tur/hare/cross_setup.sh: -------------------------------------------------------------------------------- 1 | . "$TERMUX_PREFIX/opt/qbe/cross/setup.sh" 2 | . "$TERMUX_PREFIX/opt/harec/cross/setup.sh" 3 | 4 | if [ "$TERMUX_ON_DEVICE_BUILD" = true ]; then 5 | export HARE="hare" 6 | return 7 | fi 8 | 9 | bin_dir="$TERMUX_PREFIX/opt/hare/cross/bin" 10 | export PATH="${bin_dir}:$PATH" 11 | export HARE="${bin_dir}/hare" 12 | -------------------------------------------------------------------------------- /tur/hare/hare-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Hare for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/hare/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/harec/cross_setup.sh: -------------------------------------------------------------------------------- 1 | if [ "$TERMUX_ON_DEVICE_BUILD" = true ]; then 2 | export HAREC="harec" 3 | return 4 | fi 5 | 6 | bin_dir="$TERMUX_PREFIX/opt/harec/cross/bin" 7 | export PATH="${bin_dir}:$PATH" 8 | export HAREC="${bin_dir}/harec" 9 | -------------------------------------------------------------------------------- /tur/harec/harec-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Hare bootstrap compiler for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/harec/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/hurl/0001-libxml2-ErrorFunc.patch: -------------------------------------------------------------------------------- 1 | https://github.com/Orange-OpenSource/hurl/commit/7c7b410c3017aeab0dfc74a6144e4cb8e186a10a 2 | 3 | --- a/packages/hurl/src/runner/xpath.rs 4 | +++ b/packages/hurl/src/runner/xpath.rs 5 | @@ -168,7 +168,7 @@ 6 | 7 | // libxml2 prints to stdout warning and errors, so we mut it. 8 | unsafe { 9 | - libxml::bindings::initGenericErrorDefaultFunc(&mut Some(silentErrorFunc)); 10 | + libxml::bindings::xmlSetGenericErrorFunc(ptr::null_mut(), Some(silentErrorFunc)); 11 | } 12 | 13 | if support_ns { 14 | -------------------------------------------------------------------------------- /tur/lensfun/0001-python-options.patch: -------------------------------------------------------------------------------- 1 | --- a/apps/CMakeLists.txt 2 | +++ b/apps/CMakeLists.txt 3 | @@ -21,6 +21,7 @@ 4 | 5 | # Inspired by http://bloerg.net/2012/11/10/cmake-and-distutils.html 6 | 7 | +IF(INSTALL_PYTHON_MODULE) 8 | FIND_PROGRAM(PYTHON "python3") 9 | IF(PYTHON) 10 | SET(SETUP_PY_IN "${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in") 11 | @@ -44,3 +45,4 @@ 12 | ENDIF() 13 | INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}${SETUP_PY_INSTALL_PREFIX})") 14 | ENDIF(PYTHON) 15 | +ENDIF(INSTALL_PYTHON_MODULE) 16 | -------------------------------------------------------------------------------- /tur/libcmis/0002-boost-1.87.patch: -------------------------------------------------------------------------------- 1 | --- a/src/libcmis/xml-utils.cxx 2 | +++ b/src/libcmis/xml-utils.cxx 3 | @@ -536,7 +536,7 @@ 4 | sha1.process_bytes( str.c_str(), str.size() ); 5 | 6 | unsigned int digest[5]; 7 | - sha1.get_digest( digest ); 8 | + sha1.get_digest( reinterpret_cast(digest) ); 9 | 10 | stringstream out; 11 | // Setup writing mode. Every number must produce eight 12 | -------------------------------------------------------------------------------- /tur/libdicom/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://libdicom.readthedocs.io 2 | TERMUX_PKG_DESCRIPTION="C library for reading DICOM files" 3 | TERMUX_PKG_LICENSE="MIT" 4 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 5 | TERMUX_PKG_VERSION="1.2.0" 6 | TERMUX_PKG_SRCURL=https://github.com/ImagingDataCommons/libdicom/releases/download/v$TERMUX_PKG_VERSION/libdicom-$TERMUX_PKG_VERSION.tar.xz 7 | TERMUX_PKG_SHA256=3b8c05ceb6bf667fed997f23b476dd32c3dc6380eee1998185c211d86a7b4918 8 | TERMUX_PKG_AUTO_UPDATE=true 9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" 10 | -Dtests=false 11 | " 12 | -------------------------------------------------------------------------------- /tur/libe-book/0001-TRUE-def.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/lib/EBOOKCharsetConverter.cpp b/src/lib/EBOOKCharsetConverter.cpp 2 | index 0d85fa3..3492140 100644 3 | --- a/src/lib/EBOOKCharsetConverter.cpp 4 | +++ b/src/lib/EBOOKCharsetConverter.cpp 5 | @@ -9,6 +9,10 @@ 6 | 7 | #include 8 | #include 9 | +#ifdef __TERMUX__ 10 | +#define TRUE 1 11 | +#define FALSE 0 12 | +#endif 13 | 14 | #include 15 | 16 | -------------------------------------------------------------------------------- /tur/libetonyek/0001-mdds-3.0.patch: -------------------------------------------------------------------------------- 1 | --- a/src/lib/IWORKTable.cpp 2 | +++ b/src/lib/IWORKTable.cpp 3 | @@ -168,7 +168,7 @@ 4 | 5 | void writeBorder(librevenge::RVNGPropertyList &props, const char *name, IWORKGridLine_t &line, unsigned index) 6 | { 7 | - if (!line.is_tree_valid()) 8 | + if (!line.valid_tree()) 9 | line.build_tree(); 10 | 11 | IWORKStylePtr_t style; 12 | -------------------------------------------------------------------------------- /tur/libftgl2/0001-upstream-bf07517ded4704be37eef39b758b5206fc6f4f0d.patch: -------------------------------------------------------------------------------- 1 | --- a/docs/projects_using_ftgl.txt 2 | +++ b/docs/projects_using_ftgl.txt 3 | @@ -154,7 +154,7 @@ Projects are listed in alphabetical order. 4 | Duel (http://www.personal.rdg.ac.uk/~sir03me/play/code.html) is a small 5 | overhead perspective spaceship game. 6 | 7 | -\subsection emptyclip EMAN2 8 | +\subsection eman2 EMAN2 9 | 10 | EMAN2 (http://blake.bcm.tmc.edu/eman/eman2/) is a suite of 11 | scientific image processing tools aimed primarily at the 12 | -------------------------------------------------------------------------------- /tur/libftgl2/0002-upstream-835f2ba7911a6c15a1a314d5e3267fa089b5a319.patch: -------------------------------------------------------------------------------- 1 | --- a/src/CMakeLists.txt 2 | +++ b/src/CMakeLists.txt 3 | @@ -26,7 +26,6 @@ SET(libftgl_la_SOURCES 4 | FTGlyphContainer.h 5 | FTInternals.h 6 | FTLibrary.cpp 7 | - FTLibrary.h 8 | FTList.h 9 | FTPoint.cpp 10 | FTSize.cpp 11 | -------------------------------------------------------------------------------- /tur/libftgl2/0007-no-eps.patch: -------------------------------------------------------------------------------- 1 | Index: ftgl-2.4.0/docs/Makefile.am 2 | =================================================================== 3 | --- ftgl-2.4.0.orig/docs/Makefile.am 4 | +++ ftgl-2.4.0/docs/Makefile.am 5 | @@ -26,7 +26,7 @@ endif 6 | touch $@ 7 | 8 | html/doxygen.css: stamp-doxygen 9 | -stamp-doxygen: doxygen.cfg stamp-eps 10 | +stamp-doxygen: doxygen.cfg 11 | $(DOXYGEN) $^ 12 | for file in html/*html; do \ 13 | $(SED) -e 's/%FTGL/FTGL/' < $$file > $$file.tmp; \ 14 | -------------------------------------------------------------------------------- /tur/libftgl2/0008-soversion-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -6,7 +6,7 @@ 4 | SET(VERSION_SERIES 2) 5 | SET(VERSION_MAJOR 4) 6 | SET(VERSION_MINOR 0) 7 | -SET(FTGL_SOVERSION 1) 8 | +SET(FTGL_SOVERSION 2) 9 | 10 | FIND_PACKAGE(Freetype REQUIRED) # if it fails, check this: https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/826988 11 | FIND_PACKAGE(OpenGL REQUIRED) 12 | -------------------------------------------------------------------------------- /tur/libiptcdata/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://libiptcdata.sourceforge.net/ 2 | TERMUX_PKG_DESCRIPTION="a C library for manipulating the IPTC metadata stored within multimedia files" 3 | TERMUX_PKG_LICENSE="LGPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 5 | TERMUX_PKG_VERSION="1.0.4" 6 | TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/libiptcdata/libiptcdata/libiptcdata-${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=79f63b8ce71ee45cefd34efbb66e39a22101443f4060809b8fc29c5eebdcee0e 8 | -------------------------------------------------------------------------------- /tur/libllvm-14/llvm-14.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE=" 2 | opt/libllvm-14/bin/bugpoint 3 | opt/libllvm-14/bin/dsymutil 4 | opt/libllvm-14/bin/llc 5 | opt/libllvm-14/bin/lli 6 | opt/libllvm-14/bin/llvm* 7 | opt/libllvm-14/bin/obj2yaml 8 | opt/libllvm-14/bin/opt 9 | opt/libllvm-14/bin/sancov 10 | opt/libllvm-14/bin/sanstats 11 | opt/libllvm-14/bin/verify-uselistorder 12 | opt/libllvm-14/bin/yaml2obj 13 | opt/libllvm-14/share/opt-viewer 14 | " 15 | TERMUX_SUBPKG_DESCRIPTION="LLVM modular compiler and toolchain executables" 16 | -------------------------------------------------------------------------------- /tur/libllvm-14/llvm-include-llvm-ADT-SmallVector.h.patch: -------------------------------------------------------------------------------- 1 | --- a/llvm/include/llvm/ADT/SmallVector.h 2 | +++ b/llvm/include/llvm/ADT/SmallVector.h 3 | @@ -735,6 +735,10 @@ 4 | return(N); 5 | } 6 | 7 | +#ifdef CS 8 | +#undef CS 9 | +#endif 10 | + 11 | iterator erase(const_iterator CS, const_iterator CE) { 12 | // Just cast away constness because this is a non-const member function. 13 | iterator S = const_cast(CS); 14 | -------------------------------------------------------------------------------- /tur/libllvm-15/clang-lib-Driver-ToolChain.cpp.patch: -------------------------------------------------------------------------------- 1 | diff -uNr a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp 2 | --- a/clang/lib/Driver/ToolChain.cpp 3 | +++ b/clang/lib/Driver/ToolChain.cpp 4 | @@ -632,7 +632,7 @@ 5 | 6 | switch (Type) { 7 | case ToolChain::CST_Libcxx: 8 | - CmdArgs.push_back("-lc++"); 9 | + CmdArgs.push_back("-lc++_shared"); 10 | if (Args.hasArg(options::OPT_fexperimental_library)) 11 | CmdArgs.push_back("-lc++experimental"); 12 | break; 13 | -------------------------------------------------------------------------------- /tur/libllvm-15/llvm-15.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE=" 2 | opt/libllvm-15/bin/bugpoint 3 | opt/libllvm-15/bin/dsymutil 4 | opt/libllvm-15/bin/llc 5 | opt/libllvm-15/bin/lli 6 | opt/libllvm-15/bin/llvm* 7 | opt/libllvm-15/bin/obj2yaml 8 | opt/libllvm-15/bin/opt 9 | opt/libllvm-15/bin/sancov 10 | opt/libllvm-15/bin/sanstats 11 | opt/libllvm-15/bin/verify-uselistorder 12 | opt/libllvm-15/bin/yaml2obj 13 | opt/libllvm-15/share/opt-viewer 14 | " 15 | TERMUX_SUBPKG_DESCRIPTION="LLVM modular compiler and toolchain executables" 16 | -------------------------------------------------------------------------------- /tur/libllvm-15/llvm-include-llvm-ADT-SmallVector.h.patch: -------------------------------------------------------------------------------- 1 | --- a/llvm/include/llvm/ADT/SmallVector.h 2 | +++ b/llvm/include/llvm/ADT/SmallVector.h 3 | @@ -735,6 +735,10 @@ 4 | return(N); 5 | } 6 | 7 | +#ifdef CS 8 | +#undef CS 9 | +#endif 10 | + 11 | iterator erase(const_iterator CS, const_iterator CE) { 12 | // Just cast away constness because this is a non-const member function. 13 | iterator S = const_cast(CS); 14 | -------------------------------------------------------------------------------- /tur/libllvm-16/clang-lib-Driver-ToolChain.cpp.patch: -------------------------------------------------------------------------------- 1 | --- a/clang/lib/Driver/ToolChain.cpp 2 | +++ b/clang/lib/Driver/ToolChain.cpp 3 | @@ -1010,7 +1010,7 @@ 4 | 5 | switch (Type) { 6 | case ToolChain::CST_Libcxx: 7 | - CmdArgs.push_back("-lc++"); 8 | + CmdArgs.push_back("-lc++_shared"); 9 | if (Args.hasArg(options::OPT_fexperimental_library)) 10 | CmdArgs.push_back("-lc++experimental"); 11 | break; 12 | -------------------------------------------------------------------------------- /tur/libllvm-16/lld-16.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE=" 2 | bin/lld-16 3 | bin/ld.lld-16 4 | $_INSTALL_PREFIX_R/bin/ld.lld 5 | $_INSTALL_PREFIX_R/bin/ld64.lld 6 | $_INSTALL_PREFIX_R/bin/lld 7 | $_INSTALL_PREFIX_R/bin/lld-16 8 | $_INSTALL_PREFIX_R/bin/lld-link 9 | $_INSTALL_PREFIX_R/bin/wasm-ld 10 | $_INSTALL_PREFIX_R/include/lld/ 11 | $_INSTALL_PREFIX_R/lib/cmake/lld/ 12 | $_INSTALL_PREFIX_R/lib/liblld*.a 13 | " 14 | TERMUX_SUBPKG_DESCRIPTION="LLVM-based linker" 15 | -------------------------------------------------------------------------------- /tur/libllvm-16/llvm-tools-16.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE=" 2 | $_INSTALL_PREFIX/bin/FileCheck 3 | $_INSTALL_PREFIX/bin/count 4 | $_INSTALL_PREFIX/bin/lli-child-target 5 | $_INSTALL_PREFIX/bin/llvm-PerfectShuffle 6 | $_INSTALL_PREFIX/bin/llvm-jitlink-executor 7 | $_INSTALL_PREFIX/bin/not 8 | $_INSTALL_PREFIX/bin/obj2yaml 9 | $_INSTALL_PREFIX/bin/yaml2obj 10 | $_INSTALL_PREFIX/bin/yaml-bench 11 | $_INSTALL_PREFIX/share/man/man1/FileCheck.1.gz 12 | " 13 | TERMUX_SUBPKG_DESCRIPTION="LLVM Development Tools" 14 | TERMUX_SUBPKG_DEPENDS="libc++, ncurses, zlib" 15 | -------------------------------------------------------------------------------- /tur/libllvm-16/mlir-16.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE=" 2 | $_INSTALL_PREFIX_R/bin/mlir-* 3 | $_INSTALL_PREFIX_R/include/mlir* 4 | $_INSTALL_PREFIX_R/lib/cmake/mlir/ 5 | $_INSTALL_PREFIX_R/lib/libMLIR.so 6 | $_INSTALL_PREFIX_R/lib/libmlir*so 7 | " 8 | TERMUX_SUBPKG_DESCRIPTION="A Multi-Level Intermediate Representation for compilers from LLVM" 9 | TERMUX_SUBPKG_DEPENDS="libc++, ncurses" 10 | -------------------------------------------------------------------------------- /tur/libllvm-16/openmp-config-ix-m32.patch: -------------------------------------------------------------------------------- 1 | --- a/openmp/runtime/cmake/config-ix.cmake 2019-04-04 21:32:58.195143957 +0000 2 | +++ b/openmp/runtime/cmake/config-ix.cmake 2019-04-04 21:33:43.999700683 +0000 3 | @@ -71,7 +71,6 @@ 4 | check_c_compiler_flag(-msse2 LIBOMP_HAVE_MSSE2_FLAG) 5 | check_c_compiler_flag(-ftls-model=initial-exec LIBOMP_HAVE_FTLS_MODEL_FLAG) 6 | libomp_check_architecture_flag(-mmic LIBOMP_HAVE_MMIC_FLAG) 7 | -libomp_check_architecture_flag(-m32 LIBOMP_HAVE_M32_FLAG) 8 | if(WIN32) 9 | if(MSVC) 10 | # Check Windows MSVC style flags. 11 | -------------------------------------------------------------------------------- /tur/libllvm-codon/llvm-include-llvm-ADT-SmallVector.h.patch: -------------------------------------------------------------------------------- 1 | --- a/llvm/include/llvm/ADT/SmallVector.h 2 | +++ b/llvm/include/llvm/ADT/SmallVector.h 3 | @@ -735,6 +735,10 @@ 4 | return(N); 5 | } 6 | 7 | +#ifdef CS 8 | +#undef CS 9 | +#endif 10 | + 11 | iterator erase(const_iterator CS, const_iterator CE) { 12 | // Just cast away constness because this is a non-const member function. 13 | iterator S = const_cast(CS); 14 | -------------------------------------------------------------------------------- /tur/libmongocrypt/0001-android-no-dlinfo.patch: -------------------------------------------------------------------------------- 1 | --- a/src/os_posix/os_dll.c 2 | +++ b/src/os_posix/os_dll.c 3 | @@ -101,7 +101,7 @@ 4 | return true; 5 | } 6 | 7 | -#elif defined(__linux__) || defined(__FreeBSD__) 8 | +#elif (defined(__linux__) && !defined(__ANDROID__)) || defined(__FreeBSD__) 9 | 10 | #include 11 | 12 | -------------------------------------------------------------------------------- /tur/libspnav/makefile.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.in 2 | +++ b/Makefile.in 3 | @@ -5,8 +5,8 @@ 4 | name = spnav 5 | lib_a = lib$(name).a 6 | 7 | -incpaths = -I. -I/usr/local/include -I/usr/X11R6/include -I/opt/homebrew/include 8 | -libpaths = -L/usr/local/lib -L/usr/X11R6/lib -L/opt/homebrew/lib 9 | +incpaths = -I. -I@TERMUX_PREFIX@/include 10 | +libpaths = -L@TERMUX_PREFIX@/lib 11 | 12 | CC ?= gcc 13 | AR ?= ar 14 | -------------------------------------------------------------------------------- /tur/meli/0001-disable-dbus.patch: -------------------------------------------------------------------------------- 1 | --- a/meli/Cargo.toml 2 | +++ b/meli/Cargo.toml 3 | @@ -69,7 +69,7 @@ 4 | optional = true 5 | 6 | [features] 7 | -default = ["sqlite3", "notmuch", "smtp", "dbus-notifications", "gpgme", "cli-docs", "jmap", "static"] 8 | +default = ["sqlite3", "notmuch", "smtp", "gpgme", "cli-docs", "jmap"] 9 | notmuch = ["melib/notmuch"] 10 | jmap = ["melib/jmap"] 11 | sqlite3 = ["melib/sqlite3"] 12 | -------------------------------------------------------------------------------- /tur/meli/0002-use-system-libsqlite.patch: -------------------------------------------------------------------------------- 1 | --- a/melib/Cargo.toml 2 | +++ b/melib/Cargo.toml 3 | @@ -73,7 +73,7 @@ 4 | notmuch = ["notify"] 5 | smtp = ["tls", "base64"] 6 | smtp-trace = ["smtp"] 7 | -sqlite3 = ["sqlite3-static"] 8 | +sqlite3 = ["rusqlite", "rusqlite/buildtime_bindgen"] 9 | sqlite3-static = ["rusqlite", "rusqlite/bundled-full"] 10 | tls = ["native-tls"] 11 | tls-static = ["tls", "native-tls/vendored"] 12 | -------------------------------------------------------------------------------- /tur/mesa-zink/0010-fix-xmlconfig.patch: -------------------------------------------------------------------------------- 1 | We'd like to use the hardcoded configurations for mesa. Upstream has added an option `xmlconfig`. 2 | 3 | --- a/src/util/xmlconfig.h 4 | +++ b/src/util/xmlconfig.h 5 | @@ -39,7 +39,7 @@ 6 | extern "C" { 7 | #endif 8 | 9 | -#if defined(ANDROID) || defined(_WIN32) 10 | +#if 1 11 | #define WITH_XMLCONFIG 0 12 | #else 13 | #define WITH_XMLCONFIG 1 14 | -------------------------------------------------------------------------------- /tur/mesa-zink/0011-freedreno-kgsl-no-wsi.patch: -------------------------------------------------------------------------------- 1 | Freedrenot with KGSL will never support WSI, so do not compile these files. 2 | 3 | --- a/src/freedreno/vulkan/meson.build 4 | +++ b/src/freedreno/vulkan/meson.build 5 | @@ -70,7 +70,7 @@ 6 | tu_wsi = true 7 | endif 8 | 9 | -if system_has_kms_drm and not with_platform_android 10 | +if system_has_kms_drm and not with_platform_android and not with_freedreno_kgsl 11 | libtu_files += files('tu_wsi_display.c') 12 | tu_wsi = true 13 | endif 14 | -------------------------------------------------------------------------------- /tur/mesa-zink/0013-vtest-socket-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/virtio/vtest/vtest_protocol.h 2 | +++ b/src/virtio/vtest/vtest_protocol.h 3 | @@ -25,7 +25,7 @@ 4 | #ifndef VTEST_PROTOCOL 5 | #define VTEST_PROTOCOL 6 | 7 | -#define VTEST_DEFAULT_SOCKET_NAME "/tmp/.virgl_test" 8 | +#define VTEST_DEFAULT_SOCKET_NAME "@TERMUX_PREFIX@/tmp/.virgl_test" 9 | 10 | #ifdef VIRGL_RENDERER_UNSTABLE_APIS 11 | #define VTEST_PROTOCOL_VERSION 3 12 | -------------------------------------------------------------------------------- /tur/mesa-zink/0015-meson.build.patch: -------------------------------------------------------------------------------- 1 | --- a/meson.build 2 | +++ b/meson.build 3 | @@ -1377,7 +1377,7 @@ 4 | endif 5 | endif 6 | 7 | -foreach h : ['xlocale.h', 'linux/futex.h', 'endian.h', 'dlfcn.h', 'sys/shm.h', 'cet.h', 'pthread_np.h'] 8 | +foreach h : ['linux/futex.h', 'endian.h', 'dlfcn.h', 'sys/shm.h', 'cet.h', 'pthread_np.h'] 9 | if cc.check_header(h) 10 | pre_args += '-DHAVE_@0@'.format(h.to_upper().underscorify()) 11 | endif 12 | -------------------------------------------------------------------------------- /tur/mesa-zink/0016-fix-for-anon-file.patch: -------------------------------------------------------------------------------- 1 | Fallback to `@TERMUX_PREFIX@/tmp` if env `XDG_RUNTIME_DIR` is not set. 2 | 3 | --- a/src/util/anon_file.c 4 | +++ b/src/util/anon_file.c 5 | @@ -136,6 +136,11 @@ 6 | char *name; 7 | 8 | path = getenv("XDG_RUNTIME_DIR"); 9 | +#ifdef __TERMUX__ 10 | + if (!path) { 11 | + path = "@TERMUX_PREFIX@/tmp"; 12 | + } 13 | +#endif 14 | if (!path) { 15 | errno = ENOENT; 16 | return -1; 17 | -------------------------------------------------------------------------------- /tur/mesa-zink/cmake-wrapper.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e CMakeLists.txt ]; then 4 | sed -i '1s|^|project(foo LANGUAGES C CXX)\n|' CMakeLists.txt 5 | fi 6 | 7 | for f in "$@"; do 8 | case "${f}" in 9 | -DCMAKE_TOOLCHAIN_FILE=* ) 10 | sed -i "${f#-DCMAKE_TOOLCHAIN_FILE=}" \ 11 | -e 's|\(set(CMAKE_SYSTEM_NAME\) "Android")|\1 "Linux")|g' 12 | ;; 13 | esac 14 | done 15 | 16 | exec @CMAKE@ "$@" 17 | -------------------------------------------------------------------------------- /tur/mesa-zink/mesa-zink-dev.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Mesa's OpenGL headers" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT="no" 3 | TERMUX_SUBPKG_DEPENDS="libglvnd-dev" 4 | TERMUX_SUBPKG_BREAKS="mesa (<< 22.3.3-2), ndk-sysroot (<< 25b-3), mesa-dev" 5 | TERMUX_SUBPKG_REPLACES="mesa (<< 22.3.3-2), ndk-sysroot (<< 25b-3), mesa-dev" 6 | TERMUX_SUBPKG_PROVIDES="mesa-dev" 7 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 8 | TERMUX_SUBPKG_INCLUDE=" 9 | include/GL/!(osmesa.h) 10 | include/EGL/ 11 | include/gbm.h 12 | " 13 | -------------------------------------------------------------------------------- /tur/mesa-zink/mesa-zink-vulkan-icd-freedreno.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Mesa's Freedreno Vulkan ICD" 2 | TERMUX_SUBPKG_DEPENDS="vulkan-loader-generic" 3 | TERMUX_SUBPKG_INCLUDE=" 4 | lib/libvulkan_freedreno.so 5 | share/vulkan/icd.d/freedreno_icd.*.json 6 | " 7 | -------------------------------------------------------------------------------- /tur/mesa-zink/mesa-zink-vulkan-icd-swrast.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Mesa's Swrast Vulkan ICD" 2 | TERMUX_SUBPKG_DEPENDS="vulkan-loader-generic" 3 | TERMUX_SUBPKG_INCLUDE=" 4 | lib/libvulkan_lvp.so 5 | share/vulkan/icd.d/lvp_icd.*.json 6 | " 7 | -------------------------------------------------------------------------------- /tur/mesa-zink/osmesa-zink.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE=" 2 | include/GL/osmesa.h 3 | lib/libOSMesa.so 4 | lib/pkgconfig/osmesa.pc 5 | " 6 | TERMUX_SUBPKG_DESCRIPTION="Mesa Off-screen Rendering Library" 7 | TERMUX_SUBPKG_BREAKS="mesa (<< 22.3.1), osmesa" 8 | TERMUX_SUBPKG_REPLACES="mesa (<< 22.3.1), osmesa" 9 | TERMUX_SUBPKG_PROVIDES="osmesa" 10 | -------------------------------------------------------------------------------- /tur/moarvm/0001-no-pthread_yield.patch: -------------------------------------------------------------------------------- 1 | --- a/build/probe.pm 2 | +++ b/build/probe.pm 3 | @@ -1008,6 +1008,13 @@ 4 | 5 | sub pthread_yield { 6 | my ($config) = @_; 7 | + 8 | + if ($config->{crossconf}) { 9 | + warn "Guessing :-("; 10 | + $config->{has_pthread_yield} = 0; 11 | + return; 12 | + } 13 | + 14 | return simple_compile_probe(config => $config, 15 | probing => 'pthread_yield support', 16 | key => 'has_pthread_yield', 17 | -------------------------------------------------------------------------------- /tur/mongodb/0008-android-no-pthread_getname_np.patch: -------------------------------------------------------------------------------- 1 | --- a/src/third_party/mozjs/extract/js/src/threading/posix/PosixThread.cpp 2 | +++ b/src/third_party/mozjs/extract/js/src/threading/posix/PosixThread.cpp 3 | @@ -125,7 +125,7 @@ 4 | MOZ_RELEASE_ASSERT(len >= 16); 5 | 6 | int rv = -1; 7 | -#ifdef HAVE_PTHREAD_GETNAME_NP 8 | +#if defined(HAVE_PTHREAD_GETNAME_NP) && ! defined(__ANDROID__) 9 | rv = pthread_getname_np(pthread_self(), nameBuffer, len); 10 | #elif defined(HAVE_PTHREAD_GET_NAME_NP) 11 | pthread_get_name_np(pthread_self(), nameBuffer, len); 12 | -------------------------------------------------------------------------------- /tur/nasm-segelf/nasm-segelf-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="nasm-segelf for host (NOT for Termux)" 2 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 3 | TERMUX_SUBPKG_INCLUDE=" 4 | opt/${TERMUX_PKG_NAME}/cross/* 5 | " 6 | -------------------------------------------------------------------------------- /tur/nodejs-12/configure.py.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../node-v12.1.0/configure.py ./configure.py 2 | --- ../node-v12.1.0/configure.py 2019-04-29 12:57:51.000000000 +0000 3 | +++ ./configure.py 2019-05-05 21:21:04.289245037 +0000 4 | @@ -931,7 +931,7 @@ 5 | else target_arch != host_arch) 6 | want_snapshots = not options.without_snapshot 7 | o['variables']['want_separate_host_toolset'] = int( 8 | - cross_compiling and want_snapshots) 9 | + cross_compiling) 10 | 11 | if options.with_node_snapshot: 12 | o['variables']['node_use_node_snapshot'] = 'true' 13 | -------------------------------------------------------------------------------- /tur/nodejs-12/lib-child_process.js.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../node-v6.2.0/lib/child_process.js ./lib/child_process.js 2 | --- ../node-v6.2.0/lib/child_process.js 2016-05-17 15:53:06.000000000 -0400 3 | +++ ./lib/child_process.js 2016-05-18 16:31:45.574685443 -0400 4 | @@ -335,7 +335,7 @@ 5 | if (typeof options.shell === 'string') 6 | file = options.shell; 7 | else if (process.platform === 'android') 8 | - file = '/system/bin/sh'; 9 | + file = '@TERMUX_PREFIX@/bin/sh'; 10 | else 11 | file = '/bin/sh'; 12 | args = ['-c', command]; 13 | -------------------------------------------------------------------------------- /tur/nodejs-12/lib-os.js.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../node-v10.9.0/lib/os.js ./lib/os.js 2 | --- ../node-v10.9.0/lib/os.js 2018-08-15 13:53:34.000000000 +0000 3 | +++ ./lib/os.js 2018-08-23 20:42:39.611186774 +0000 4 | @@ -130,7 +130,7 @@ 5 | path = safeGetenv('TMPDIR') || 6 | safeGetenv('TMP') || 7 | safeGetenv('TEMP') || 8 | - '/tmp'; 9 | + '@TERMUX_PREFIX@/tmp'; 10 | if (path.length > 1 && path.endsWith('/')) 11 | path = path.slice(0, -1); 12 | } 13 | -------------------------------------------------------------------------------- /tur/nodejs-12/src-cares_wrap.cc.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../node-v6.0.0/src/cares_wrap.cc ./src/cares_wrap.cc 2 | --- ../node-v6.0.0/src/cares_wrap.cc 2016-04-26 15:50:22.000000000 -0400 3 | +++ ./src/cares_wrap.cc 2016-05-02 00:24:26.349502775 -0400 4 | @@ -15,8 +15,7 @@ 5 | #include 6 | #include 7 | 8 | -#if defined(__ANDROID__) || \ 9 | - defined(__MINGW32__) || \ 10 | +#if defined(__MINGW32__) || \ 11 | defined(__OpenBSD__) || \ 12 | defined(_MSC_VER) 13 | -------------------------------------------------------------------------------- /tur/nodejs-16/configure.py.patch: -------------------------------------------------------------------------------- 1 | --- ./configure.py.orig 2022-10-20 13:35:36.500629016 +0530 2 | +++ ./configure.py 2022-10-20 13:35:54.980629009 +0530 3 | @@ -1241,10 +1241,6 @@ 4 | 5 | o['variables']['want_separate_host_toolset'] = int(cross_compiling) 6 | 7 | - # Enable branch protection for arm64 8 | - if target_arch == 'arm64': 9 | - o['cflags']+=['-msign-return-address=all'] 10 | - 11 | if options.node_snapshot_main is not None: 12 | if options.shared: 13 | # This should be possible to fix, but we will need to refactor the 14 | -------------------------------------------------------------------------------- /tur/nodejs-16/deps-uv-src-unix-core.c.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -uNr node-v16.14.2.orig/deps/uv/src/unix/core.c node-v16.14.2/deps/uv/src/unix/core.c 2 | --- node-v16.14.2.orig/deps/uv/src/unix/core.c 2022-03-18 15:06:20.191091189 +0530 3 | +++ node-v16.14.2/deps/uv/src/unix/core.c 2022-03-18 15:07:54.421091153 +0530 4 | @@ -1125,7 +1125,7 @@ 5 | 6 | /* No temp environment variables defined */ 7 | #if defined(__ANDROID__) 8 | - buf = "/data/local/tmp"; 9 | + buf = "@TERMUX_PREFIX@/tmp"; 10 | #else 11 | buf = "/tmp"; 12 | #endif 13 | -------------------------------------------------------------------------------- /tur/nodejs-16/lib-os.js.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -uNr node-v16.14.2.orig/lib/os.js node-v16.14.2/lib/os.js 2 | --- node-v16.14.2.orig/lib/os.js 2022-03-18 15:06:23.831091188 +0530 3 | +++ node-v16.14.2/lib/os.js 2022-03-18 15:08:46.251091133 +0530 4 | @@ -183,7 +183,7 @@ 5 | path = safeGetenv('TMPDIR') || 6 | safeGetenv('TMP') || 7 | safeGetenv('TEMP') || 8 | - '/tmp'; 9 | + '@TERMUX_PREFIX@/tmp'; 10 | if (path.length > 1 && StringPrototypeEndsWith(path, '/')) 11 | path = StringPrototypeSlice(path, 0, -1); 12 | } 13 | -------------------------------------------------------------------------------- /tur/nodejs-16/src-node_report.cc.patch: -------------------------------------------------------------------------------- 1 | --- ./src/node_report.cc 2022-09-23 08:19:19.000000000 +0530 2 | +++ ./src/node_report.cc.mod 2022-10-06 21:25:11.127454780 +0530 3 | @@ -425,6 +425,9 @@ 4 | } 5 | writer->json_arrayend(); 6 | uv_free_cpu_info(cpu_info, count); 7 | + } else { 8 | + writer->json_arraystart("cpus"); 9 | + writer->json_arrayend(); 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /tur/nodejs-16/test-parallel-test-child-process-exec-env.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/parallel/test-child-process-exec-env.js.orig 2022-06-05 08:57:52.717600637 +0530 2 | +++ ./test/parallel/test-child-process-exec-env.js 2022-06-05 09:02:24.887600533 +0530 3 | @@ -44,7 +44,7 @@ 4 | } 5 | 6 | if (!isWindows) { 7 | - child = exec('/usr/bin/env', { env: { 'HELLO': 'WORLD' } }, after); 8 | + child = exec('@TERMUX_PREFIX@/bin/env', { env: { 'HELLO': 'WORLD' } }, after); 9 | } else { 10 | child = exec('set', 11 | { env: { ...process.env, 'HELLO': 'WORLD' } }, 12 | -------------------------------------------------------------------------------- /tur/nodejs-16/test-parallel-test-gc-http-client-connaborted.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/parallel/test-gc-http-client-connaborted.js.orig 2022-06-05 08:39:51.327601049 +0530 2 | +++ ./test/parallel/test-gc-http-client-connaborted.js 2022-06-05 08:40:14.897601040 +0530 3 | @@ -8,7 +8,7 @@ 4 | const http = require('http'); 5 | const os = require('os'); 6 | 7 | -const cpus = os.cpus().length; 8 | +const cpus = 8; 9 | let createClients = true; 10 | let done = 0; 11 | let count = 0; 12 | -------------------------------------------------------------------------------- /tur/nodejs-16/test-parallel-test-process-constants-noatime.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/parallel/test-process-constants-noatime.js.orig 2022-06-21 15:34:16.647265960 +0530 2 | +++ ./test/parallel/test-process-constants-noatime.js 2022-06-21 15:34:38.957265951 +0530 3 | @@ -4,7 +4,7 @@ 4 | const assert = require('assert'); 5 | const constants = require('fs').constants; 6 | 7 | -if (common.isLinux) { 8 | +if (common.isLinux || process.platform === 'android') { 9 | assert('O_NOATIME' in constants); 10 | assert.strictEqual(constants.O_NOATIME, 0x40000); 11 | } else { 12 | -------------------------------------------------------------------------------- /tur/nodejs-16/test-sequential-test-gc-http-client-onerror.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/sequential/test-gc-http-client-onerror.js.orig 2022-06-05 10:18:02.427598802 +0530 2 | +++ ./test/sequential/test-gc-http-client-onerror.js 2022-06-05 10:18:17.627598796 +0530 3 | @@ -6,7 +6,7 @@ 4 | const common = require('../common'); 5 | const onGC = require('../common/ongc'); 6 | 7 | -const cpus = require('os').cpus().length; 8 | +const cpus = 8; 9 | 10 | function serverHandler(req, res) { 11 | req.resume(); 12 | -------------------------------------------------------------------------------- /tur/nodejs-16/test-sequential-test-gc-http-client.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/sequential/test-gc-http-client.js.orig 2022-06-05 10:17:44.127598809 +0530 2 | +++ ./test/sequential/test-gc-http-client.js 2022-06-05 10:17:53.947598805 +0530 3 | @@ -5,7 +5,7 @@ 4 | const common = require('../common'); 5 | const onGC = require('../common/ongc'); 6 | 7 | -const cpus = require('os').cpus().length; 8 | +const cpus = 8; 9 | 10 | function serverHandler(req, res) { 11 | res.writeHead(200, { 'Content-Type': 'text/plain' }); 12 | -------------------------------------------------------------------------------- /tur/nodejs-16/tools-v8_gypfiles-toolchain.gypi.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -uNr node-v16.14.2.orig/tools/v8_gypfiles/toolchain.gypi node-v16.14.2/tools/v8_gypfiles/toolchain.gypi 2 | --- node-v16.14.2.orig/tools/v8_gypfiles/toolchain.gypi 2022-03-18 15:06:28.221091186 +0530 3 | +++ node-v16.14.2/tools/v8_gypfiles/toolchain.gypi 2022-03-18 15:08:57.961091129 +0530 4 | @@ -62,7 +62,7 @@ 5 | 'mips_use_msa%': 0, 6 | 7 | # Print to stdout on Android. 8 | - 'v8_android_log_stdout%': 0, 9 | + 'v8_android_log_stdout%': 1, 10 | 11 | 'v8_enable_backtrace%': 0, 12 | 13 | -------------------------------------------------------------------------------- /tur/nodejs-18/configure.py.patch: -------------------------------------------------------------------------------- 1 | --- ./configure.py.orig 2023-01-07 17:06:50.006657762 +0530 2 | +++ ./configure.py 2023-01-07 17:06:58.033014404 +0530 3 | @@ -1284,7 +1284,6 @@ 4 | 5 | # Enable branch protection for arm64 6 | if target_arch == 'arm64': 7 | - o['cflags']+=['-msign-return-address=all'] 8 | o['variables']['arm_fpu'] = options.arm_fpu or 'neon' 9 | 10 | if options.node_snapshot_main is not None: 11 | -------------------------------------------------------------------------------- /tur/nodejs-18/deps-uv-src-unix-core.c.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -uNr node-v18.0.0.orig/deps/uv/src/unix/core.c node-v18.0.0/deps/uv/src/unix/core.c 2 | --- node-v18.0.0.orig/deps/uv/src/unix/core.c 2022-04-21 15:15:32.621869790 +0530 3 | +++ node-v18.0.0/deps/uv/src/unix/core.c 2022-04-21 15:29:22.728123998 +0530 4 | @@ -1125,7 +1125,7 @@ 5 | 6 | /* No temp environment variables defined */ 7 | #if defined(__ANDROID__) 8 | - buf = "/data/local/tmp"; 9 | + buf = "@TERMUX_PREFIX@/tmp"; 10 | #else 11 | buf = "/tmp"; 12 | #endif 13 | -------------------------------------------------------------------------------- /tur/nodejs-18/lib-os.js.patch: -------------------------------------------------------------------------------- 1 | --- ./lib/os.js.orig 2023-02-02 02:40:18.000000000 +0530 2 | +++ ./lib/os.js 2023-02-10 18:35:51.340175431 +0530 3 | @@ -193,7 +193,7 @@ 4 | path = safeGetenv('TMPDIR') || 5 | safeGetenv('TMP') || 6 | safeGetenv('TEMP') || 7 | - '/tmp'; 8 | + '@TERMUX_PREFIX@/tmp'; 9 | if (path.length > 1 && StringPrototypeEndsWith(path, '/')) 10 | path = StringPrototypeSlice(path, 0, -1); 11 | } 12 | -------------------------------------------------------------------------------- /tur/nodejs-18/src-node_report.cc.patch: -------------------------------------------------------------------------------- 1 | --- ./src/node_report.cc.orig 2022-06-04 20:28:45.524998388 +0530 2 | +++ ./src/node_report.cc 2022-06-04 20:30:09.764998356 +0530 3 | @@ -425,6 +425,9 @@ 4 | } 5 | writer->json_arrayend(); 6 | uv_free_cpu_info(cpu_info, count); 7 | + } else { 8 | + writer->json_arraystart("cpus"); 9 | + writer->json_arrayend(); 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /tur/nodejs-18/test-parallel-test-child-process-exec-env.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/parallel/test-child-process-exec-env.js.orig 2022-06-05 08:57:52.717600637 +0530 2 | +++ ./test/parallel/test-child-process-exec-env.js 2022-06-05 09:02:24.887600533 +0530 3 | @@ -44,7 +44,7 @@ 4 | } 5 | 6 | if (!isWindows) { 7 | - child = exec('/usr/bin/env', { env: { 'HELLO': 'WORLD' } }, after); 8 | + child = exec('@TERMUX_PREFIX@/bin/env', { env: { 'HELLO': 'WORLD' } }, after); 9 | } else { 10 | child = exec('set', 11 | { env: { ...process.env, 'HELLO': 'WORLD' } }, 12 | -------------------------------------------------------------------------------- /tur/nodejs-18/test-parallel-test-process-constants-noatime.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/parallel/test-process-constants-noatime.js.orig 2022-06-21 15:34:16.647265960 +0530 2 | +++ ./test/parallel/test-process-constants-noatime.js 2022-06-21 15:34:38.957265951 +0530 3 | @@ -4,7 +4,7 @@ 4 | const assert = require('assert'); 5 | const constants = require('fs').constants; 6 | 7 | -if (common.isLinux) { 8 | +if (common.isLinux || process.platform === 'android') { 9 | assert('O_NOATIME' in constants); 10 | assert.strictEqual(constants.O_NOATIME, 0x40000); 11 | } else { 12 | -------------------------------------------------------------------------------- /tur/nodejs-18/tools-v8_gypfiles-toolchain.gypi.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -uNr node-v18.0.0.orig/tools/v8_gypfiles/toolchain.gypi node-v18.0.0/tools/v8_gypfiles/toolchain.gypi 2 | --- node-v18.0.0.orig/tools/v8_gypfiles/toolchain.gypi 2022-04-21 15:15:48.771869783 +0530 3 | +++ node-v18.0.0/tools/v8_gypfiles/toolchain.gypi 2022-04-21 15:48:50.497175047 +0530 4 | @@ -62,7 +62,7 @@ 5 | 'mips_use_msa%': 0, 6 | 7 | # Print to stdout on Android. 8 | - 'v8_android_log_stdout%': 0, 9 | + 'v8_android_log_stdout%': 1, 10 | 11 | 'v8_enable_backtrace%': 0, 12 | 13 | -------------------------------------------------------------------------------- /tur/nodejs-20/common.gypi.patch: -------------------------------------------------------------------------------- 1 | --- ./common.gypi.orig 2024-02-18 23:11:41.173679151 +0530 2 | +++ ./common.gypi 2024-02-18 23:11:53.907570677 +0530 3 | @@ -237,10 +237,6 @@ 4 | },], 5 | ], 6 | },], 7 | - ['OS == "android"', { 8 | - 'cflags': [ '-fPIC', '-I<(android_ndk_path)/sources/android/cpufeatures' ], 9 | - 'ldflags': [ '-fPIC' ] 10 | - }], 11 | ], 12 | 'msvs_settings': { 13 | 'VCCLCompilerTool': { 14 | -------------------------------------------------------------------------------- /tur/nodejs-20/deps-uv-src-unix-core.c.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -uNr node-v18.0.0.orig/deps/uv/src/unix/core.c node-v18.0.0/deps/uv/src/unix/core.c 2 | --- node-v18.0.0.orig/deps/uv/src/unix/core.c 2022-04-21 15:15:32.621869790 +0530 3 | +++ node-v18.0.0/deps/uv/src/unix/core.c 2022-04-21 15:29:22.728123998 +0530 4 | @@ -1125,7 +1125,7 @@ 5 | 6 | /* No temp environment variables defined */ 7 | #if defined(__ANDROID__) 8 | - buf = "/data/local/tmp"; 9 | + buf = "@TERMUX_PREFIX@/tmp"; 10 | #else 11 | buf = "/tmp"; 12 | #endif 13 | -------------------------------------------------------------------------------- /tur/nodejs-20/deps-v8-src-logging-log.cc.patch: -------------------------------------------------------------------------------- 1 | --- ./deps/v8/src/logging/log.cc.orig 2024-02-18 22:32:25.705899829 +0530 2 | +++ ./deps/v8/src/logging/log.cc 2024-02-18 22:49:33.993837346 +0530 3 | @@ -367,7 +367,7 @@ 4 | static uint64_t reference_count_; 5 | }; 6 | 7 | -const char LinuxPerfBasicLogger::kFilenameFormatString[] = "/tmp/perf-%d.map"; 8 | +const char LinuxPerfBasicLogger::kFilenameFormatString[] = "@TERMUX_PREFIX@/tmp/perf-%d.map"; 9 | // Extra space for the PID in the filename 10 | const int LinuxPerfBasicLogger::kFilenameBufferPadding = 16; 11 | 12 | -------------------------------------------------------------------------------- /tur/nodejs-20/lib-os.js.patch: -------------------------------------------------------------------------------- 1 | --- ./lib/os.js.orig 2023-02-02 02:40:18.000000000 +0530 2 | +++ ./lib/os.js 2023-02-10 18:35:51.340175431 +0530 3 | @@ -193,7 +193,7 @@ 4 | path = safeGetenv('TMPDIR') || 5 | safeGetenv('TMP') || 6 | safeGetenv('TEMP') || 7 | - '/tmp'; 8 | + '@TERMUX_PREFIX@/tmp'; 9 | if (path.length > 1 && StringPrototypeEndsWith(path, '/')) 10 | path = StringPrototypeSlice(path, 0, -1); 11 | } 12 | -------------------------------------------------------------------------------- /tur/nodejs-20/src-node_report.cc.patch: -------------------------------------------------------------------------------- 1 | --- ./src/node_report.cc.orig 2022-06-04 20:28:45.524998388 +0530 2 | +++ ./src/node_report.cc 2022-06-04 20:30:09.764998356 +0530 3 | @@ -425,6 +425,9 @@ 4 | } 5 | writer->json_arrayend(); 6 | uv_free_cpu_info(cpu_info, count); 7 | + } else { 8 | + writer->json_arraystart("cpus"); 9 | + writer->json_arrayend(); 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /tur/nodejs-20/test-parallel-test-child-process-exec-env.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/parallel/test-child-process-exec-env.js.orig 2022-06-05 08:57:52.717600637 +0530 2 | +++ ./test/parallel/test-child-process-exec-env.js 2022-06-05 09:02:24.887600533 +0530 3 | @@ -44,7 +44,7 @@ 4 | } 5 | 6 | if (!isWindows) { 7 | - child = exec('/usr/bin/env', { env: { 'HELLO': 'WORLD' } }, after); 8 | + child = exec('@TERMUX_PREFIX@/bin/env', { env: { 'HELLO': 'WORLD' } }, after); 9 | } else { 10 | child = exec('set', 11 | { env: { ...process.env, 'HELLO': 'WORLD' } }, 12 | -------------------------------------------------------------------------------- /tur/nodejs-20/test-parallel-test-process-constants-noatime.js.patch: -------------------------------------------------------------------------------- 1 | --- ./test/parallel/test-process-constants-noatime.js.orig 2022-06-21 15:34:16.647265960 +0530 2 | +++ ./test/parallel/test-process-constants-noatime.js 2022-06-21 15:34:38.957265951 +0530 3 | @@ -4,7 +4,7 @@ 4 | const assert = require('assert'); 5 | const constants = require('fs').constants; 6 | 7 | -if (common.isLinux) { 8 | +if (common.isLinux || process.platform === 'android') { 9 | assert('O_NOATIME' in constants); 10 | assert.strictEqual(constants.O_NOATIME, 0x40000); 11 | } else { 12 | -------------------------------------------------------------------------------- /tur/nodejs-20/tools-v8_gypfiles-toolchain.gypi.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -uNr node-v18.0.0.orig/tools/v8_gypfiles/toolchain.gypi node-v18.0.0/tools/v8_gypfiles/toolchain.gypi 2 | --- node-v18.0.0.orig/tools/v8_gypfiles/toolchain.gypi 2022-04-21 15:15:48.771869783 +0530 3 | +++ node-v18.0.0/tools/v8_gypfiles/toolchain.gypi 2022-04-21 15:48:50.497175047 +0530 4 | @@ -62,7 +62,7 @@ 5 | 'mips_use_msa%': 0, 6 | 7 | # Print to stdout on Android. 8 | - 'v8_android_log_stdout%': 0, 9 | + 'v8_android_log_stdout%': 1, 10 | 11 | 'v8_enable_backtrace%': 0, 12 | 13 | -------------------------------------------------------------------------------- /tur/octave-x/wrapper.in: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import subprocess 4 | import sys 5 | import typing 6 | 7 | COMPLIER_PATH = "@COMPILER@" 8 | 9 | def main(argv: typing.List[str]): 10 | cwd = os.getcwd() 11 | # Remove `-static-openmp` if needed 12 | argv_new = [] 13 | for i, arg in enumerate(argv[1:]): 14 | if arg != "-static-openmp": 15 | argv_new.append(arg) 16 | args = [COMPLIER_PATH] + argv_new 17 | subprocess.check_call(args, env=os.environ, cwd=cwd, text=True) 18 | 19 | if __name__ == '__main__': 20 | main(sys.argv) 21 | -------------------------------------------------------------------------------- /tur/octave/wrapper.in: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import subprocess 4 | import sys 5 | import typing 6 | 7 | COMPLIER_PATH = "@COMPILER@" 8 | 9 | def main(argv: typing.List[str]): 10 | cwd = os.getcwd() 11 | # Remove `-static-openmp` if needed 12 | argv_new = [] 13 | for i, arg in enumerate(argv[1:]): 14 | if arg != "-static-openmp": 15 | argv_new.append(arg) 16 | args = [COMPLIER_PATH] + argv_new 17 | subprocess.check_call(args, env=os.environ, cwd=cwd, text=True) 18 | 19 | if __name__ == '__main__': 20 | main(sys.argv) 21 | -------------------------------------------------------------------------------- /tur/openalut/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://github.com/vancegroup/freealut 2 | TERMUX_PKG_DESCRIPTION="A free implementation of OpenAL's ALUT standard" 3 | TERMUX_PKG_LICENSE="LGPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 5 | TERMUX_PKG_VERSION=1.1.0 6 | TERMUX_PKG_REVISION=1 7 | TERMUX_PKG_SRCURL=http://deb.debian.org/debian/pool/main/f/freealut/freealut_1.1.0.orig.tar.gz 8 | TERMUX_PKG_SHA256=60d1ea8779471bb851b89b49ce44eecb78e46265be1a6e9320a28b100c8df44f 9 | TERMUX_PKG_DEPENDS="openal-soft" 10 | -------------------------------------------------------------------------------- /tur/openjdk-11/0007-include-netinet_in-for-android.patch: -------------------------------------------------------------------------------- 1 | --- a/src/java.base/unix/native/libnet/net_util_md.h 2 | +++ b/src/java.base/unix/native/libnet/net_util_md.h 3 | @@ -26,6 +26,9 @@ 4 | #ifndef NET_UTILS_MD_H 5 | #define NET_UTILS_MD_H 6 | 7 | +#ifdef __ANDROID__ 8 | +#include 9 | +#endif 10 | #include 11 | #include 12 | #include 13 | -------------------------------------------------------------------------------- /tur/openjdk-11/0038-fix-usage-of-aarch64_get_thread_helper.patch: -------------------------------------------------------------------------------- 1 | --- a/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp 2 | +++ b/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp 3 | @@ -5852,9 +5852,7 @@ 4 | // On other systems, the helper is a usual C function. 5 | // 6 | void MacroAssembler::get_thread(Register dst) { 7 | - RegSet saved_regs = 8 | - LINUX_ONLY(RegSet::range(r0, r1) + lr - dst) 9 | - NOT_LINUX (RegSet::range(r0, r17) + lr - dst); 10 | + RegSet saved_regs = RegSet::range(r0, r17) + lr - dst; 11 | 12 | push(saved_regs, sp); 13 | 14 | -------------------------------------------------------------------------------- /tur/openjdk-11/openjdk-11-source.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE="lib/jvm/java-11-openjdk/lib/src.zip" 2 | TERMUX_SUBPKG_DESCRIPTION="Source files for openjdk-11" 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 5 | -------------------------------------------------------------------------------- /tur/openspecfun/0001-gfortran.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -3,7 +3,7 @@ 4 | SET(VERSION 0.0.5) 5 | 6 | set(CMAKE_BUILD_TYPE Release) 7 | -SET(CMAKE_Fortran_COMPILER gfortran) 8 | +# SET(CMAKE_Fortran_COMPILER gfortran) 9 | 10 | SET(SRC_FADDEEVA ${CMAKE_SOURCE_DIR}/Faddeeva) 11 | SET(FADDEEVA_src ${SRC_FADDEEVA}/Faddeeva.c) 12 | -------------------------------------------------------------------------------- /tur/openssl-1.1/apps-ocsp.c.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../openssl-1.1.1g/apps/ocsp.c ./apps/ocsp.c 2 | --- ../openssl-1.1.1g/apps/ocsp.c 2020-04-21 12:22:39.000000000 +0000 3 | +++ ./apps/ocsp.c 2020-04-28 22:42:57.312189000 +0000 4 | @@ -48,6 +48,7 @@ 5 | #endif 6 | 7 | #if !defined(NO_FORK) && !defined(OPENSSL_NO_SOCK) \ 8 | + && !defined(__ANDROID__) \ 9 | && !defined(OPENSSL_NO_POSIX_IO) 10 | # define OCSP_DAEMON 11 | # include 12 | -------------------------------------------------------------------------------- /tur/openssl-1.1/openssl1.1-tool.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE="bin" 2 | TERMUX_SUBPKG_DESCRIPTION="The openssl command line cryptographic tool" 3 | -------------------------------------------------------------------------------- /tur/payload-dumper-go/0002-gozstd-support-i686.patch: -------------------------------------------------------------------------------- 1 | --- /dev/null 2 | +++ b/vendor/github.com/valyala/gozstd/libzstd_linux_386.go 3 | @@ -0,0 +1,6 @@ 4 | +package gozstd 5 | + 6 | +/* 7 | +#cgo LDFLAGS: ${SRCDIR}/libzstd_linux_386.a 8 | +*/ 9 | +import "C" 10 | -------------------------------------------------------------------------------- /tur/php7.2/php-fpm.patch: -------------------------------------------------------------------------------- 1 | --- ./sapi/fpm/www.conf.in 2 | +++ ./sapi/fpm/www.conf.in 3 | @@ -33,7 +33,7 @@ 4 | ; (IPv6 and IPv4-mapped) on a specific port; 5 | ; '/path/to/unix/socket' - to listen on a unix socket. 6 | ; Note: This value is mandatory. 7 | -listen = 127.0.0.1:9000 8 | +listen = @TERMUX_PREFIX@/var/run/php-fpm.sock 9 | 10 | ; Set listen(2) backlog. 11 | ; Default Value: 511 (-1 on FreeBSD and OpenBSD) 12 | -------------------------------------------------------------------------------- /tur/php7/ext-standard-basic_functions.c.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../php-7.3.2/ext/standard/basic_functions.c ./ext/standard/basic_functions.c 2 | --- ../php-7.3.2/ext/standard/basic_functions.c 2019-02-05 13:10:09.000000000 +0000 3 | +++ ./ext/standard/basic_functions.c 2019-02-16 00:28:53.991218270 +0000 4 | @@ -3753,9 +3753,6 @@ 5 | 6 | PHP_MSHUTDOWN_FUNCTION(basic) /* {{{ */ 7 | { 8 | -#ifdef HAVE_SYSLOG_H 9 | - PHP_MSHUTDOWN(syslog)(SHUTDOWN_FUNC_ARGS_PASSTHRU); 10 | -#endif 11 | #ifdef ZTS 12 | ts_free_id(basic_globals_id); 13 | #ifdef PHP_WIN32 14 | -------------------------------------------------------------------------------- /tur/php7/php-fpm.patch: -------------------------------------------------------------------------------- 1 | --- ./sapi/fpm/www.conf.in 2 | +++ ./sapi/fpm/www.conf.in 3 | @@ -33,7 +33,7 @@ 4 | ; (IPv6 and IPv4-mapped) on a specific port; 5 | ; '/path/to/unix/socket' - to listen on a unix socket. 6 | ; Note: This value is mandatory. 7 | -listen = 127.0.0.1:9000 8 | +listen = @TERMUX_PREFIX@/var/run/php-fpm.sock 9 | 10 | ; Set listen(2) backlog. 11 | ; Default Value: 511 (-1 on FreeBSD and OpenBSD) 12 | -------------------------------------------------------------------------------- /tur/php7/php7-apache.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Apache 2.0 Handler module for PHP" 2 | TERMUX_SUBPKG_DEPENDS="apache2" 3 | TERMUX_SUBPKG_INCLUDE="libexec/apache2/libphp7.so" 4 | -------------------------------------------------------------------------------- /tur/php7/php7-fpm.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE="bin/php-fpm etc/php-fpm.* share/man/man8/php-fpm.8.gz var/service/php-fpm" 2 | TERMUX_SUBPKG_CONFFILES="etc/php-fpm.conf etc/php-fpm.d/www.conf" 3 | TERMUX_SUBPKG_DESCRIPTION="FastCGI Process Manager for PHP" 4 | TERMUX_SUBPKG_CONFLICTS="php-fpm" 5 | -------------------------------------------------------------------------------- /tur/php7/php7-pgsql.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE="lib/php/pgsql.so lib/php/pdo_pgsql.so" 2 | TERMUX_SUBPKG_DEPENDS="apr-util, postgresql" 3 | TERMUX_SUBPKG_DESCRIPTION="PostgreSQL modules for PHP" 4 | TERMUX_SUBPKG_CONFLICTS="php-pgsql" 5 | -------------------------------------------------------------------------------- /tur/python-kivy/kivy-lib-mtdev.py.patch: -------------------------------------------------------------------------------- 1 | --- a/kivy/lib/mtdev.py 2 | +++ b/kivy/lib/mtdev.py 3 | @@ -27,7 +27,7 @@ 4 | 5 | # load library 6 | if 'KIVY_DOC' not in os.environ: 7 | - libmtdev = cdll.LoadLibrary('libmtdev.so.1') 8 | + libmtdev = cdll.LoadLibrary('libmtdev.so') 9 | 10 | # from linux/input.h 11 | MTDEV_CODE_SLOT = 0x2f # MT slot being modified 12 | -------------------------------------------------------------------------------- /tur/python-scikit-image/complex.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef __TERMUX_SCIKIT_IMAGE_COMPLEX__ 4 | #define __TERMUX_SCIKIT_IMAGE_COMPLEX__ 5 | 6 | #include_next 7 | 8 | double complex cpow(double complex __x, double complex __z); 9 | 10 | #endif // __TERMUX_SCIKIT_IMAGE_COMPLEX__ 11 | -------------------------------------------------------------------------------- /tur/python-tls-client/0001-fix-library-path.patch: -------------------------------------------------------------------------------- 1 | --- a/tls_client/cffi.py.orig 2 | +++ b/tls_client/cffi.py 3 | @@ -17,7 +17,7 @@ 4 | file_ext = '-amd64.so' 5 | 6 | root_dir = os.path.abspath(os.path.dirname(__file__)) 7 | -library = ctypes.cdll.LoadLibrary(f'{root_dir}/dependencies/tls-client{file_ext}') 8 | +library = ctypes.cdll.LoadLibrary(f'lib-tls-client.so') 9 | 10 | # extract the exposed request function from the shared package 11 | request = library.request 12 | -------------------------------------------------------------------------------- /tur/python3.10/0006-disable-parallel-build.patch: -------------------------------------------------------------------------------- 1 | https://github.com/termux/termux-packages/issues/15908 2 | 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -354,8 +354,6 @@ 6 | self.failed_on_import = [] 7 | self.missing = [] 8 | self.disabled_configure = [] 9 | - if '-j' in os.environ.get('MAKEFLAGS', ''): 10 | - self.parallel = True 11 | 12 | def add(self, ext): 13 | self.extensions.append(ext) 14 | -------------------------------------------------------------------------------- /tur/python3.10/0007-disable-multiarch.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -5387,6 +5387,8 @@ 4 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5 5 | $as_echo_n "checking for multiarch... " >&6; } 6 | case $ac_sys_system in #( 7 | + Linux-android) : 8 | + MULTIARCH="" ;; #( 9 | Darwin*) : 10 | MULTIARCH="" ;; #( 11 | FreeBSD*) : 12 | -------------------------------------------------------------------------------- /tur/python3.10/0008-do-not-use-link.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -11293,8 +11293,6 @@ 4 | _ACEOF 5 | if ac_fn_c_try_compile "$LINENO"; then : 6 | 7 | -$as_echo "#define HAVE_LINK 1" >>confdefs.h 8 | - 9 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10 | $as_echo "yes" >&6; } 11 | else 12 | -------------------------------------------------------------------------------- /tur/python3.10/0009-build-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -9295,7 +9295,7 @@ 4 | then CCSHARED="-fPIC"; 5 | else CCSHARED="+z"; 6 | fi;; 7 | - Linux-android*) ;; 8 | + Linux-android*) CCSHARED="-fPIC";; 9 | Linux*|GNU*) CCSHARED="-fPIC";; 10 | BSD/OS*/4*) CCSHARED="-fpic";; 11 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 12 | -------------------------------------------------------------------------------- /tur/python3.10/0010-use-android-log.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -824,7 +824,8 @@ 4 | 5 | # Lance Ellinghaus's syslog module 6 | # syslog daemon interface 7 | - self.add(Extension('syslog', ['syslogmodule.c'])) 8 | + # Termux: Add 'log' android library since we use android logging: 9 | + self.add(Extension('syslog', ['syslogmodule.c'], libraries=['log'])) 10 | 11 | # Python interface to subinterpreter C-API. 12 | self.add(Extension('_xxsubinterpreters', ['_xxsubinterpretersmodule.c'])) 13 | -------------------------------------------------------------------------------- /tur/python3.10/0011-_cursesmodule-do-not-include-langinfo.patch: -------------------------------------------------------------------------------- 1 | We use libandroid-support when building Python, but Python does not 2 | use LDFLAGS when building modules (and not much point in this case). 3 | 4 | --- a/Modules/_cursesmodule.c 5 | +++ b/Modules/_cursesmodule.c 6 | @@ -121,7 +121,7 @@ 7 | #include 8 | #endif 9 | 10 | -#ifdef HAVE_LANGINFO_H 11 | +#if defined(HAVE_LANGINFO_H) && !defined(__ANDROID__) 12 | #include 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /tur/python3.10/0012-link-statistics-against-libm.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -771,7 +771,7 @@ 4 | # _queue module 5 | self.add(Extension("_queue", ["_queuemodule.c"])) 6 | # _statistics module 7 | - self.add(Extension("_statistics", ["_statisticsmodule.c"])) 8 | + self.add(Extension("_statistics", ["_statisticsmodule.c"], libraries=["m"])) 9 | 10 | # Modules with some UNIX dependencies -- on by default: 11 | # (If you have a really backward UNIX, select and socket may not be 12 | -------------------------------------------------------------------------------- /tur/python3.10/python3.10-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Python $_MAJOR_VERSION for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/python$_MAJOR_VERSION/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/python3.10/python3.10-tkinter.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Tkinter support for Python 3.10" 2 | TERMUX_SUBPKG_DEPENDS="tk" 3 | TERMUX_SUBPKG_INCLUDE=" 4 | bin/idle* 5 | lib/python${_MAJOR_VERSION}/idlelib 6 | lib/python${_MAJOR_VERSION}/tkinter 7 | lib/python${_MAJOR_VERSION}/turtle.py 8 | lib/python${_MAJOR_VERSION}/turtledemo 9 | lib/python${_MAJOR_VERSION}/lib-dynload/_tkinter.cpython-${_MAJOR_VERSION/./}.so 10 | lib/python${_MAJOR_VERSION}/__pycache__/turtle.*.pyc 11 | " 12 | -------------------------------------------------------------------------------- /tur/python3.11/0007-disable-multiarch.patch: -------------------------------------------------------------------------------- 1 | https://github.com/termux/termux-packages/issues/11870 2 | 3 | --- a/configure 4 | +++ b/configure 5 | @@ -6202,6 +6202,8 @@ 6 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5 7 | $as_echo_n "checking for multiarch... " >&6; } 8 | case $ac_sys_system in #( 9 | + Linux-android) : 10 | + MULTIARCH="" ;; #( 11 | Darwin*) : 12 | MULTIARCH="" ;; #( 13 | FreeBSD*) : 14 | -------------------------------------------------------------------------------- /tur/python3.11/0008-do-not-use-link.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -15331,7 +15333,6 @@ 4 | $as_echo "$ac_cv_func_link" >&6; } 5 | if test "x$ac_cv_func_link" = xyes; then : 6 | 7 | -$as_echo "#define HAVE_LINK 1" >>confdefs.h 8 | 9 | fi 10 | 11 | -------------------------------------------------------------------------------- /tur/python3.11/0009-build-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -11027,7 +11029,7 @@ 4 | then CCSHARED="-fPIC"; 5 | else CCSHARED="+z"; 6 | fi;; 7 | - Linux-android*) ;; 8 | + Linux-android*) CCSHARED="-fPIC";; 9 | Linux*|GNU*) CCSHARED="-fPIC";; 10 | Emscripten*|WASI*) 11 | if test "x$enable_wasm_dynamic_linking" = xyes; then : 12 | -------------------------------------------------------------------------------- /tur/python3.11/0010-use-android-logging.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -981,7 +981,8 @@ 4 | 5 | # Lance Ellinghaus's syslog module 6 | # syslog daemon interface 7 | - self.addext(Extension('syslog', ['syslogmodule.c'])) 8 | + # Termux: Add 'log' android library since we use android logging 9 | + self.addext(Extension('syslog', ['syslogmodule.c'], libraries=['log'])) 10 | 11 | # Python interface to subinterpreter C-API. 12 | self.addext(Extension('_xxsubinterpreters', ['_xxsubinterpretersmodule.c'])) 13 | -------------------------------------------------------------------------------- /tur/python3.11/0011-disable-parallel-build.patch: -------------------------------------------------------------------------------- 1 | https://github.com/termux/termux-packages/issues/15908 2 | 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -306,8 +306,6 @@ 6 | self.failed_on_import = [] 7 | self.missing = [] 8 | self.disabled_configure = [] 9 | - if '-j' in os.environ.get('MAKEFLAGS', ''): 10 | - self.parallel = True 11 | 12 | def add(self, ext): 13 | self.extensions.append(ext) 14 | -------------------------------------------------------------------------------- /tur/python3.11/0012-do-not-include-langinfo.patch: -------------------------------------------------------------------------------- 1 | We use libandroid-support when building Python, but Python does not 2 | use LDFLAGS when building modules (and not much point in this case). 3 | 4 | --- a/Modules/_cursesmodule.c 5 | +++ b/Modules/_cursesmodule.c 6 | @@ -121,7 +121,7 @@ 7 | #include 8 | #endif 9 | 10 | -#ifdef HAVE_LANGINFO_H 11 | +#if defined(HAVE_LANGINFO_H) && !defined(__ANDROID__) 12 | #include 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /tur/python3.11/python3.11-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Python $_MAJOR_VERSION for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/python$_MAJOR_VERSION/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/python3.11/python3.11-tkinter.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Tkinter support for Python 3.11" 2 | TERMUX_SUBPKG_DEPENDS="tcl, tk" 3 | TERMUX_SUBPKG_INCLUDE=" 4 | bin/idle* 5 | lib/python${_MAJOR_VERSION}/idlelib 6 | lib/python${_MAJOR_VERSION}/tkinter 7 | lib/python${_MAJOR_VERSION}/turtle.py 8 | lib/python${_MAJOR_VERSION}/turtledemo 9 | lib/python${_MAJOR_VERSION}/lib-dynload/_tkinter.*.so 10 | lib/python${_MAJOR_VERSION}/__pycache__/turtle.*.pyc 11 | " 12 | -------------------------------------------------------------------------------- /tur/python3.7/0004-use-android-log.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -661,7 +663,8 @@ 4 | 5 | # Lance Ellinghaus's syslog module 6 | # syslog daemon interface 7 | - exts.append( Extension('syslog', ['syslogmodule.c']) ) 8 | + # Termux: Add 'log' android library since we use android logging: 9 | + exts.append( Extension('syslog', ['syslogmodule.c'], libraries=['log']) ) 10 | 11 | # 12 | # Here ends the simple stuff. From here on, modules need certain 13 | -------------------------------------------------------------------------------- /tur/python3.7/0006-_cursesmodule-do-not-include-langinfo.patch: -------------------------------------------------------------------------------- 1 | We use libandroid-support when building Python, but Python does not 2 | use LDFLAGS when building modules (and not much point in this case). 3 | 4 | --- a/Modules/_cursesmodule.c 5 | +++ b/Modules/_cursesmodule.c 6 | @@ -121,7 +121,7 @@ 7 | #include 8 | #endif 9 | 10 | -#ifdef HAVE_LANGINFO_H 11 | +#if defined(HAVE_LANGINFO_H) && !defined(__ANDROID__) 12 | #include 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /tur/python3.7/0007-do-not-use-link.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -11293,8 +11293,6 @@ 4 | _ACEOF 5 | if ac_fn_c_try_compile "$LINENO"; then : 6 | 7 | -$as_echo "#define HAVE_LINK 1" >>confdefs.h 8 | - 9 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10 | $as_echo "yes" >&6; } 11 | else 12 | -------------------------------------------------------------------------------- /tur/python3.7/0008-build-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -9295,7 +9295,7 @@ 4 | then CCSHARED="-fPIC"; 5 | else CCSHARED="+z"; 6 | fi;; 7 | - Linux-android*) ;; 8 | + Linux-android*) CCSHARED="-fPIC";; 9 | Linux*|GNU*) CCSHARED="-fPIC";; 10 | BSD/OS*/4*) CCSHARED="-fpic";; 11 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 12 | -------------------------------------------------------------------------------- /tur/python3.7/python3.7-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Python $_MAJOR_VERSION for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/python$_MAJOR_VERSION/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/python3.7/python3.7-tkinter.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Tkinter support for Python $_MAJOR_VERSION" 2 | TERMUX_SUBPKG_DEPENDS="tk" 3 | TERMUX_SUBPKG_INCLUDE=" 4 | bin/idle* 5 | lib/python${_MAJOR_VERSION}/idlelib 6 | lib/python${_MAJOR_VERSION}/tkinter 7 | lib/python${_MAJOR_VERSION}/turtle.py 8 | lib/python${_MAJOR_VERSION}/turtledemo 9 | lib/python${_MAJOR_VERSION}/lib-dynload/_tkinter.cpython-${_MAJOR_VERSION/./}m.so 10 | lib/python${_MAJOR_VERSION}/__pycache__/turtle.*.pyc 11 | " 12 | -------------------------------------------------------------------------------- /tur/python3.8/0006-disable-parallel-build.patch: -------------------------------------------------------------------------------- 1 | https://github.com/termux/termux-packages/issues/15908 2 | 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -288,8 +288,6 @@ 6 | self.failed = [] 7 | self.failed_on_import = [] 8 | self.missing = [] 9 | - if '-j' in os.environ.get('MAKEFLAGS', ''): 10 | - self.parallel = True 11 | 12 | def add(self, ext): 13 | self.extensions.append(ext) 14 | -------------------------------------------------------------------------------- /tur/python3.8/0007-link-statistics-against-libm.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -771,7 +771,7 @@ 4 | # _queue module 5 | self.add(Extension("_queue", ["_queuemodule.c"])) 6 | # _statistics module 7 | - self.add(Extension("_statistics", ["_statisticsmodule.c"])) 8 | + self.add(Extension("_statistics", ["_statisticsmodule.c"], libraries=["m"])) 9 | 10 | # Modules with some UNIX dependencies -- on by default: 11 | # (If you have a really backward UNIX, select and socket may not be 12 | -------------------------------------------------------------------------------- /tur/python3.8/0008-do-not-use-link.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -11293,8 +11293,6 @@ 4 | _ACEOF 5 | if ac_fn_c_try_compile "$LINENO"; then : 6 | 7 | -$as_echo "#define HAVE_LINK 1" >>confdefs.h 8 | - 9 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10 | $as_echo "yes" >&6; } 11 | else 12 | -------------------------------------------------------------------------------- /tur/python3.8/0009-build-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -9295,7 +9295,7 @@ 4 | then CCSHARED="-fPIC"; 5 | else CCSHARED="+z"; 6 | fi;; 7 | - Linux-android*) ;; 8 | + Linux-android*) CCSHARED="-fPIC";; 9 | Linux*|GNU*) CCSHARED="-fPIC";; 10 | BSD/OS*/4*) CCSHARED="-fpic";; 11 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 12 | -------------------------------------------------------------------------------- /tur/python3.8/0010-use-android-logging.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -824,7 +824,8 @@ 4 | 5 | # Lance Ellinghaus's syslog module 6 | # syslog daemon interface 7 | - self.add(Extension('syslog', ['syslogmodule.c'])) 8 | + # Termux: Add 'log' android library since we use android logging: 9 | + self.add(Extension('syslog', ['syslogmodule.c'], libraries=['log'])) 10 | 11 | # Python interface to subinterpreter C-API. 12 | self.add(Extension('_xxsubinterpreters', ['_xxsubinterpretersmodule.c'])) 13 | -------------------------------------------------------------------------------- /tur/python3.8/0011-_cursesmodule-do-not-include-langinfo.patch: -------------------------------------------------------------------------------- 1 | We use libandroid-support when building Python, but Python does not 2 | use LDFLAGS when building modules (and not much point in this case). 3 | 4 | --- a/Modules/_cursesmodule.c 5 | +++ b/Modules/_cursesmodule.c 6 | @@ -121,7 +121,7 @@ 7 | #include 8 | #endif 9 | 10 | -#ifdef HAVE_LANGINFO_H 11 | +#if defined(HAVE_LANGINFO_H) && !defined(__ANDROID__) 12 | #include 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /tur/python3.8/python3.8-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Python $_MAJOR_VERSION for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/python$_MAJOR_VERSION/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/python3.8/python3.8-tkinter.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Tkinter support for Python $_MAJOR_VERSION" 2 | TERMUX_SUBPKG_DEPENDS="tk" 3 | TERMUX_SUBPKG_INCLUDE=" 4 | bin/idle* 5 | lib/python${_MAJOR_VERSION}/idlelib 6 | lib/python${_MAJOR_VERSION}/tkinter 7 | lib/python${_MAJOR_VERSION}/turtle.py 8 | lib/python${_MAJOR_VERSION}/turtledemo 9 | lib/python${_MAJOR_VERSION}/lib-dynload/_tkinter.cpython-${_MAJOR_VERSION/./}.so 10 | lib/python${_MAJOR_VERSION}/__pycache__/turtle.*.pyc 11 | " 12 | -------------------------------------------------------------------------------- /tur/python3.9/0006-disable-parallel-build.patch: -------------------------------------------------------------------------------- 1 | https://github.com/termux/termux-packages/issues/15908 2 | 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -354,8 +354,6 @@ 6 | self.failed_on_import = [] 7 | self.missing = [] 8 | self.disabled_configure = [] 9 | - if '-j' in os.environ.get('MAKEFLAGS', ''): 10 | - self.parallel = True 11 | 12 | def add(self, ext): 13 | self.extensions.append(ext) 14 | -------------------------------------------------------------------------------- /tur/python3.9/0007-link-statistics-against-libm.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -771,7 +771,7 @@ 4 | # _queue module 5 | self.add(Extension("_queue", ["_queuemodule.c"])) 6 | # _statistics module 7 | - self.add(Extension("_statistics", ["_statisticsmodule.c"])) 8 | + self.add(Extension("_statistics", ["_statisticsmodule.c"], libraries=["m"])) 9 | 10 | # Modules with some UNIX dependencies -- on by default: 11 | # (If you have a really backward UNIX, select and socket may not be 12 | -------------------------------------------------------------------------------- /tur/python3.9/0008-do-not-use-link.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -11293,8 +11293,6 @@ 4 | _ACEOF 5 | if ac_fn_c_try_compile "$LINENO"; then : 6 | 7 | -$as_echo "#define HAVE_LINK 1" >>confdefs.h 8 | - 9 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10 | $as_echo "yes" >&6; } 11 | else 12 | -------------------------------------------------------------------------------- /tur/python3.9/0009-build-with-fPIC.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -9295,7 +9295,7 @@ 4 | then CCSHARED="-fPIC"; 5 | else CCSHARED="+z"; 6 | fi;; 7 | - Linux-android*) ;; 8 | + Linux-android*) CCSHARED="-fPIC";; 9 | Linux*|GNU*) CCSHARED="-fPIC";; 10 | BSD/OS*/4*) CCSHARED="-fpic";; 11 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 12 | -------------------------------------------------------------------------------- /tur/python3.9/0010-use-android-log.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -824,7 +824,8 @@ 4 | 5 | # Lance Ellinghaus's syslog module 6 | # syslog daemon interface 7 | - self.add(Extension('syslog', ['syslogmodule.c'])) 8 | + # Termux: Add 'log' android library since we use android logging: 9 | + self.add(Extension('syslog', ['syslogmodule.c'], libraries=['log'])) 10 | 11 | # Python interface to subinterpreter C-API. 12 | self.add(Extension('_xxsubinterpreters', ['_xxsubinterpretersmodule.c'])) 13 | -------------------------------------------------------------------------------- /tur/python3.9/0011-_cursesmodule-do-not-include-langinfo.patch: -------------------------------------------------------------------------------- 1 | We use libandroid-support when building Python, but Python does not 2 | use LDFLAGS when building modules (and not much point in this case). 3 | 4 | --- a/Modules/_cursesmodule.c 5 | +++ b/Modules/_cursesmodule.c 6 | @@ -121,7 +121,7 @@ 7 | #include 8 | #endif 9 | 10 | -#ifdef HAVE_LANGINFO_H 11 | +#if defined(HAVE_LANGINFO_H) && !defined(__ANDROID__) 12 | #include 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /tur/python3.9/python3.9-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Python $_MAJOR_VERSION for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/python$_MAJOR_VERSION/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/python3.9/python3.9-tkinter.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Tkinter support for Python $_MAJOR_VERSION" 2 | TERMUX_SUBPKG_DEPENDS="tk" 3 | TERMUX_SUBPKG_INCLUDE=" 4 | bin/idle* 5 | lib/python${_MAJOR_VERSION}/idlelib 6 | lib/python${_MAJOR_VERSION}/tkinter 7 | lib/python${_MAJOR_VERSION}/turtle.py 8 | lib/python${_MAJOR_VERSION}/turtledemo 9 | lib/python${_MAJOR_VERSION}/lib-dynload/_tkinter.cpython-${_MAJOR_VERSION/./}.so 10 | lib/python${_MAJOR_VERSION}/__pycache__/turtle.*.pyc 11 | " 12 | -------------------------------------------------------------------------------- /tur/qbe/cross_setup.sh: -------------------------------------------------------------------------------- 1 | if [ "$TERMUX_ON_DEVICE_BUILD" = true ]; then 2 | export QBE="qbe" 3 | return 4 | fi 5 | 6 | bin_dir="$TERMUX_PREFIX/opt/qbe/cross/bin" 7 | export PATH="${bin_dir}:$PATH" 8 | export QBE="${bin_dir}/qbe" 9 | -------------------------------------------------------------------------------- /tur/qbe/qbe-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="QBE for cross build on the host (NOT for Termux)" 2 | TERMUX_SUBPKG_INCLUDE="opt/qbe/cross/" 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | -------------------------------------------------------------------------------- /tur/rife-ncnn-vulkan-nihui/rife-ncnn-vulkan-is-nihui.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Symlinks to bin/rife-ncnn-vulkan" 2 | TERMUX_SUBPKG_BREAKS="rife-ncnn-vulkan-is-tntwise" 3 | TERMUX_SUBPKG_CONFLICTS="rife-ncnn-vulkan-is-tntwise" 4 | TERMUX_SUBPKG_INCLUDE=" 5 | bin/rife-ncnn-vulkan 6 | " 7 | -------------------------------------------------------------------------------- /tur/rife-ncnn-vulkan-tntwise/rife-ncnn-vulkan-is-tntwise.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Symlinks to bin/rife-ncnn-vulkan" 2 | TERMUX_SUBPKG_BREAKS="rife-ncnn-vulkan-is-nihui" 3 | TERMUX_SUBPKG_CONFLICTS="rife-ncnn-vulkan-is-nihui" 4 | TERMUX_SUBPKG_INCLUDE=" 5 | bin/rife-ncnn-vulkan 6 | " 7 | -------------------------------------------------------------------------------- /tur/rife-ncnn-vulkan/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://github.com/nihui/rife-ncnn-vulkan 2 | TERMUX_PKG_DESCRIPTION="A metapackage that provides rife-ncnn-vulkan" 3 | TERMUX_PKG_LICENSE="MIT" 4 | TERMUX_PKG_MAINTAINER="@termux-user-repository" 5 | TERMUX_PKG_VERSION=0.1 6 | TERMUX_PKG_AUTO_UPDATE=false 7 | TERMUX_PKG_DEPENDS="rife-ncnn-vulkan-is-nihui | rife-ncnn-vulkan-is-tntwise" 8 | TERMUX_PKG_PLATFORM_INDEPENDENT=true 9 | TERMUX_PKG_SKIP_SRC_EXTRACT=true 10 | TERMUX_PKG_METAPACKAGE=true 11 | -------------------------------------------------------------------------------- /tur/ruby-2/Makefile.in.patch: -------------------------------------------------------------------------------- 1 | --- a/template/Makefile.in 2 | +++ b/template/Makefile.in 3 | @@ -240,7 +240,7 @@ 4 | $(LIBRUBY_SO): 5 | @-$(PRE_LIBRUBY_UPDATE) 6 | $(ECHO) linking shared-library $@ 7 | - $(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@ 8 | + $(Q) $(LDSHARED) $(LDFLAGS) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@ 9 | -$(Q) $(OBJCOPY) -w -L '$(SYMBOL_PREFIX)Init_*' -L '$(SYMBOL_PREFIX)ruby_static_id_*' \ 10 | -L '$(SYMBOL_PREFIX)*_threadptr_*' $@ 11 | $(Q) $(POSTLINK) 12 | -------------------------------------------------------------------------------- /tur/ruby-2/ext-syslog-extconf.rb.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../ruby-2.4.1/ext/syslog/extconf.rb ./ext/syslog/extconf.rb 2 | --- ../ruby-2.4.1/ext/syslog/extconf.rb 2015-12-16 06:31:54.000000000 +0100 3 | +++ ./ext/syslog/extconf.rb 2017-04-26 22:52:43.683243769 +0200 4 | @@ -7,5 +7,6 @@ 5 | have_header("syslog.h") && 6 | have_func("openlog") && 7 | have_func("setlogmask") && 8 | + have_library("log", "__android_log_write") && 9 | create_makefile("syslog") 10 | 11 | -------------------------------------------------------------------------------- /tur/ruby-2/lib-rubygems-install_update_options.rb.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../ruby-2.4.0/lib/rubygems/install_update_options.rb ./lib/rubygems/install_update_options.rb 2 | --- ../ruby-2.4.0/lib/rubygems/install_update_options.rb 2016-04-06 08:01:14.000000000 +0200 3 | +++ ./lib/rubygems/install_update_options.rb 2017-01-31 22:48:03.877466602 +0100 4 | @@ -232,7 +232,7 @@ 5 | # Default options for the gem install command. 6 | 7 | def install_update_defaults_str 8 | - '--document=rdoc,ri --wrappers' 9 | + '--document=rdoc,ri --wrappers,--env-shebang' 10 | end 11 | 12 | end 13 | -------------------------------------------------------------------------------- /tur/ruby-2/pty.c.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../ruby-2.4.0/ext/pty/pty.c ./ext/pty/pty.c 2 | --- ../ruby-2.4.0/ext/pty/pty.c 2016-04-29 21:12:52.000000000 -0400 3 | +++ ./ext/pty/pty.c 2017-01-13 07:15:02.848063672 -0500 4 | @@ -164,7 +164,7 @@ 5 | char errbuf[32]; 6 | 7 | if (argc == 0) { 8 | - const char *shellname = "/bin/sh"; 9 | + const char *shellname = "@TERMUX_PREFIX@/bin/sh"; 10 | 11 | if ((p = getenv("SHELL")) != NULL) { 12 | shellname = p; 13 | -------------------------------------------------------------------------------- /tur/ruby-2/ruby-is-ruby2.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Symlinks ruby to ruby2" 2 | TERMUX_SUBPKG_BREAKS="ruby" 3 | TERMUX_SUBPKG_CONFLICTS="ruby" 4 | TERMUX_SUBPKG_INCLUDE=" 5 | bin/bundle 6 | bin/bundler 7 | bin/erb 8 | bin/gem 9 | bin/irb 10 | bin/racc 11 | bin/racc2y 12 | bin/rake 13 | bin/rdoc 14 | bin/ruby 15 | bin/y2racc 16 | lib/libruby.so 17 | " 18 | -------------------------------------------------------------------------------- /tur/ruby-2/ruby-ri-2.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_INCLUDE=" 2 | bin/ri-2 3 | opt/ruby-2/share/ri-2 4 | opt/ruby-2/share/man/man1/ri-2.1.gz 5 | opt/ruby-2/bin/ri-2" 6 | TERMUX_SUBPKG_DESCRIPTION="Ruby documentation index" 7 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 8 | -------------------------------------------------------------------------------- /tur/ruby-2/tests/default_encoding_isutf8.sh: -------------------------------------------------------------------------------- 1 | assert_equals '#' $(ruby -e 'p Encoding.default_external') 2 | -------------------------------------------------------------------------------- /tur/ruby-2/tests/extension_modules_installed.sh: -------------------------------------------------------------------------------- 1 | ruby -e "require 'readline'" 2 | ruby -e "require 'openssl'" 3 | -------------------------------------------------------------------------------- /tur/rustc-nightly/0001-set-TERMUX_PKG_API_LEVEL.diff: -------------------------------------------------------------------------------- 1 | --- a/src/bootstrap/src/utils/cc_detect.rs 2 | +++ b/src/bootstrap/src/utils/cc_detect.rs 3 | @@ -244,7 +244,7 @@ 4 | }; 5 | 6 | // The earliest API supported by NDK r26d is 21. 7 | - let api_level = "21"; 8 | + let api_level = "@TERMUX_PKG_API_LEVEL@"; 9 | let compiler = format!("{}{}-{}", triple_translated, api_level, compiler.clang()); 10 | let host_tag = if cfg!(target_os = "macos") { 11 | // The NDK uses universal binaries, so this is correct even on ARM. 12 | -------------------------------------------------------------------------------- /tur/rustc-nightly/0003-link-with-libc++_shared.patch: -------------------------------------------------------------------------------- 1 | --- a/compiler/rustc_llvm/build.rs 2 | +++ b/compiler/rustc_llvm/build.rs 3 | @@ -350,6 +350,8 @@ 4 | || target.contains("aix") 5 | { 6 | "c++" 7 | + } else if target.contains("android") { 8 | + "c++_shared" 9 | } else if target.contains("netbsd") && llvm_static_stdcpp.is_some() { 10 | // NetBSD uses a separate library when relocation is required 11 | "stdc++_p" 12 | -------------------------------------------------------------------------------- /tur/rustc-nightly/0004-set-TMPDIR.patch: -------------------------------------------------------------------------------- 1 | --- a/library/std/src/sys/pal/unix/os.rs 2 | +++ b/library/std/src/sys/pal/unix/os.rs 3 | @@ -770,7 +770,7 @@ 4 | if #[cfg(all(target_vendor = "apple", not(miri)))] { 5 | darwin_temp_dir() 6 | } else if #[cfg(target_os = "android")] { 7 | - PathBuf::from("/data/local/tmp") 8 | + PathBuf::from("@TERMUX_PREFIX@/tmp") 9 | } else { 10 | PathBuf::from("/tmp") 11 | } 12 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-docs.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust documentation (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/share/doc/rust/html 6 | " 7 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-std-aarch64-linux-android.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust std for target aarch64-linux-android (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/aarch64-linux-android/lib/*.rlib 6 | opt/rust-nightly/lib/rustlib/aarch64-linux-android/lib/libstd-*.so 7 | " 8 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-std-armv7-linux-androideabi.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust std for target armv7-linux-androideabi (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/armv7-linux-androideabi/lib/*.rlib 6 | opt/rust-nightly/lib/rustlib/armv7-linux-androideabi/lib/libstd-*.so 7 | " 8 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-std-i686-linux-android.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust std for target i686-linux-android (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/i686-linux-android/lib/*.rlib 6 | opt/rust-nightly/lib/rustlib/i686-linux-android/lib/libstd-*.so 7 | " 8 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-std-wasm32-unknown-unknown.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust std for target wasm32-unknown-unknown (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/wasm32-unknown-unknown 6 | " 7 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-std-wasm32-wasip1.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust std for target wasm32-wasip1 (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/wasm32-wasip1 6 | " 7 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-std-wasm32-wasip2.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust std for target wasm32-wasip2 (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/wasm32-wasip2 6 | " 7 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-nightly-std-x86-64-linux-android.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust std for target x86_64-linux-android (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/x86_64-linux-android/lib/*.rlib 6 | opt/rust-nightly/lib/rustlib/x86_64-linux-android/lib/libstd-*.so 7 | " 8 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rust-src-nightly.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust source code files (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/src 6 | " 7 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rustc-cranelift-codegen-aarch64-linux-android.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust cranelift codegem for target aarch64-linux-android (nightly version)" 2 | TERMUX_SUBPKG_INCLUDE=" 3 | opt/rust-nightly/lib/rustlib/aarch64-linux-android/codegen-backends/librustc_codegen_cranelift*.so 4 | " 5 | TERMUX_SUBPKG_EXCLUDED_ARCHES="arm, i686, x86_64" 6 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rustc-cranelift-codegen-x86-64-linux-android.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust cranelift codegem for target x86_64-linux-android (nightly version)" 2 | TERMUX_SUBPKG_INCLUDE=" 3 | opt/rust-nightly/lib/rustlib/x86_64-linux-android/codegen-backends/librustc_codegen_cranelift*.so 4 | " 5 | TERMUX_SUBPKG_EXCLUDED_ARCHES="aarch64, arm, i686" 6 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rustc-dev-nightly.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust compiler development libs (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_INCLUDE="${_INCLUDED-}" 4 | -------------------------------------------------------------------------------- /tur/rustc-nightly/rustc-src-nightly.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Rust compiler source code files (nightly version)" 2 | TERMUX_SUBPKG_DEPEND_ON_PARENT=false 3 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 4 | TERMUX_SUBPKG_INCLUDE=" 5 | opt/rust-nightly/lib/rustlib/rustc-src 6 | " 7 | -------------------------------------------------------------------------------- /tur/rustc-nightly/syncfs.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | #include 4 | 5 | #if defined(__ANDROID_API__) && __ANDROID_API__ < 28 6 | 7 | int syncfs(int __fd) { 8 | return syscall(SYS_syncfs, __fd); 9 | } 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /tur/rustc-nightly/use-rustc-nightly: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/sh 2 | export PATH="/data/data/com.termux/files/usr/opt/rustc-nightly/bin:$PATH" 3 | -------------------------------------------------------------------------------- /tur/skyseg-ncnn/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://github.com/knyipab/skyseg-ncnn 2 | TERMUX_PKG_DESCRIPTION="Sky segmentation on image using ncnn machine learning model" 3 | TERMUX_PKG_DEPENDS="libncnn, opencv" 4 | TERMUX_PKG_LICENSE="MIT" 5 | TERMUX_PKG_MAINTAINER="@knyipab" 6 | TERMUX_PKG_VERSION="0.1.0" 7 | TERMUX_PKG_SRCURL="https://github.com/knyipab/skyseg-ncnn/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz" 8 | TERMUX_PKG_SHA256=c8c5d6afa02cfce886c10ee331ec2382214881febdd124a4fc151a94fe0c80ca 9 | TERMUX_PKG_AUTO_UPDATE=true 10 | -------------------------------------------------------------------------------- /tur/smallerc/smallerc-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="SmallerC for host (NOT for Termux)" 2 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 3 | TERMUX_SUBPKG_INCLUDE=" 4 | opt/${TERMUX_PKG_NAME}/cross/* 5 | " 6 | -------------------------------------------------------------------------------- /tur/smartdns/0003-do-not-call-setuid.patch: -------------------------------------------------------------------------------- 1 | --- a/src/smartdns.c 2 | +++ b/src/smartdns.c 3 | @@ -103,6 +103,7 @@ 4 | 5 | static int drop_root_privilege(void) 6 | { 7 | +#ifndef __ANDROID__ 8 | struct __user_cap_data_struct cap[2]; 9 | struct __user_cap_header_struct header; 10 | #ifdef _LINUX_CAPABILITY_VERSION_3 11 | @@ -137,6 +138,7 @@ 12 | } 13 | 14 | prctl(PR_SET_KEEPCAPS, 0, 0, 0, 0); 15 | +#endif 16 | return 0; 17 | } 18 | 19 | -------------------------------------------------------------------------------- /tur/suitesparse/graphblas-host-toolchain.cmake: -------------------------------------------------------------------------------- 1 | set ( CMAKE_SYSTEM_NAME "Linux" ) 2 | set ( CMAKE_SYSTEM_PROCESSOR "x86_64" ) 3 | set ( CMAKE_C_COMPILER "gcc" ) 4 | set ( CMAKE_C_FLAGS "" CACHE STRING "" FORCE ) 5 | set ( CMAKE_EXE_LINKER_FLAGS "" CACHE STRING "" FORCE ) 6 | set ( CMAKE_MODULE_LINKER_FLAGS "" CACHE STRING "" FORCE ) 7 | set ( CMAKE_SHARED_LINKER_FLAGS "" CACHE STRING "" FORCE ) 8 | set ( CMAKE_CROSSCOMPILING OFF ) 9 | -------------------------------------------------------------------------------- /tur/supertuxkart/supertuxkart-data-others.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Data files for supertuxkart (except textures and tracks)" 2 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | TERMUX_SUBPKG_INCLUDE=" 5 | share/supertuxkart/data/!(textures|tracks) 6 | " 7 | -------------------------------------------------------------------------------- /tur/supertuxkart/supertuxkart-data-textures.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Data files for supertuxkart (textures part)" 2 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | TERMUX_SUBPKG_INCLUDE=" 5 | share/supertuxkart/data/textures 6 | " 7 | -------------------------------------------------------------------------------- /tur/supertuxkart/supertuxkart-data-tracks.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Data files for supertuxkart (tracks part)" 2 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | TERMUX_SUBPKG_INCLUDE=" 5 | share/supertuxkart/data/tracks 6 | " 7 | -------------------------------------------------------------------------------- /tur/supertuxkart/supertuxkart-data.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Data files for supertuxkart (metapackage)" 2 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 3 | TERMUX_SUBPKG_DEPEND_ON_PARENT=no 4 | TERMUX_SUBPKG_DEPENDS="supertuxkart-data-others, supertuxkart-data-textures, supertuxkart-data-tracks" 5 | TERMUX_SUBPKG_INCLUDE=" 6 | share/supertuxkart/data/.placeholder 7 | " 8 | -------------------------------------------------------------------------------- /tur/surreal/librocksdb-sys.diff: -------------------------------------------------------------------------------- 1 | --- a/rocksdb/util/compression.h 2 | +++ b/rocksdb/util/compression.h 3 | @@ -33,9 +33,7 @@ 4 | #include 5 | #endif 6 | 7 | -#ifdef ZLIB 8 | -#include 9 | -#endif 10 | +#include "@TERMUX_PREFIX@/include/zlib.h" 11 | 12 | #ifdef BZIP2 13 | #include 14 | -------------------------------------------------------------------------------- /tur/tabby/0002-llama-cpp-no-stdcxxfs.patch: -------------------------------------------------------------------------------- 1 | --- a/crates/llama-cpp-server/llama.cpp/ggml/src/CMakeLists.txt 2 | +++ b/crates/llama-cpp-server/llama.cpp/ggml/src/CMakeLists.txt 3 | @@ -214,7 +214,7 @@ 4 | target_link_libraries(ggml PUBLIC ggml-base) 5 | 6 | if (CMAKE_SYSTEM_NAME MATCHES "Linux") 7 | - target_link_libraries(ggml PRIVATE dl stdc++fs) 8 | + target_link_libraries(ggml PRIVATE dl) 9 | endif() 10 | 11 | function(ggml_add_backend_library backend) 12 | -------------------------------------------------------------------------------- /tur/thunk-gen/thunk-gen-cross.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="thunk-gen for host (NOT for Termux)" 2 | TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true 3 | TERMUX_SUBPKG_INCLUDE=" 4 | opt/${TERMUX_PKG_NAME}/cross/* 5 | " 6 | -------------------------------------------------------------------------------- /tur/trigger-rally/patch.patch: -------------------------------------------------------------------------------- 1 | diff -Naur trigger-rally-0.6.6.1/src/GNUmakefile trmod/src/GNUmakefile 2 | --- a/src/GNUmakefile 2022-09-20 15:20:05.989840734 +0200 3 | +++ b/src/GNUmakefile 2022-09-20 15:21:37.754668511 +0200 4 | @@ -127,7 +127,7 @@ 5 | @printf "\t-> %s\n" $@ 6 | @$(CXX) -o $@ $(OBJFILES) $(LDFLAGS) 7 | @printf "strip\t%s\n" $@ 8 | - @strip $@ 9 | + @$(STRIP) $@ 10 | 11 | # 12 | # removes object files, dependency files, executable and 13 | -------------------------------------------------------------------------------- /tur/turbo-text-editor/0001-include-malloc.patch: -------------------------------------------------------------------------------- 1 | --- a/deps/tvision/include/tvision/compat/malloc/malloc.h 2 | +++ b/deps/tvision/include/tvision/compat/malloc/malloc.h 3 | @@ -2,6 +2,9 @@ 4 | #define TVISION_COMPAT_MALLOC_H 5 | 6 | #include 7 | +#ifdef __ANDROID__ 8 | +#include_next 9 | +#endif 10 | 11 | #if __has_include() 12 | #include 13 | -------------------------------------------------------------------------------- /tur/uutils-coreutils/0001-selinux.patch: -------------------------------------------------------------------------------- 1 | --- a/GNUmakefile 2 | +++ b/GNUmakefile 3 | @@ -58,7 +58,7 @@ 4 | TOYBOX_SRC := $(TOYBOX_ROOT)/toybox-$(TOYBOX_VER) 5 | 6 | 7 | -ifdef SELINUX_ENABLED 8 | +ifeq ($(SELINUX_ENABLED),) 9 | override SELINUX_ENABLED := 0 10 | # Now check if we should enable it (only on non-Windows) 11 | ifneq ($(OS),Windows_NT) 12 | -------------------------------------------------------------------------------- /tur/virglrenderer-mesa-zink/vtest-vtest_protocol.h.patch: -------------------------------------------------------------------------------- 1 | --- a/vtest/vtest_protocol.h 2 | +++ b/vtest/vtest_protocol.h 3 | @@ -25,7 +25,7 @@ 4 | #ifndef VTEST_PROTOCOL 5 | #define VTEST_PROTOCOL 6 | 7 | -#define VTEST_DEFAULT_SOCKET_NAME "/tmp/.virgl_test" 8 | +#define VTEST_DEFAULT_SOCKET_NAME "@TERMUX_PREFIX@/tmp/.virgl_test" 9 | 10 | #ifdef VIRGL_RENDERER_UNSTABLE_APIS 11 | #define VTEST_PROTOCOL_VERSION 3 12 | -------------------------------------------------------------------------------- /tur/wcslib/0002-skip-makefile-configure.patch: -------------------------------------------------------------------------------- 1 | diff --git a/GNUmakefile b/GNUmakefile 2 | index f6d5c35..582ce89 100644 3 | --- a/GNUmakefile 4 | +++ b/GNUmakefile 5 | @@ -159,7 +159,6 @@ config.status : configure 6 | -@ echo " ARFLAGS = $${ARFLAGS-(undefined)}" 7 | -@ echo " LDFLAGS = $${LDFLAGS-(undefined)}" 8 | -@ echo '' 9 | - ./configure --no-create 10 | 11 | 12 | #----------------------------------------------------------------------------- 13 | -------------------------------------------------------------------------------- /tur/wine-devel/9999-fix-winebuild-as-type.patch.beforehostbuild: -------------------------------------------------------------------------------- 1 | --- a/tools/winebuild/utils.c 2 | +++ b/tools/winebuild/utils.c 3 | @@ -293,7 +293,7 @@ 4 | struct strarray args = empty_strarray; 5 | const char *file; 6 | unsigned int i; 7 | - int using_cc = 0; 8 | + int using_cc = 1; 9 | 10 | if (cc_command.count) 11 | { 12 | -------------------------------------------------------------------------------- /tur/wine-stable/9999-fix-winebuild-as-type.patch.beforehostbuild: -------------------------------------------------------------------------------- 1 | --- a/tools/winebuild/utils.c 2 | +++ b/tools/winebuild/utils.c 3 | @@ -293,7 +293,7 @@ 4 | struct strarray args = empty_strarray; 5 | const char *file; 6 | unsigned int i; 7 | - int using_cc = 0; 8 | + int using_cc = 1; 9 | 10 | if (cc_command.count) 11 | { 12 | -------------------------------------------------------------------------------- /tur/wine-staging/9999-fix-winebuild-as-type.patch.beforehostbuild: -------------------------------------------------------------------------------- 1 | --- a/tools/winebuild/utils.c 2 | +++ b/tools/winebuild/utils.c 3 | @@ -293,7 +293,7 @@ 4 | struct strarray args = empty_strarray; 5 | const char *file; 6 | unsigned int i; 7 | - int using_cc = 0; 8 | + int using_cc = 1; 9 | 10 | if (cc_command.count) 11 | { 12 | -------------------------------------------------------------------------------- /tur/zerotier-one/0003-osutils-termux-prefix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/osdep/OSUtils.cpp b/osdep/OSUtils.cpp 2 | index 83c615d..7c04d48 100644 3 | --- a/osdep/OSUtils.cpp 4 | +++ b/osdep/OSUtils.cpp 5 | @@ -444,7 +444,7 @@ std::string OSUtils::platformDefaultHomePath() 6 | return std::string("/var/db/zerotier-one"); 7 | #else 8 | // Use /var/lib for Linux and other *nix 9 | - return std::string("/var/lib/zerotier-one"); 10 | + return std::string("@TERMUX_PREFIX@/var/lib/zerotier-one"); 11 | #endif 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /tur/zerotier-one/0006-dummy-pthread-affinity.patch: -------------------------------------------------------------------------------- 1 | --- a/osdep/LinuxEthernetTap.cpp 2 | +++ b/osdep/LinuxEthernetTap.cpp 3 | @@ -232,7 +232,11 @@ 4 | cpu_set_t cpuset; 5 | CPU_ZERO(&cpuset); 6 | CPU_SET(pinCore, &cpuset); 7 | +#ifndef __ANDROID__ 8 | int rc = pthread_setaffinity_np(self, sizeof(cpu_set_t), &cpuset); 9 | +#else 10 | + int rc = sched_setaffinity(pthread_gettid_np(self), sizeof(cpu_set_t), &cpuset); 11 | +#endif 12 | if (rc != 0) 13 | { 14 | fprintf(stderr, "Failed to pin tap thread %d to core %d: %s\n", i, pinCore, strerror(errno)); 15 | --------------------------------------------------------------------------------