Profile cover photo
Profile photo
objectiveCyd (MLO)
307 followers
307 followers
About
objectiveCyd's interests
View all
objectiveCyd's posts

Post has shared content
I've fixed the issue with compiling libunwind, but now I'm seeing another error when compiling using clang that points to some missing headers:

error: unknown type name '__size_t'

The code throwing the error:
typedef __size_t size_t;

Any ideas?


Are there recommended environmental variables to use for building with clang in Termux?

I'm attempting to build libunwind and the linker is failing with 'undefined reference to…' errors.

Are there recommended environmental variables to use for building with clang in Termux?

I'm attempting to build libunwind and the linker is failing with 'undefined reference to…' errors.

Is there a Termux package that emulates the behavior of ldconfig?

Again, working on a port and the build script calls ldconfig like so:

if ! [ -x "$(command -v ldconfig)" ]; then
echo "ldconfig is not in PATH, trying /sbin/ldconfig."
LDCONFIG_COMMAND="/sbin/ldconfig"
else
LDCONFIG_COMMAND="ldconfig"
fi

[ -z "$($LDCONFIG_COMMAND -p | grep libunwind)" ] && say_err "Unable to locate libu$
[ -z "$($LDCONFIG_COMMAND -p | grep libssl)" ] && say_err "Unable to locate libssl.$
[ -z "$($LDCONFIG_COMMAND -p | grep libcurl)" ] && say_err "Unable to locate libcur$
[ -z "$($LDCONFIG_COMMAND -p | grep libicu)" ] && say_err "Unable to locate libicu.$
fi

Is there a termux utility or package that's an alternative for tput?

I'm working on a port and one of the build scripts uses tput to test if the terminal supports color, like so:
# see if it supports colors
ncolors=$(tput colors)
if [ -n "$ncolors" ] && [ $ncolors -ge 8 ]; then
bold="$(tput bold || echo)"
normal="$(tput sgr0 || echo)"
black="$(tput setaf 0 || echo)"
red="$(tput setaf 1 || echo)"
green="$(tput setaf 2 || echo)"
yellow="$(tput setaf 3 || echo)"
blue="$(tput setaf 4 || echo)"
magenta="$(tput setaf 5 || echo)"
cyan="$(tput setaf 6 || echo)"
white="$(tput setaf 7 || echo)"

Basically I'm looking for something that woukd generate similar output.

EDIT: for other clusers like me…ncurses-utils contains tput.

Is it possible to colorize the bash shell output for commands like grep in Termux?
I've tried setting GREP_COLORS along with CLICOLOR=1 and GREP_OPTIONS without success.

Is there a way to roll back a package update to the previous version?
I looked though the apt manual but didn't see anything helpful

Are there guidelines anywhere for submitting ports to Termux for distribution via apt?

I checked the main repo on Github as well as the Termux website and didn't see anything.

Maintenance Window Horror Stories
Showing up at 2:45am for a 3am maintenance window
...at a building in which they cut the AC at night
...to find the freezer ice-maker is broken.

I have more, but since I'm currently in the middle of the one above, please share yours in the comments.
Wait while more posts are being loaded