gettext/gettext.patch

Sun, 03 Apr 2011 13:34:55 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 03 Apr 2011 13:34:55 +0200
changeset 337
f71e028eb3e2
permissions
-rw-r--r--

Correct and improve several packaging aspects including...
Correct datadir path for python modules, correct jar(1) path for
building libgcj classes, strip libexecdir path of version numbers,
improve name of oblbld build path, clean whitespace from as(1) and
ld(1) GNU detection, remove seemingly discarded '--with-local-prefix'
configure argument, and correct hardcoded lto plugin libtool archive
dependency information.

Most importantly, correct IA32 architecture detection logic in
config.gcc to correctly emit SSE2 instructions conditionally, leading
to the removal of all '-march' bootstrap options and replacement with
unconditional (for IA32/AMD64) '-mtune=native' options. Comments and
buildtime warnings are corrected appropriately. In theory these changes
cause a more portable, orthoganal, and optimal bootstrap to be built.

     1 Index: gettext-runtime/intl/plural-exp.c
     2 --- gettext-runtime/intl/plural-exp.c.orig	2009-06-28 21:44:04.000000000 +0200
     3 +++ gettext-runtime/intl/plural-exp.c	2010-05-10 08:51:14.000000000 +0200
     4 @@ -27,7 +27,7 @@
     6  #include "plural-exp.h"
     8 -#if (defined __GNUC__ && !(__APPLE_CC__ > 1) && !defined __cplusplus) \
     9 +#if (defined __GNUC__ && !(__APPLE_CC__+0 > 1) && !defined __cplusplus) \
    10      || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
    12  /* These structs are the constant expression for the germanic plural
    13 Index: gettext-tools/gnulib-lib/execute.c
    14 --- gettext-tools/gnulib-lib/execute.c.orig	2010-02-16 22:32:17.000000000 +0100
    15 +++ gettext-tools/gnulib-lib/execute.c	2010-05-10 20:22:18.000000000 +0200
    16 @@ -200,6 +200,9 @@
    17       subprocess to exit with return code 127.  It is implementation
    18       dependent which error is reported which way.  We treat both cases as
    19       equivalent.  */
    20 +#ifndef HAVE_ENVIRON_DECL
    21 +  extern char **environ;
    22 +#endif
    23    sigset_t blocked_signals;
    24    posix_spawn_file_actions_t actions;
    25    bool actions_allocated;

mercurial