fix sysconf glibc and locale-gen added
This commit is contained in:
1 parent
af598d47bc
commit
fdf609670a
4 files changed
+53
-6
No files matched your search
@@ -8,7 +8,7 @@ email='parduscix@yandex.ru'
|
||||
maintainer='sulincix'
|
||||
license=('GPLv3')
|
||||
source=("https://gitlab.com/sulix/devel/sources/base-files/-/archive/$version/base-files-$version.zip")
|
||||
md5sums=('009efca6fc8897379ac844b786bfb585')
|
||||
md5sums=('3f58695b0babbca2691a8bbcadd2d131')
|
||||
arch=(x86_64)
|
||||
group=(system.base)
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
ldconfig
|
||||
/sbin/ldconfig
|
||||
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
LOCALEGEN=/etc/locale.gen
|
||||
LOCALES=/usr/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 /usr/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 -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale; \
|
||||
echo ' done'; \
|
||||
done < $LOCALEGEN
|
||||
echo "Generation complete."
|
||||
@@ -14,6 +14,7 @@ source=('https://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.xz'
|
||||
'x86_64-linux-gnu.conf'
|
||||
'glibc.sysconf'
|
||||
'reenable_DT_HASH.patch'
|
||||
'locale-gen'
|
||||
)
|
||||
md5sums=('00e9b89e043340f688bc93ec03239b57'
|
||||
'SKIP'
|
||||
@@ -21,6 +22,7 @@ md5sums=('00e9b89e043340f688bc93ec03239b57'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
)
|
||||
group=(system.base)
|
||||
|
||||
@@ -32,7 +34,7 @@ setup(){
|
||||
# Thx archlinux
|
||||
patch -Np1 -i "../reenable_DT_HASH.patch"
|
||||
opts=(
|
||||
--prefix=/
|
||||
--prefix=/usr
|
||||
--mandir=/share/man
|
||||
--infodir=/share/info
|
||||
--with-bugurl=http://gitlab.com/sulix/main/issues
|
||||
@@ -41,6 +43,7 @@ setup(){
|
||||
--enable-lock-elision
|
||||
--enable-multi-arch
|
||||
--enable-static-pie
|
||||
--enable-static-nss
|
||||
--enable-stack-protector=all
|
||||
--enable-kernel=5.10.0
|
||||
--enable-stackguard-randomization
|
||||
@@ -65,8 +68,8 @@ setup(){
|
||||
cd glibc-build
|
||||
pwd
|
||||
../configure ${opts[@]} \
|
||||
--libdir=/lib \
|
||||
--libexecdir=/lib/glibc
|
||||
--libdir=/lib64 \
|
||||
--libexecdir=/lib64/glibc
|
||||
cd ..
|
||||
}
|
||||
build(){
|
||||
@@ -90,7 +93,7 @@ package(){
|
||||
make -C $bdir install -j$(nproc --all)
|
||||
fi
|
||||
done
|
||||
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/ ${DESTDIR}/etc/sysconf.d/
|
||||
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/ ${DESTDIR}/etc/sysconf.d/ ${DESTDIR}/bin
|
||||
install ../ld.so.conf ${DESTDIR}/etc/ld.so.conf
|
||||
install ../usr-support.conf ${DESTDIR}/etc/ld.so.conf.d/
|
||||
install ../x86_64-linux-gnu.conf ${DESTDIR}/etc/ld.so.conf.d/
|
||||
@@ -98,5 +101,7 @@ package(){
|
||||
rm -f ${DESTDIR}/etc/ld.so.cache
|
||||
# install sysconf trigger
|
||||
install ../glibc.sysconf ${DESTDIR}/etc/sysconf.d/glibc
|
||||
# install extra tools
|
||||
install ../locale-gen ${DESTDIR}/bin/locale-gen
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user