[glibc] Define swap_endianness_p in build-locale-archive

Siddhesh Poyarekar siddhesh at fedoraproject.org
Thu Oct 3 08:13:14 UTC 2013


commit 13a25e85c084da586783f3291e1f2afca9c27f90
Author: Siddhesh Poyarekar <siddhesh at redhat.com>
Date:   Thu Oct 3 10:42:38 2013 +0530

    Define swap_endianness_p in build-locale-archive

 build-locale-archive.c |    6 ++++++
 glibc.spec             |    7 +++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/build-locale-archive.c b/build-locale-archive.c
index 474f666..3818485 100644
--- a/build-locale-archive.c
+++ b/build-locale-archive.c
@@ -26,6 +26,12 @@ int verbose = 0;
 int max_locarchive_open_retry = 10;
 const char *output_prefix;
 
+/* Endianness should have been taken care of by localedef.  We don't need to do
+   additional swapping.  We need this variable exported however, since
+   locarchive.c uses it to determine if it needs to swap endianness of a value
+   before writing to or reading from the archive.  */
+bool swap_endianness_p = false;
+
 static const char *locnames[] =
   {
 #define DEFINE_CATEGORY(category, category_name, items, a) \
diff --git a/glibc.spec b/glibc.spec
index 5eec1a5..d471296 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -1,6 +1,6 @@
 %define glibcsrcdir  glibc-2.18-186-gfd96752
 %define glibcversion 2.18.90
-%define glibcrelease 8%{?dist}
+%define glibcrelease 9%{?dist}
 # Pre-release tarballs are pulled in from git using a command that is
 # effectively:
 #
@@ -1629,7 +1629,10 @@ rm -f *.filelist*
 %endif
 
 %changelog
-* Wed Oct  1 2013 Carlos O'Donell <carlos at redhat.com> - 2.18.90-8
+* Thu Oct  3 2013 Siddhesh Poyarekar <siddhesh at redhat.com> - 2.18.90-9
+- Define swap_endianness_p in build-locale-archive.
+
+* Wed Oct  2 2013 Carlos O'Donell <carlos at redhat.com> - 2.18.90-8
 - Allow ldconfig cached objects previously marked as hard or soft
   ABI to now become unmarked without raising an error. This works
   around a binutils bug that caused objects to become unmarked.


More information about the scm-commits mailing list