]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix posix/tst-glob_lstat_compat on alpha [BZ #22818]
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 18 Feb 2018 17:23:14 +0000 (18:23 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Feb 2018 20:39:17 +0000 (20:39 +0000)
The tst-glob_lstat_compat test needs to run tests on the previous
version of glob. On alpha, there are three versions of glob, GLIBC_2.0,
GLIBC_2.1 and GLIBC_2.27, while on other architectures there are only
the GLIBC_2.0 and GLIBC_2.27 version. Therefore on alpha the previous
version is GLIBC_2.1 and not GLIBC_2.0.

Changelog:
[BZ #22818]
* posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
the GLIBC_2.1 version.

(cherry picked from commit f8d79582896c52cc2b50bdd030a3ec27ef23b587)

ChangeLog
NEWS
posix/tst-glob_lstat_compat.c

index 4c0b25042dc413ba2fcad446c07d5bb0fc27ee82..25624b6854223a9708a3f3ad7c5c6f6daa819b52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
+
+       [BZ #22818]
+       * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
+       the GLIBC_2.1 version.
+
 2018-02-02  Sean McKean  <smckean83@gmail.com>
 
        [BZ #22735]
diff --git a/NEWS b/NEWS
index d7f156790df0170926d8f96a4df689bfdc2cf810..e40fa8d1df97a974feb471337e40229e0d4b68c7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@ The following bugs are resolved with this release:
     configured with --enable-default-pie
   [22735] Misleading typo in time.h source comment regarding CLOCKS_PER_SECOND
   [22797] Linux: use reserved name __key in pkey_get
+  [22818] posix/tst-glob_lstat_compat failure on alpha
   [22827] RISC-V ELF64 parser mis-reads flag in ldconfig
 
 \f
index c46bc9e57834863d04ef74da495bdfe6bf2b149c..22cd1f02f96d5d118c3750cae96932b9f127daeb 100644 (file)
 #if TEST_COMPAT (libc, GLIBC_2_0, GLIBC_2_27)
 
 __typeof (glob) glob;
+/* On alpha glob exists in version GLIBC_2_0, GLIBC_2_1, and GLIBC_2_27.
+   This test needs to access the version prior to GLIBC_2_27, which is
+   GLIBC_2_1 on alpha, GLIBC_2_0 elsewhere.  */
+# ifdef __alpha__
+compat_symbol_reference (libc, glob, glob, GLIBC_2_1);
+# else
 compat_symbol_reference (libc, glob, glob, GLIBC_2_0);
+# endif
 
 /* Compat glob should not call gl_lstat since for some old binaries it
    might be unitialized (for instance GNUmake).  Check if it is indeed