termux-pacman / glibc-packages

Glibc packages for termux
MIT License
134 stars 19 forks source link

[Bug]: can't build with custom prefix path #274

Closed xoureldeen closed 3 months ago

xoureldeen commented 3 months ago

Problem description

i start to build glibc for termux fork with another package name but i got this 'The cgct tools were not found, run './scripts/setup-cgct.sh''

========================================= Note: i changed all "com.termux" to "com.vectras.boxvidra" also changed termux-packages repo url to modified package name fork + and removed "-I" option in build-package.sh

========================================= Urls: https://github.com/Boxvidra/glibc-packages https://github.com/Boxvidra/termux-packages

========================================= LOGS:

gpg: key B0076E490B71616B: 18 signatures not checked due to missing keys gpg: key B0076E490B71616B: public key "Henrik Grimler henrik@grimler.se" imported gpg: Total number processed: 1 gpg: imported: 1 gpg: no ultimately trusted keys found gpg (GnuPG) 2.2.27; Copyright (C) 2021 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. gpg: key 5A897D96E57CF20C: public key "Termux Releases (Termux automatic builds) contact@termux.dev" imported gpg: Total number processed: 1 gpg: imported: 1 gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 1 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 1 signed: 0 trust: 1-, 0q, 0n, 0m, 0f, 0u gpg: next trustdb check due at 2026-05-06 gpg (GnuPG) 2.2.27; Copyright (C) 2021 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. gpg: key 389CEED64573DFCA: public key "termux-pacman (security signature) pacman@termux.dev" imported gpg: Total number processed: 1 gpg: imported: 1 gpg (GnuPG) 2.2.27; Copyright (C) 2021 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ERROR: The cgct tools were not found, run './scripts/setup-cgct.sh' Error: Process completed with exit code 1.

System information

used-build-server-info:

OS: Ubuntu 22.04.2 LTS x86_64
Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-7.2)
Kernel: 5.15.0-112-generic
Packages: 1248 (dpkg), 4 (snap)
Shell: bash 5.1.16
Terminal: /dev/pts/0
CPU: Common KVM (16) @ 2.599GHz
GPU: 00:02.0 Vendor 1234 Device 1111
Memory: 1245MiB / 15986MiB
Maxython commented 3 months ago

The build-package.sh builder cannot find cgct because the specified path to cgct is incorrect. The path to it should be /data/data/com.termux/cgct, but due to these changes the path to cgct is not assembled correctly.

Also note that in order for the builder to be able to build packages for your fork Termux, you need to build the glibc and linux-api-headers-glibc packages yourself, and also configure the cgct prefix using the CGCT_APP_PREFIX variable, which must be set to builder script.