2016-11-15 15:47:29 +00:00
|
|
|
diff -up libgpg-error-1.25/configure.ac.multilib libgpg-error-1.25/configure.ac
|
|
|
|
--- libgpg-error-1.25/configure.ac.multilib 2016-11-15 16:37:13.070082441 +0100
|
|
|
|
+++ libgpg-error-1.25/configure.ac 2016-11-15 16:39:17.132910290 +0100
|
|
|
|
@@ -200,13 +200,13 @@ AC_CHECK_SIZEOF(time_t,,[[
|
|
|
|
]])
|
2015-04-13 15:22:25 +00:00
|
|
|
|
|
|
|
# Find a 64 bit integer type to be used instead of off_t. We prefer
|
|
|
|
-# the standard integer types over int64_t and finally try long long.
|
|
|
|
-if test "$ac_cv_sizeof_int" = "8"; then
|
|
|
|
+# int64_t and finally try long long.
|
|
|
|
+if test "$ac_cv_header_stdint_h" = yes; then
|
|
|
|
+ replacement_for_off_t="int64_t"
|
|
|
|
+elif test "$ac_cv_sizeof_int" = "8"; then
|
|
|
|
replacement_for_off_t="int"
|
|
|
|
elif test "$ac_cv_sizeof_long" = "8"; then
|
|
|
|
replacement_for_off_t="long"
|
|
|
|
-elif test "$ac_cv_header_stdint_h" = yes; then
|
|
|
|
- replacement_for_off_t="int64_t"
|
|
|
|
elif test "$ac_cv_sizeof_long_long" = "8"; then
|
|
|
|
replacement_for_off_t="long long"
|
|
|
|
else
|
2016-11-15 15:47:29 +00:00
|
|
|
diff -up libgpg-error-1.25/configure.multilib libgpg-error-1.25/configure
|
|
|
|
--- libgpg-error-1.25/configure.multilib 2016-11-14 17:21:50.000000000 +0100
|
|
|
|
+++ libgpg-error-1.25/configure 2016-11-15 16:37:13.072082487 +0100
|
2016-07-14 14:59:40 +00:00
|
|
|
@@ -11280,7 +11280,7 @@ shlibpath_var=
|
2015-04-13 15:22:25 +00:00
|
|
|
shlibpath_overrides_runpath=unknown
|
|
|
|
version_type=none
|
|
|
|
dynamic_linker="$host_os ld.so"
|
|
|
|
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
|
+sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib64 /usr/lib64"
|
|
|
|
need_lib_prefix=unknown
|
|
|
|
hardcode_into_libs=no
|
|
|
|
|
2016-07-14 14:59:40 +00:00
|
|
|
@@ -11754,7 +11754,7 @@ fi
|
2015-04-13 15:22:25 +00:00
|
|
|
# Append ld.so.conf contents to the search path
|
|
|
|
if test -f /etc/ld.so.conf; then
|
|
|
|
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' ' '`
|
|
|
|
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
|
|
+ sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib64 /usr/lib64 $lt_ld_extra"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
2016-11-15 15:47:29 +00:00
|
|
|
@@ -15526,12 +15526,12 @@ _ACEOF
|
2015-04-13 15:22:25 +00:00
|
|
|
|
|
|
|
# Find a 64 bit integer type to be used instead of off_t. We prefer
|
|
|
|
# the standard integer types over int64_t and finally try long long.
|
|
|
|
-if test "$ac_cv_sizeof_int" = "8"; then
|
|
|
|
+if test "$ac_cv_header_stdint_h" = yes; then
|
|
|
|
+ replacement_for_off_t="int64_t"
|
|
|
|
+elif test "$ac_cv_sizeof_int" = "8"; then
|
|
|
|
replacement_for_off_t="int"
|
|
|
|
elif test "$ac_cv_sizeof_long" = "8"; then
|
|
|
|
replacement_for_off_t="long"
|
|
|
|
-elif test "$ac_cv_header_stdint_h" = yes; then
|
|
|
|
- replacement_for_off_t="int64_t"
|
|
|
|
elif test "$ac_cv_sizeof_long_long" = "8"; then
|
|
|
|
replacement_for_off_t="long long"
|
|
|
|
else
|
2016-11-15 15:47:29 +00:00
|
|
|
diff -up libgpg-error-1.25/src/gen-posix-lock-obj.c.multilib libgpg-error-1.25/src/gen-posix-lock-obj.c
|
|
|
|
--- libgpg-error-1.25/src/gen-posix-lock-obj.c.multilib 2016-11-12 20:02:56.000000000 +0100
|
|
|
|
+++ libgpg-error-1.25/src/gen-posix-lock-obj.c 2016-11-15 16:37:13.072082487 +0100
|
2016-07-14 14:59:40 +00:00
|
|
|
@@ -72,6 +72,7 @@ main (void)
|
2015-09-01 15:50:28 +00:00
|
|
|
#ifdef USE_POSIX_THREADS
|
2015-04-13 15:22:25 +00:00
|
|
|
unsigned char *p;
|
|
|
|
int i;
|
|
|
|
+ int initidx = 0;
|
2015-09-01 15:50:28 +00:00
|
|
|
#endif
|
2015-04-13 15:22:25 +00:00
|
|
|
struct {
|
|
|
|
long vers;
|
2016-07-14 14:59:40 +00:00
|
|
|
@@ -111,11 +112,12 @@ main (void)
|
2015-09-01 15:50:28 +00:00
|
|
|
|
|
|
|
/* To force a probably suitable alignment of the structure we use a
|
|
|
|
union and include a long and a pointer to a long. */
|
|
|
|
- printf ("typedef struct\n"
|
|
|
|
+ printf ("#include <pthread.h>\n"
|
|
|
|
+ "typedef struct\n"
|
2015-04-13 15:22:25 +00:00
|
|
|
"{\n"
|
|
|
|
" long _vers;\n"
|
|
|
|
" union {\n"
|
|
|
|
- " volatile char _priv[%d];\n"
|
|
|
|
+ " volatile char _priv[sizeof(pthread_mutex_t)];\n"
|
|
|
|
"%s"
|
|
|
|
" long _x_align;\n"
|
|
|
|
" long *_xp_align;\n"
|
2016-07-14 14:59:40 +00:00
|
|
|
@@ -123,7 +125,6 @@ main (void)
|
2015-09-01 15:50:28 +00:00
|
|
|
"} gpgrt_lock_t;\n"
|
2015-04-13 15:22:25 +00:00
|
|
|
"\n"
|
|
|
|
"#define GPGRT_LOCK_INITIALIZER {%d,{{",
|
|
|
|
- SIZEOF_PTHREAD_MUTEX_T,
|
2015-09-01 15:50:28 +00:00
|
|
|
# if USE_16BYTE_ALIGNMENT
|
2015-04-13 15:22:25 +00:00
|
|
|
" int _x16_align __attribute__ ((aligned (16)));\n",
|
2016-07-14 14:59:40 +00:00
|
|
|
# elif USE_DOUBLE_FOR_ALIGNMENT
|
|
|
|
@@ -137,10 +138,16 @@ main (void)
|
2015-04-13 15:22:25 +00:00
|
|
|
p = (unsigned char *)&mtx;
|
|
|
|
for (i=0; i < sizeof mtx; i++)
|
|
|
|
{
|
|
|
|
+ if (p[i] != 0)
|
|
|
|
+ initidx = i;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ for (i=0; i <= initidx; i++)
|
|
|
|
+ {
|
|
|
|
if (i && !(i % 8))
|
|
|
|
printf (" \\\n%*s", 36, "");
|
|
|
|
printf ("%u", p[i]);
|
|
|
|
- if (i < sizeof mtx - 1)
|
|
|
|
+ if (i < initidx)
|
|
|
|
putchar (',');
|
|
|
|
}
|
2015-09-01 15:50:28 +00:00
|
|
|
fputs ("}}}\n", stdout);
|
2016-11-15 15:47:29 +00:00
|
|
|
diff -up libgpg-error-1.25/src/gpg-error.h.in.multilib libgpg-error-1.25/src/gpg-error.h.in
|
|
|
|
--- libgpg-error-1.25/src/gpg-error.h.in.multilib 2016-11-14 16:08:37.000000000 +0100
|
|
|
|
+++ libgpg-error-1.25/src/gpg-error.h.in 2016-11-15 16:37:13.073082510 +0100
|
2015-04-13 15:22:25 +00:00
|
|
|
@@ -16,7 +16,7 @@
|
2015-09-01 15:50:28 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2016-07-14 14:59:40 +00:00
|
|
|
* License along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2015-09-01 15:50:28 +00:00
|
|
|
*
|
|
|
|
- * @configure_input@
|
|
|
|
+ * Do not edit. Generated from gpg-error.h.in.
|
2015-04-13 15:22:25 +00:00
|
|
|
*/
|
|
|
|
|
2015-09-01 15:50:28 +00:00
|
|
|
#ifndef GPG_ERROR_H
|