|
|
f7c2fa |
diff -up libgpg-error-1.29/configure.ac.multilib libgpg-error-1.29/configure.ac
|
|
|
f7c2fa |
--- libgpg-error-1.29/configure.ac.multilib 2018-04-11 14:41:10.479019981 +0200
|
|
|
f7c2fa |
+++ libgpg-error-1.29/configure.ac 2018-04-11 14:43:31.288394113 +0200
|
|
|
f7c2fa |
@@ -215,13 +215,13 @@ GNUPG_FUNC_MKDIR_TAKES_ONE_ARG
|
|
|
f7c2fa |
|
|
|
f7c2fa |
|
|
|
f7c2fa |
# Find a 64 bit integer type to be used instead of off_t. We prefer
|
|
|
f7c2fa |
-# the standard integer types over int64_t and finally try long long.
|
|
|
f7c2fa |
-if test "$ac_cv_sizeof_int" = "8"; then
|
|
|
f7c2fa |
+# int64_t and finally try long long.
|
|
|
f7c2fa |
+if test "$ac_cv_header_stdint_h" = yes; then
|
|
|
f7c2fa |
+ replacement_for_off_t="int64_t"
|
|
|
f7c2fa |
+elif test "$ac_cv_sizeof_int" = "8"; then
|
|
|
f7c2fa |
replacement_for_off_t="int"
|
|
|
f7c2fa |
elif test "$ac_cv_sizeof_long" = "8"; then
|
|
|
f7c2fa |
replacement_for_off_t="long"
|
|
|
f7c2fa |
-elif test "$ac_cv_header_stdint_h" = yes; then
|
|
|
f7c2fa |
- replacement_for_off_t="int64_t"
|
|
|
f7c2fa |
elif test "$ac_cv_sizeof_long_long" = "8"; then
|
|
|
f7c2fa |
replacement_for_off_t="long long"
|
|
|
f7c2fa |
else
|
|
|
f7c2fa |
diff -up libgpg-error-1.29/configure.multilib libgpg-error-1.29/configure
|
|
|
f7c2fa |
--- libgpg-error-1.29/configure.multilib 2018-04-11 09:34:30.000000000 +0200
|
|
|
f7c2fa |
+++ libgpg-error-1.29/configure 2018-04-11 14:41:10.481020028 +0200
|
|
|
f7c2fa |
@@ -11301,7 +11301,7 @@ shlibpath_var=
|
|
|
f7c2fa |
shlibpath_overrides_runpath=unknown
|
|
|
f7c2fa |
version_type=none
|
|
|
f7c2fa |
dynamic_linker="$host_os ld.so"
|
|
|
f7c2fa |
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
f7c2fa |
+sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib64 /usr/lib64"
|
|
|
f7c2fa |
need_lib_prefix=unknown
|
|
|
f7c2fa |
hardcode_into_libs=no
|
|
|
f7c2fa |
|
|
|
f7c2fa |
@@ -11775,7 +11775,7 @@ fi
|
|
|
f7c2fa |
# Append ld.so.conf contents to the search path
|
|
|
f7c2fa |
if test -f /etc/ld.so.conf; then
|
|
|
f7c2fa |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
|
|
f7c2fa |
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
|
f7c2fa |
+ sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib64 /usr/lib64 $lt_ld_extra"
|
|
|
f7c2fa |
fi
|
|
|
f7c2fa |
|
|
|
f7c2fa |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
|
f7c2fa |
@@ -15879,12 +15879,12 @@ fi
|
|
|
f7c2fa |
|
|
|
f7c2fa |
# Find a 64 bit integer type to be used instead of off_t. We prefer
|
|
|
f7c2fa |
# the standard integer types over int64_t and finally try long long.
|
|
|
f7c2fa |
-if test "$ac_cv_sizeof_int" = "8"; then
|
|
|
f7c2fa |
+if test "$ac_cv_header_stdint_h" = yes; then
|
|
|
f7c2fa |
+ replacement_for_off_t="int64_t"
|
|
|
f7c2fa |
+elif test "$ac_cv_sizeof_int" = "8"; then
|
|
|
f7c2fa |
replacement_for_off_t="int"
|
|
|
f7c2fa |
elif test "$ac_cv_sizeof_long" = "8"; then
|
|
|
f7c2fa |
replacement_for_off_t="long"
|
|
|
f7c2fa |
-elif test "$ac_cv_header_stdint_h" = yes; then
|
|
|
f7c2fa |
- replacement_for_off_t="int64_t"
|
|
|
f7c2fa |
elif test "$ac_cv_sizeof_long_long" = "8"; then
|
|
|
f7c2fa |
replacement_for_off_t="long long"
|
|
|
f7c2fa |
else
|
|
|
f7c2fa |
diff -up libgpg-error-1.29/src/gen-posix-lock-obj.c.multilib libgpg-error-1.29/src/gen-posix-lock-obj.c
|
|
|
f7c2fa |
--- libgpg-error-1.29/src/gen-posix-lock-obj.c.multilib 2016-11-16 13:22:03.000000000 +0100
|
|
|
f7c2fa |
+++ libgpg-error-1.29/src/gen-posix-lock-obj.c 2018-04-11 14:41:10.481020028 +0200
|
|
|
f7c2fa |
@@ -72,6 +72,7 @@ main (void)
|
|
|
f7c2fa |
#ifdef USE_POSIX_THREADS
|
|
|
f7c2fa |
unsigned char *p;
|
|
|
f7c2fa |
int i;
|
|
|
f7c2fa |
+ int initidx = 0;
|
|
|
f7c2fa |
#endif
|
|
|
f7c2fa |
struct {
|
|
|
f7c2fa |
long vers;
|
|
|
f7c2fa |
@@ -111,11 +112,12 @@ main (void)
|
|
|
f7c2fa |
|
|
|
f7c2fa |
/* To force a probably suitable alignment of the structure we use a
|
|
|
f7c2fa |
union and include a long and a pointer to a long. */
|
|
|
f7c2fa |
- printf ("typedef struct\n"
|
|
|
f7c2fa |
+ printf ("#include <pthread.h>\n"
|
|
|
f7c2fa |
+ "typedef struct\n"
|
|
|
f7c2fa |
"{\n"
|
|
|
f7c2fa |
" long _vers;\n"
|
|
|
f7c2fa |
" union {\n"
|
|
|
f7c2fa |
- " volatile char _priv[%d];\n"
|
|
|
f7c2fa |
+ " volatile char _priv[sizeof(pthread_mutex_t)];\n"
|
|
|
f7c2fa |
"%s"
|
|
|
f7c2fa |
" long _x_align;\n"
|
|
|
f7c2fa |
" long *_xp_align;\n"
|
|
|
f7c2fa |
@@ -123,7 +125,6 @@ main (void)
|
|
|
f7c2fa |
"} gpgrt_lock_t;\n"
|
|
|
f7c2fa |
"\n"
|
|
|
f7c2fa |
"#define GPGRT_LOCK_INITIALIZER {%d,{{",
|
|
|
f7c2fa |
- SIZEOF_PTHREAD_MUTEX_T,
|
|
|
f7c2fa |
# if USE_16BYTE_ALIGNMENT
|
|
|
f7c2fa |
" int _x16_align __attribute__ ((aligned (16)));\n",
|
|
|
f7c2fa |
# elif USE_DOUBLE_FOR_ALIGNMENT
|
|
|
f7c2fa |
@@ -137,10 +138,16 @@ main (void)
|
|
|
f7c2fa |
p = (unsigned char *)&mt;;
|
|
|
f7c2fa |
for (i=0; i < sizeof mtx; i++)
|
|
|
f7c2fa |
{
|
|
|
f7c2fa |
+ if (p[i] != 0)
|
|
|
f7c2fa |
+ initidx = i;
|
|
|
f7c2fa |
+ }
|
|
|
f7c2fa |
+
|
|
|
f7c2fa |
+ for (i=0; i <= initidx; i++)
|
|
|
f7c2fa |
+ {
|
|
|
f7c2fa |
if (i && !(i % 8))
|
|
|
f7c2fa |
printf (" \\\n%*s", 36, "");
|
|
|
f7c2fa |
printf ("%u", p[i]);
|
|
|
f7c2fa |
- if (i < sizeof mtx - 1)
|
|
|
f7c2fa |
+ if (i < initidx)
|
|
|
f7c2fa |
putchar (',');
|
|
|
f7c2fa |
}
|
|
|
f7c2fa |
fputs ("}}}\n", stdout);
|
|
|
f7c2fa |
diff -up libgpg-error-1.29/src/gpg-error.h.in.multilib libgpg-error-1.29/src/gpg-error.h.in
|
|
|
f7c2fa |
--- libgpg-error-1.29/src/gpg-error.h.in.multilib 2018-04-11 14:41:10.481020028 +0200
|
|
|
f7c2fa |
+++ libgpg-error-1.29/src/gpg-error.h.in 2018-04-11 14:45:28.184203566 +0200
|
|
|
f7c2fa |
@@ -17,7 +17,7 @@
|
|
|
f7c2fa |
* License along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
|
f7c2fa |
* SPDX-License-Identifier: LGPL-2.1+
|
|
|
f7c2fa |
*
|
|
|
f7c2fa |
- * @configure_input@
|
|
|
f7c2fa |
+ * Do not edit. Generated from gpg-error.h.in.
|
|
|
f7c2fa |
*/
|
|
|
f7c2fa |
|
|
|
f7c2fa |
/* The GnuPG project consists of many components. Error codes are
|