mirror of
				https://github.com/termux-pacman/glibc-packages.git
				synced 2025-11-04 11:29:08 +00:00 
			
		
		
		
	- updated to 2.41
- added the glibc32 subpackage
- updated fakesyscall handling scheme
- moved all disabled syscalls to fakesyscall list
- added new syscalls to fakesyscall list
- disabled removal of old locales in `locale-gen`
- implemented syslog function, which is configured to work with the android log system
- implemented analog variables `LD_*` to customize glibc environment without affecting bionic environment ('GLIBC_LD_*')
- improved source code for flexible glibc compilation
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!@TERMUX_PREFIX@/bin/sh
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
LOCALEGEN=@TERMUX_PREFIX@/etc/locale.gen
 | 
						|
LOCALES=@TERMUX_PREFIX@/share/i18n/locales
 | 
						|
if [ -n "$POSIXLY_CORRECT" ]; then
 | 
						|
  unset POSIXLY_CORRECT
 | 
						|
fi
 | 
						|
 | 
						|
 | 
						|
[ -f $LOCALEGEN -a -s $LOCALEGEN ] || exit 0;
 | 
						|
 | 
						|
# Remove all old locale dir and locale-archive before generating new
 | 
						|
# locale data.
 | 
						|
rm -rf @TERMUX_PREFIX@/lib/locale/locale-archive || true
 | 
						|
 | 
						|
umask 022
 | 
						|
 | 
						|
is_entry_ok() {
 | 
						|
  if [ -n "$locale" -a -n "$charset" ] ; then
 | 
						|
    true
 | 
						|
  else
 | 
						|
    echo "error: Bad entry '$locale $charset'"
 | 
						|
    false
 | 
						|
  fi
 | 
						|
}
 | 
						|
 | 
						|
echo "Generating locales..."
 | 
						|
while read locale charset; do \
 | 
						|
	case $locale in \#*) continue;; "") continue;; esac; \
 | 
						|
	is_entry_ok || continue
 | 
						|
	echo -n "  `echo $locale | sed 's/\([^.\@]*\).*/\1/'`"; \
 | 
						|
	echo -n ".$charset"; \
 | 
						|
	echo -n `echo $locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`; \
 | 
						|
	echo -n '...'; \
 | 
						|
        if [ -f $LOCALES/$locale ]; then input=$locale; else \
 | 
						|
        input=`echo $locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; fi; \
 | 
						|
	localedef --no-archive -i $input -c -f $charset -A @TERMUX_PREFIX@/share/locale/locale.alias $locale; \
 | 
						|
	echo ' done'; \
 | 
						|
done < $LOCALEGEN
 | 
						|
echo "Generation complete."
 |