about summary refs log tree commit diff
path: root/pkgs/development/libraries/glibc
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-03-19 21:50:58 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-03-19 21:50:58 +0000
commita39a9b3d8e9b2342193a89c845e22cda163ecab4 (patch)
treef71dfcc75ef7eb3338158b53092ce3bcc50f67c6 /pkgs/development/libraries/glibc
parent2199d375a2efab74ba2af07a2c322f3633b24606 (diff)
downloadnixlib-a39a9b3d8e9b2342193a89c845e22cda163ecab4.tar
nixlib-a39a9b3d8e9b2342193a89c845e22cda163ecab4.tar.gz
nixlib-a39a9b3d8e9b2342193a89c845e22cda163ecab4.tar.bz2
nixlib-a39a9b3d8e9b2342193a89c845e22cda163ecab4.tar.lz
nixlib-a39a9b3d8e9b2342193a89c845e22cda163ecab4.tar.xz
nixlib-a39a9b3d8e9b2342193a89c845e22cda163ecab4.tar.zst
nixlib-a39a9b3d8e9b2342193a89c845e22cda163ecab4.zip
Adding a glibc patch to get proper first days of the week in the Catalan locale.
Since 2008 somehow it cannot get fixed in glibc:
https://bugzilla.redhat.com/show_bug.cgi?id=454629


svn path=/nixpkgs/trunk/; revision=33279
Diffstat (limited to 'pkgs/development/libraries/glibc')
-rw-r--r--pkgs/development/libraries/glibc/2.13/catalan-firstdays.patch13
-rw-r--r--pkgs/development/libraries/glibc/2.13/common.nix2
2 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glibc/2.13/catalan-firstdays.patch b/pkgs/development/libraries/glibc/2.13/catalan-firstdays.patch
new file mode 100644
index 000000000000..674e0aee8849
--- /dev/null
+++ b/pkgs/development/libraries/glibc/2.13/catalan-firstdays.patch
@@ -0,0 +1,13 @@
+https://bugzilla.redhat.com/show_bug.cgi?id=454629
+
+--- glibc-20090510T1842/localedata/locales/ca_ES.orig	2009-06-26 14:05:18.422043552 +0200
++++ glibc-20090510T1842/localedata/locales/ca_ES	2009-06-26 14:05:38.292042700 +0200
+@@ -138,6 +138,8 @@
+ date_fmt	"<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
+ <U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
+ <U0025><U005A><U0020><U0025><U0059>"
++first_weekday   2
++first_workday   2
+ END LC_TIME
+ 
+ LC_PAPER
diff --git a/pkgs/development/libraries/glibc/2.13/common.nix b/pkgs/development/libraries/glibc/2.13/common.nix
index 99efeaf94538..6cb663d7f127 100644
--- a/pkgs/development/libraries/glibc/2.13/common.nix
+++ b/pkgs/development/libraries/glibc/2.13/common.nix
@@ -77,7 +77,7 @@ stdenv.mkDerivation ({
 
     /* Without this patch many KDE binaries crash. */
     ./glibc-elf-localscope.patch
-  ];
+  ] ++ stdenv.lib.optional installLocales ./catalan-firstdays.patch;
 
   postPatch = ''
     # Needed for glibc to build with the gnumake 3.82