patches/glibc/ports-2.13/470-alpha-feupdateenv.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Oct 16 20:57:44 2012 +0200 (2012-10-16)
changeset 3079 37831a33e07e
permissions -rw-r--r--
kernel/linux: fix using custom location

Currently, extract and patch are skipped as thus:
- using a custom directory of pre-installed headers
- a correctly named directory already exists

Otherwise, extract and patch are done.

The current second condition is wrong, because it allows the following
sequence to happen:
- a non-custom kernel is used
- a previous build only partially extracted the non-custom sources
- that p[revious build broke during extraction (eg. incomplete tarball...)
- a subsequent build will find a properly named directory, and will
thus skip extract and patch, which is wrong

Fix that by following the conditions in this table:

Type | Extract | Patch
----------------------+---------+-------
Pre-installed headers | N | N
custom directory | N | N
custom tarball | Y | N
mainstream tarball | Y | Y

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: David Holsgrove <david.holsgrove@xilinx.com>
yann@2438
     1
2011-03-01  Aurelien Jarno  <aurelien@aurel32.net>
yann@2438
     2
yann@2438
     3
	* sysdeps/alpha/fpu/feupdateenv.c (feupdateenv): Add
yann@2438
     4
	libm_hidden_def.
yann@2438
     5
	* sysdeps/alpha/fpu/ftestexcept.c (fetestexcept): Likewise.
yann@2438
     6
yann@2438
     7
diff --git glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c
yann@2438
     8
index c798070..9abbf11 100644
yann@2438
     9
--- glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c
yann@2438
    10
+++ glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/feupdateenv.c
yann@2438
    11
@@ -46,4 +46,5 @@ strong_alias (__feupdateenv, __old_feupdateenv)
yann@2438
    12
 compat_symbol (libm, __old_feupdateenv, feupdateenv, GLIBC_2_1);
yann@2438
    13
 #endif
yann@2438
    14
 
yann@2438
    15
+libm_hidden_ver (__feupdateenv, feupdateenv)
yann@2438
    16
 versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2);
yann@2438
    17
diff --git glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c
yann@2438
    18
index a4b3081..34d8113 100644
yann@2438
    19
--- glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c
yann@2438
    20
+++ glibc-2.13/glibc-ports-2.13/sysdeps/alpha/fpu/ftestexcept.c
yann@2438
    21
@@ -30,3 +30,4 @@ fetestexcept (int excepts)
yann@2438
    22
 
yann@2438
    23
   return tmp & excepts & SWCR_STATUS_MASK;
yann@2438
    24
 }
yann@2438
    25
+libm_hidden_def (fetestexcept)
yann@2438
    26