[git] GPG-ERROR - branch, master, updated. libgpg-error-1.21-13-gf7a77c5

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Mar 4 00:53:24 CET 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  f7a77c5c236ecec846de9be46703026f9b01008f (commit)
       via  f9fc565129293f47cbfe4da48fcd6099e9ce5508 (commit)
      from  34b07146bbb0863436fc9381a84314b18bdfb807 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f7a77c5c236ecec846de9be46703026f9b01008f
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Mar 4 08:23:27 2016 +0900

    Fix detecting Solaris operating system.
    
    * src/gen-posix-lock-obj.c (USE_DOUBLE_FOR_ALIGNMENT): Check for
    the macro __sun.
    
    --
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
    
    This fixes commit 5168b97 and 34b0714.
    
    Thanks to Ibraheem Saleh and Thomas Klausner for testing.
    
    Thanks to Tom G. Christensen for suggesting the fix with the
    useful link: https://sourceforge.net/p/predef/wiki/Home/
    
    Thanks to Nelson H. F. Beebe to inform the tool:
    http://www.math.utah.edu/~beebe/cc-defs
    
    GnuPG-bug-id: 2144

diff --git a/src/gen-posix-lock-obj.c b/src/gen-posix-lock-obj.c
index 5efc930..79b56de 100644
--- a/src/gen-posix-lock-obj.c
+++ b/src/gen-posix-lock-obj.c
@@ -43,7 +43,8 @@
 #endif
 
 /* Special requirements for certain platforms.  */
-#if defined(__solaris__) && !defined (__LP64__) && !defined(_LP64)
+#if defined(__sun) && !defined (__LP64__) && !defined(_LP64)
+/* Solaris on 32-bit architecture.  */
 # define USE_DOUBLE_FOR_ALIGNMENT 1
 #else
 # define USE_DOUBLE_FOR_ALIGNMENT 0

commit f9fc565129293f47cbfe4da48fcd6099e9ce5508
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Mar 4 08:12:36 2016 +0900

    For Solaris, add -lrt correctly.
    
    * configure.ac (LIB_SCHED_YIELD): Not avoiding defining LIB.
    
    --
    
    This fixes commit 5168b97 for Solaris linking issue.  It tried to add
    -lrt for build on Solaris for gpg-error, but it wrongly avoids adding
    it also to LIB, which actually is needed.
    
    Reported-by: Tom G. Christensen <tgc at jupiterrise.com>
    
    Thanks also to Jörn Clausen, who submitted a report to our BTS.
    
    GnuPG-bug-id: 1671
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/configure.ac b/configure.ac
index 9882d02..6d25b51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -408,18 +408,13 @@ config_libs="-lgpg-error"
 #
 # Check for other libraries (now only for -lrt).
 #
-# Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
-# programs in the package would end up linked with that potentially-shared
-# library, inducing unnecessary run-time overhead.
 LIB_SCHED_YIELD=
 AC_SUBST([LIB_SCHED_YIELD])
-gl_saved_libs=$LIBS
 AC_SEARCH_LIBS([sched_yield], [rt posix4],
                [if test "$ac_cv_search_sched_yield" != "none required"; then
                   LIB_SCHED_YIELD=$ac_cv_search_sched_yield
                   config_libs="$config_libs $LIB_SCHED_YIELD"
                 fi])
-LIBS=$gl_saved_libs
 
 #
 # Prepare building of estream

-----------------------------------------------------------------------

Summary of changes:
 configure.ac             | 5 -----
 src/gen-posix-lock-obj.c | 3 ++-
 2 files changed, 2 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org




More information about the Gnupg-commits mailing list