From ca5992347a2c86e3771443f5e4335cf32c2c6852 Mon Sep 17 00:00:00 2001 From: aliriza Date: Fri, 25 Nov 2022 08:39:39 +0000 Subject: [PATCH] glibc replace turkish buggy locale file --- sys/base/glibc/{ => data}/glibc.sysconf | 0 .../glibc/{ => data}/reenable_DT_HASH.patch | 0 sys/base/glibc/data/tr_TR | 239 ++++++++++++++++++ sys/base/glibc/{ => ld.conf}/ld.so.conf | 0 sys/base/glibc/{ => ld.conf}/usr-support.conf | 0 .../glibc/{ => ld.conf}/x86_64-linux-gnu.conf | 0 sys/base/glibc/{ => scripts}/locale-gen | 1 + sys/base/glibc/{ => scripts}/revdep-rebuild | 0 sys/base/glibc/ympbuild | 18 +- 9 files changed, 251 insertions(+), 7 deletions(-) rename sys/base/glibc/{ => data}/glibc.sysconf (100%) rename sys/base/glibc/{ => data}/reenable_DT_HASH.patch (100%) create mode 100644 sys/base/glibc/data/tr_TR rename sys/base/glibc/{ => ld.conf}/ld.so.conf (100%) rename sys/base/glibc/{ => ld.conf}/usr-support.conf (100%) rename sys/base/glibc/{ => ld.conf}/x86_64-linux-gnu.conf (100%) rename sys/base/glibc/{ => scripts}/locale-gen (97%) rename sys/base/glibc/{ => scripts}/revdep-rebuild (100%) diff --git a/sys/base/glibc/glibc.sysconf b/sys/base/glibc/data/glibc.sysconf similarity index 100% rename from sys/base/glibc/glibc.sysconf rename to sys/base/glibc/data/glibc.sysconf diff --git a/sys/base/glibc/reenable_DT_HASH.patch b/sys/base/glibc/data/reenable_DT_HASH.patch similarity index 100% rename from sys/base/glibc/reenable_DT_HASH.patch rename to sys/base/glibc/data/reenable_DT_HASH.patch diff --git a/sys/base/glibc/data/tr_TR b/sys/base/glibc/data/tr_TR new file mode 100644 index 00000000..dd1e9852 --- /dev/null +++ b/sys/base/glibc/data/tr_TR @@ -0,0 +1,239 @@ +comment_char % +escape_char / + +% This file is part of the GNU C Library and contains locale data. +% The Free Software Foundation does not claim any copyright interest +% in the locale data contained in this file. The foregoing does not +% affect the license of the GNU C Library as a whole. It does not +% exempt you from the conditions of the license if your use would +% otherwise be governed by that license. + +% Turkish Language Locale for Turkey +% Source: RAP +% Address: Sankt Jo//rgens Alle 8 +% DK-1615 Ko//benhavn V, Danmark +% Contact: Keld Simonsen +% Email: Keld.Simonsen@dkuug.dk +% Tel: +45 - 31226543 +% Fax: +45 - 33256543 +% Language: tr +% Territory: TR +% Revision: 4.4 +% Date: 1997-03-18 +% Application: general +% Users: general + +% Corrections by: +% 1998-01-11T15:54:39 +% Onur Tolga Sehitoglu , +% Dept. of Comp. Eng. METU/Ankara Turkey +% 2004-05-29T15:13 +% Deniz Akkus Kanca +% 2004-10-30T10:28:35 +% Nilgn Belma Bugner + +LC_IDENTIFICATION +title "Turkish locale for Turkey" +source "RAP" +address "Sankt Jrgens Alle 8, DK-1615 Kbenhavn V, Danmark" +contact "" +email "bug-glibc-locales@gnu.org" +tel "" +fax "" +language "Turkish" +territory "Turkey" +revision "1.0" +date "2021-09-27" + +category "i18n:2012";LC_IDENTIFICATION +category "i18n:2012";LC_CTYPE +category "i18n:2012";LC_COLLATE +category "i18n:2012";LC_TIME +category "i18n:2012";LC_NUMERIC +category "i18n:2012";LC_MONETARY +category "i18n:2012";LC_MESSAGES +category "i18n:2012";LC_PAPER +category "i18n:2012";LC_NAME +category "i18n:2012";LC_ADDRESS +category "i18n:2012";LC_TELEPHONE +category "i18n:2012";LC_MEASUREMENT +END LC_IDENTIFICATION + +LC_COLLATE +copy "iso14651_t1" + +% CLDR collation rules for Turkish: +% (see: https://unicode.org/cldr/trac/browser/trunk/common/collation/tr.xml) +% +% &C[A B C Ç D E F G H I İ J K L M N O Ö P Q R S Ş T U Ü V W X Y Z] +% +% The following rules implement the same order for glibc. + +collating-symbol +collating-symbol +collating-symbol +collating-symbol +collating-symbol +collating-symbol +collating-symbol + +reorder-after + + + +reorder-after + +reorder-after + +reorder-after + +reorder-after + +reorder-after + +reorder-after + + + ;;;IGNORE % ç + ;;;IGNORE % Ç + ;;;IGNORE % ğ + ;;;IGNORE % Ğ + ;;;IGNORE % ı + ;;;IGNORE % I + ;;;IGNORE % i + ;;;IGNORE % İ + ;;;IGNORE % ö + ;;;IGNORE % Ö + ;;;IGNORE % ş + ;;;IGNORE % Ş + ;;;IGNORE % ü + ;;;IGNORE % Ü + +reorder-end + +END LC_COLLATE + +LC_CTYPE +copy "en_GB" +END LC_CTYPE + +LC_MESSAGES +yesexpr "^[+1yYeE]" +noexpr "^[-0nNhH]" +yesstr "evet" +nostr "hayr" +END LC_MESSAGES + +LC_MONETARY +% ISO-4217 (2004-10-25): TRY 949 2 +int_curr_symbol "TRY " +% TL +currency_symbol "" +mon_decimal_point "," +mon_thousands_sep "." +mon_grouping 3;3 +positive_sign "" +negative_sign "-" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 0 +p_sep_by_space 1 +n_cs_precedes 0 +n_sep_by_space 1 +p_sign_posn 1 +n_sign_posn 1 +END LC_MONETARY + +LC_NUMERIC +decimal_point "," +thousands_sep "." +grouping 3;3 +END LC_NUMERIC + +LC_TIME +abday "Paz";"Pzt";"Sal";/ + "r";"Pr";"Cum";"Cts" +day "Pazar";/ + "Pazartesi";/ + "Sal";/ + "aramba";/ + "Perembe";/ + "Cuma";/ + "Cumartesi" +abmon "Oca";"ub";/ + "Mar";"Nis";/ + "May";"Haz";/ + "Tem";"Au";/ + "Eyl";"Eki";/ + "Kas";"Ara" +mon "Ocak";/ + "ubat";/ + "Mart";/ + "Nisan";/ + "Mays";/ + "Haziran";/ + "Temmuz";/ + "Austos";/ + "Eyll";/ + "Ekim";/ + "Kasm";/ + "Aralk" +d_t_fmt "%a %d %b %Y %T" +date_fmt "%a %d %b %Y %T %Z" +d_fmt "%m//%d//%Y" +t_fmt "%T" +am_pm "";"S" +t_fmt_ampm "%I:%M:%S %p" +week 7;19971130;1 +first_weekday 2 +END LC_TIME + +LC_PAPER +copy "i18n" +END LC_PAPER + +LC_TELEPHONE +tel_int_fmt "+%c %a %l" +int_prefix "90" +int_select "00" +END LC_TELEPHONE + +LC_MEASUREMENT +copy "i18n" +END LC_MEASUREMENT + +LC_NAME +name_fmt "%d%t%g%t%m%t%f" +name_gen "Sayn" +name_mr "Bay" +name_mrs "Bayan" +name_miss "Bayan" +name_ms "Bayan" +END LC_NAME + +LC_ADDRESS +postal_fmt "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N" +country_name "Trkiye" +country_post "TR" +country_car "TR" +country_isbn 975 +country_num 792 +country_ab2 "TR" +country_ab3 "TUR" +lang_name "Trke" +lang_term "tur" +lang_lib "tur" +lang_ab "tr" +END LC_ADDRESS diff --git a/sys/base/glibc/ld.so.conf b/sys/base/glibc/ld.conf/ld.so.conf similarity index 100% rename from sys/base/glibc/ld.so.conf rename to sys/base/glibc/ld.conf/ld.so.conf diff --git a/sys/base/glibc/usr-support.conf b/sys/base/glibc/ld.conf/usr-support.conf similarity index 100% rename from sys/base/glibc/usr-support.conf rename to sys/base/glibc/ld.conf/usr-support.conf diff --git a/sys/base/glibc/x86_64-linux-gnu.conf b/sys/base/glibc/ld.conf/x86_64-linux-gnu.conf similarity index 100% rename from sys/base/glibc/x86_64-linux-gnu.conf rename to sys/base/glibc/ld.conf/x86_64-linux-gnu.conf diff --git a/sys/base/glibc/locale-gen b/sys/base/glibc/scripts/locale-gen similarity index 97% rename from sys/base/glibc/locale-gen rename to sys/base/glibc/scripts/locale-gen index c2298d00..c962eb5f 100644 --- a/sys/base/glibc/locale-gen +++ b/sys/base/glibc/scripts/locale-gen @@ -13,6 +13,7 @@ fi # Remove all old locale dir and locale-archive before generating new # locale data. +mkdir -p /usr/lib64/locale/ rm -rf /usr/lib64/locale/locale-archive || true umask 022 diff --git a/sys/base/glibc/revdep-rebuild b/sys/base/glibc/scripts/revdep-rebuild similarity index 100% rename from sys/base/glibc/revdep-rebuild rename to sys/base/glibc/scripts/revdep-rebuild diff --git a/sys/base/glibc/ympbuild b/sys/base/glibc/ympbuild index 353c2112..fdc1ec69 100644 --- a/sys/base/glibc/ympbuild +++ b/sys/base/glibc/ympbuild @@ -10,13 +10,14 @@ license=('GPLv3') arch=(x86_64) dontstrip="31" source=('https://ftp.gnu.org/gnu/glibc/glibc-2.36.tar.xz' - 'ld.so.conf' - 'usr-support.conf' - 'x86_64-linux-gnu.conf' - 'glibc.sysconf' - 'reenable_DT_HASH.patch' - 'locale-gen' - 'revdep-rebuild' + 'ld.conf/ld.so.conf' + 'ld.conf/usr-support.conf' + 'ld.conf/x86_64-linux-gnu.conf' + 'data/glibc.sysconf' + 'data/reenable_DT_HASH.patch' + 'scripts/locale-gen' + 'scripts/revdep-rebuild' + 'data/tr_TR' ) md5sums=('00e9b89e043340f688bc93ec03239b57' 'SKIP' @@ -26,6 +27,7 @@ md5sums=('00e9b89e043340f688bc93ec03239b57' 'SKIP' 'SKIP' 'SKIP' + 'SKIP' ) uses=(multilib) group=(sys.base) @@ -112,5 +114,7 @@ package(){ # install extra tools install ../locale-gen ${DESTDIR}/bin/locale-gen install ../revdep-rebuild ${DESTDIR}/bin/revdep-rebuild + # replace buggy turkish format with better one + install ../tr_TR ${DESTDIR}/usr/share/i18n/locales/tr_TR }