Source: libgpg-error Version: 1.26-2 Severity: normal Tags: patch This small patch adds support for the arm64ilp32 architecture.
(The Makeflie change is not actually necessary or helpful yet, but clearly should be there as things stand). It seems unnecessary that every new arch has to generate this new file, which is intended to be done with a native build of gen-posix-lock-obj. It is difficult to build and run such a native C tool on a new arch you haven't bootstrapped yet (so in fact the libgpg-error sysconf file has to be hand-generated). Trying to cross-build with the existing machinery generates a gen-posix-lock-obj of the host architecture, not the build arch, which would be fine if native-bootstrapping, but not for a new arch which has to be crossed. I will file another bug about fixing this so that we can arrange to use headers directly, rather than all this jiggery-pokery, if at all possible. -- System Information: Debian Release: 8.9 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru libgpg-error-1.26/debian/changelog libgpg-error-1.26/debian/changelog --- libgpg-error-1.26/debian/changelog 2017-01-18 16:27:10.000000000 +0000 +++ libgpg-error-1.26/debian/changelog 2017-07-24 17:26:52.000000000 +0100 @@ -1,3 +1,9 @@ +libgpg-error (1.26-2.1) unstable; urgency=medium + + * Add aarch64 ILP32 support + + -- Wookey <woo...@debian.org> Mon, 24 Jul 2017 17:26:52 +0100 + libgpg-error (1.26-2) unstable; urgency=medium * bump symbols version for gpgrt_yield to 1.25 diff -Nru libgpg-error-1.26/debian/patches/add-arm64ilp32-support.patch libgpg-error-1.26/debian/patches/add-arm64ilp32-support.patch --- libgpg-error-1.26/debian/patches/add-arm64ilp32-support.patch 1970-01-01 01:00:00.000000000 +0100 +++ libgpg-error-1.26/debian/patches/add-arm64ilp32-support.patch 2017-07-24 17:26:52.000000000 +0100 @@ -0,0 +1,45 @@ +Description: Add arm64ilp32 support +Author: Wookey <woo...@debian.org> +Last-Update: 2017-07-24 + +Index: libgpg-error-1.26/src/syscfg/lock-obj-pub.aarch64-unknown-linux-gnu_ilp32.h +=================================================================== +--- /dev/null ++++ libgpg-error-1.26/src/syscfg/lock-obj-pub.aarch64-unknown-linux-gnu_ilp32.h +@@ -0,0 +1,24 @@ ++## lock-obj-pub.aarch64-unknown-linux-gnu_ilp32.h ++## File created by gen-posix-lock-obj - DO NOT EDIT ++## To be included by mkheader into gpg-error.h ++ ++typedef struct ++{ ++ long _vers; ++ union { ++ volatile char _priv[32]; ++ long _x_align; ++ long *_xp_align; ++ } u; ++} gpgrt_lock_t; ++ ++#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ ++ 0,0,0,0,0,0,0,0, \ ++ 0,0,0,0,0,0,0,0, \ ++ 0,0,0,0,0,0,0,0}}} ++## ++## Local Variables: ++## mode: c ++## buffer-read-only: t ++## End: ++## +Index: libgpg-error-1.26/src/Makefile.am +=================================================================== +--- libgpg-error-1.26.orig/src/Makefile.am ++++ libgpg-error-1.26/src/Makefile.am +@@ -42,6 +42,7 @@ endif + # Distributed lock object definitions for cross compilation. + lock_obj_pub = \ + syscfg/lock-obj-pub.aarch64-unknown-linux-gnu.h \ ++ syscfg/lock-obj-pub.aarch64-unknown-linux-gnu_ilp32.h \ + syscfg/lock-obj-pub.aarch64-apple-darwin.h \ + syscfg/lock-obj-pub.alpha-unknown-linux-gnu.h \ + syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h \ diff -Nru libgpg-error-1.26/debian/patches/series libgpg-error-1.26/debian/patches/series --- libgpg-error-1.26/debian/patches/series 2017-01-18 16:22:13.000000000 +0000 +++ libgpg-error-1.26/debian/patches/series 2017-07-24 17:26:52.000000000 +0100 @@ -1,3 +1,4 @@ 0001-avoid-identifying-as-beta.patch 0002-Measure-revision-by-length-of-debian-changelog.patch 0003-avoid-whitespace-in-gpg-error.def-linker-script-for-.patch +add-arm64ilp32-support.patch