patches/glibc/ports-2.10.1/280-new-valencian-locale.patch
author Anthony Foiani <anthony.foiani@gmail.com>
Thu May 19 23:06:16 2011 +0200 (2011-05-19)
changeset 2461 ec30b191f0e3
permissions -rw-r--r--
complibs/ppl: build only C and C++ interfaces for PPL

By default, PPL wants to build interfaces for any of a variety of
langauges it finds on the local host (python, java, possibly perl, also
more esoteric languages such as ocaml and prolog).

These extra interfaces can double the compile time for the library. For
single-process builds, I found a savings of more than 40%:

default / j1: 716s total, 143.2s avg, 0.52s stdev
just_c / j1: 406s total, 81.2s avg, 0.33s stdev
just_c_cpp / j1: 413s total, 82.6s avg, 0.22s stdev

And for multi-process builds, it approached 50%:

default / j4: 625s total, 125.0s avg, 0.57s stdev
just_c / j4: 338s total, 67.6s avg, 1.25s stdev
just_c_cpp / j4: 327s total, 65.4s avg, 0.36s stdev

Since the PPL we build within ct-ng is only used by GCC, we only need to
build the C and C++ interfaces.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
     1 http://bugs.gentoo.org/show_bug.cgi?id=131815
     2 http://sourceware.org/bugzilla/show_bug.cgi?id=2522
     3 
     4 diff -durN glibc-2.10.1.orig/localedata/SUPPORTED glibc-2.10.1/localedata/SUPPORTED
     5 --- glibc-2.10.1.orig/localedata/SUPPORTED	2009-04-18 10:43:52.000000000 +0200
     6 +++ glibc-2.10.1/localedata/SUPPORTED	2009-11-13 00:50:20.000000000 +0100
     7 @@ -72,6 +72,8 @@
     8  ca_ES.UTF-8/UTF-8 \
     9  ca_ES/ISO-8859-1 \
    10  ca_ES@euro/ISO-8859-15 \
    11 +ca_ES.UTF-8@valencia/UTF-8 \
    12 +ca_ES@valencia/ISO-8859-15 \
    13  ca_FR.UTF-8/UTF-8 \
    14  ca_FR/ISO-8859-15 \
    15  ca_IT.UTF-8/UTF-8 \
    16 diff -durN glibc-2.10.1.orig/localedata/locales/ca_ES@valencia glibc-2.10.1/localedata/locales/ca_ES@valencia
    17 --- glibc-2.10.1.orig/localedata/locales/ca_ES@valencia	1970-01-01 01:00:00.000000000 +0100
    18 +++ glibc-2.10.1/localedata/locales/ca_ES@valencia	2009-11-13 00:50:20.000000000 +0100
    19 @@ -0,0 +1,96 @@
    20 +comment_char %
    21 +escape_char  /
    22 +%
    23 +% Valencian (southern Catalan) locale for Spain with Euro
    24 +%
    25 +% Note that this locale is almost the same as ca_ES@euro.  The point of having
    26 +% a separate locale is only for PO translations, which have a lot of social
    27 +% support and are very appreciated by the Valencian-speaking community.
    28 +%
    29 +% Contact: Jordi Mallach
    30 +% Email: jordi@gnu.org
    31 +% Tel:
    32 +% Fax:
    33 +% Language: ca
    34 +% Territory: ES
    35 +% Option: euro
    36 +% Revision: 1.0
    37 +% Date: 2006-04-06
    38 +% Application: general
    39 +% Users: general
    40 +% Repertoiremap: mnemonic,ds
    41 +% Charset: ISO-8859-15
    42 +% Distribution and use is free, also
    43 +% for commercial purposes.
    44 +
    45 +LC_IDENTIFICATION
    46 +title      "Valencian (southern Catalan) locale for Spain with Euro"
    47 +source     ""
    48 +address    ""
    49 +contact    "Jordi Mallach"
    50 +email      "jordi@gnu.org"
    51 +tel        ""
    52 +fax        ""
    53 +language   "Catalan"
    54 +territory  "Spain"
    55 +revision   "1.0"
    56 +date       "2006-04-06"
    57 +%
    58 +category  "ca_ES@valencia:2006";LC_IDENTIFICATION
    59 +category  "ca_ES@valencia:2006";LC_CTYPE
    60 +category  "ca_ES@valencia:2006";LC_COLLATE
    61 +category  "ca_ES@valencia:2006";LC_MONETARY
    62 +category  "ca_ES@valencia:2006";LC_NUMERIC
    63 +category  "ca_ES@valencia:2006";LC_TIME
    64 +category  "ca_ES@valencia:2006";LC_MESSAGES
    65 +category  "ca_ES@valencia:2006";LC_PAPER
    66 +category  "ca_ES@valencia:2006";LC_NAME
    67 +category  "ca_ES@valencia:2006";LC_ADDRESS
    68 +category  "ca_ES@valencia:2006";LC_TELEPHONE
    69 +category  "ca_ES@valencia:2006";LC_MEASUREMENT
    70 +
    71 +END LC_IDENTIFICATION
    72 +
    73 +LC_CTYPE
    74 +copy "i18n"
    75 +END LC_CTYPE
    76 +
    77 +LC_COLLATE
    78 +copy "ca_ES"
    79 +END LC_COLLATE
    80 +
    81 +LC_MONETARY
    82 +copy "ca_ES"
    83 +END LC_MONETARY
    84 +
    85 +LC_NUMERIC
    86 +copy "ca_ES"
    87 +END LC_NUMERIC
    88 +
    89 +LC_TIME
    90 +copy "ca_ES"
    91 +END LC_TIME
    92 +
    93 +LC_MESSAGES
    94 +copy "ca_ES"
    95 +END LC_MESSAGES
    96 +
    97 +LC_PAPER
    98 +copy "ca_ES"
    99 +END LC_PAPER
   100 +
   101 +LC_NAME
   102 +copy "ca_ES"
   103 +END LC_NAME
   104 +
   105 +LC_ADDRESS
   106 +copy "ca_ES"
   107 +END LC_ADDRESS
   108 +
   109 +LC_TELEPHONE
   110 +copy "ca_ES"
   111 +END LC_TELEPHONE
   112 +
   113 +LC_MEASUREMENT
   114 +copy "ca_ES"
   115 +END LC_MEASUREMENT