[git] GPG-ERROR - branch, master, updated. libgpg-error-1.21-10-g49655fb
by NIIBE Yutaka
cvs at cvs.gnupg.org
Fri Feb 26 01:43:48 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 49655fb6ef39b307787e1b6e00c996f9c7db64f7 (commit)
via 5168b97fb5e2eebdc99b40f96f9b6289647e87d2 (commit)
from 1e6c5a70b3b51f81d2fc1289129f6c3e1920ebcc (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 49655fb6ef39b307787e1b6e00c996f9c7db64f7
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Feb 26 09:43:37 2016 +0900
po: Update Japanese translation
diff --git a/po/ja.po b/po/ja.po
index 4f9460a..78d0b60 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -3,12 +3,12 @@
# This file is distributed under the same license as the libgpg-error package.
# Yasuaki Taniguchi <yasuakit at gmail.com>, 2010.
# Takeshi Hamasaki <hmatrjp at users.sourceforge.jp>, 2012.
-# NIIBE Yutaka <gniibe at fsij.org>, 2014, 2015.
+# NIIBE Yutaka <gniibe at fsij.org>, 2014, 2015, 2016.
msgid ""
msgstr ""
"Project-Id-Version: libgpg-error 1.19\n"
"Report-Msgid-Bugs-To: translations at gnupg.org\n"
-"PO-Revision-Date: 2015-12-14 11:19+0900\n"
+"PO-Revision-Date: 2016-02-26 09:42+0900\n"
"Last-Translator: NIIBE Yutaka <gniibe at fsij.org>\n"
"Language-Team: none\n"
"Language: ja\n"
@@ -728,6 +728,9 @@ msgstr "S式におかしな16進キャラクタがあります"
msgid "Bad octal character in S-expression"
msgstr "S式に間違った8進キャラクタがあります"
+msgid "Database is corrupted"
+msgstr "データベースがおかしくなってます"
+
msgid "Server indicated a failure"
msgstr "サーバが失敗を示しています"
commit 5168b97fb5e2eebdc99b40f96f9b6289647e87d2
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Feb 26 09:29:14 2016 +0900
Add support for Solaris, fixing HPPA.
* configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): Remove.
(LIB_SCHED_YIELD): New. Check sched_yield in -lrt.
* src/gen-posix-lock-obj.c (USE_16BYTE_ALIGNMENT): Remove.
(USE_DOUBLE_FOR_ALIGNMENT, USE_LONG_DOUBLE_FOR_ALIGNMENT): New.
* src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: Update.
--
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
diff --git a/configure.ac b/configure.ac
index 19ae9c8..9882d02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -274,20 +274,6 @@ if test "$GCC" = yes; then
fi
#
-# Check whether the compiler supports the GCC style aligned attribute
-#
-AC_CACHE_CHECK([whether the GCC style aligned attribute is supported],
- [gcry_cv_gcc_attribute_aligned],
- [gcry_cv_gcc_attribute_aligned=no
- AC_COMPILE_IFELSE([AC_LANG_SOURCE(
- [[struct { int a; } foo __attribute__ ((aligned (16)));]])],
- [gcry_cv_gcc_attribute_aligned=yes])])
-if test "$gcry_cv_gcc_attribute_aligned" = "yes" ; then
- AC_DEFINE(HAVE_GCC_ATTRIBUTE_ALIGNED,1,
- [Defined if a GCC style "__attribute__ ((aligned (n))" is supported])
-fi
-
-#
# Check for ELF visibility support.
#
AC_CACHE_CHECK(whether the visibility attribute is supported,
@@ -416,6 +402,25 @@ else
fi
fi
+# Default value for GPG_ERROR_CONFIG_LIBS
+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
#
@@ -424,7 +429,7 @@ estream_INIT
#
# Substitution used for gpg-error-config
#
-GPG_ERROR_CONFIG_LIBS="-lgpg-error"
+GPG_ERROR_CONFIG_LIBS="$config_libs"
if test "x$LIBTHREAD" != x; then
GPG_ERROR_CONFIG_LIBS="${GPG_ERROR_CONFIG_LIBS} ${LIBTHREAD}"
fi
@@ -544,11 +549,3 @@ echo "
Revision: mym4_revision (mym4_revision_dec)
Platform: $host$tmp
"
-if test "$gcry_cv_gcc_attribute_aligned" != "yes" ; then
-cat <<G10EOF
-***
-*** Please note that your compiler does not support the GCC style
-*** aligned attribute. Using this software may evoke bus errors.
-***
-G10EOF
-fi
diff --git a/src/gen-posix-lock-obj.c b/src/gen-posix-lock-obj.c
index 22de456..83356ad 100644
--- a/src/gen-posix-lock-obj.c
+++ b/src/gen-posix-lock-obj.c
@@ -43,15 +43,15 @@
#endif
/* Special requirements for certain platforms. */
-#if defined(__hppa__) && defined(__linux__)
-# define USE_16BYTE_ALIGNMENT 1
+#if defined(__solaris__) && (defined (__ILP32__) || defined(_ILP32))
+# define USE_DOUBLE_FOR_ALIGNMENT 1
#else
-# define USE_16BYTE_ALIGNMENT 0
+# define USE_DOUBLE_FOR_ALIGNMENT 0
#endif
-
-
-#if USE_16BYTE_ALIGNMENT && !HAVE_GCC_ATTRIBUTE_ALIGNED
-# error compiler is not able to enforce a 16 byte alignment
+#if defined(__hppa__)
+# define USE_LONG_DOUBLE_FOR_ALIGNMENT 1
+#else
+# define USE_LONG_DOUBLE_FOR_ALIGNMENT 0
#endif
#ifdef USE_POSIX_THREADS
@@ -116,8 +116,10 @@ main (void)
"\n"
"#define GPGRT_LOCK_INITIALIZER {%d,{{",
SIZEOF_PTHREAD_MUTEX_T,
-# if USE_16BYTE_ALIGNMENT
- " int _x16_align __attribute__ ((aligned (16)));\n",
+# if USE_DOUBLE_FOR_ALIGNMENT
+ " double _xd_align;\n",
+# elif USE_LONG_DOUBLE_FOR_ALIGNMENT
+ " long double _xld_align;\n",
# else
"",
# endif
diff --git a/src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h b/src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h
index b57bb76..3682577 100644
--- a/src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h
+++ b/src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h
@@ -7,7 +7,7 @@ typedef struct
long _vers;
union {
volatile char _priv[48];
- int _x16_align __attribute__ ((aligned (16)));
+ long double _xld_align;
long _x_align;
long *_xp_align;
} u;
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 43 +++++++++++-------------
po/ja.po | 7 ++--
src/gen-posix-lock-obj.c | 20 ++++++-----
src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h | 2 +-
4 files changed, 37 insertions(+), 35 deletions(-)
hooks/post-receive
--
Error codes used by GnuPG et al.
http://git.gnupg.org
More information about the Gnupg-commits
mailing list