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