Source: libgcrypt11 Version: 1.5.0-3 Severity: wishlist Tags: patch Users: [email protected] Usertags: port-x32 ftbfs-x32
Here's the patch I used to get libgcrypt11 to compile on x32, heavily based on the patch at <URL:https://sites.google.com/site/x32abi/x32- patches/libgcrypt-1.4.5-x32.patch?attredirects=0&d=1>. -- Daniel Schepler
diff -Nru libgcrypt11-1.5.0/debian/changelog libgcrypt11-1.5.0/debian/changelog --- libgcrypt11-1.5.0/debian/changelog 2011-09-01 09:54:26.000000000 -0700 +++ libgcrypt11-1.5.0/debian/changelog 2013-01-17 19:30:44.000000000 -0800 @@ -1,3 +1,9 @@ +libgcrypt11 (1.5.0-3+x32) unreleased; urgency=low + + * Add patch from H.J. Lu for x32 support. + + -- Daniel Schepler <[email protected]> Thu, 17 Jan 2013 14:56:26 -0800 + libgcrypt11 (1.5.0-3) unstable; urgency=low * Upload to unstable. diff -Nru libgcrypt11-1.5.0/debian/patches/13_x32_support.diff libgcrypt11-1.5.0/debian/patches/13_x32_support.diff --- libgcrypt11-1.5.0/debian/patches/13_x32_support.diff 1969-12-31 16:00:00.000000000 -0800 +++ libgcrypt11-1.5.0/debian/patches/13_x32_support.diff 2013-01-17 14:55:53.000000000 -0800 @@ -0,0 +1,9 @@ +Index: libgcrypt11-1.5.0/mpi/amd64/mpi-asm-defs.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libgcrypt11-1.5.0/mpi/amd64/mpi-asm-defs.h 2013-01-17 14:55:08.000000000 -0800 +@@ -0,0 +1,4 @@ ++/* This file defines some basic constants for the MPI machinery. We ++ * need to define the types on a per-CPU basis, so it is done with ++ * this file here. */ ++#define BYTES_PER_MPI_LIMB 8 diff -Nru libgcrypt11-1.5.0/debian/patches/series libgcrypt11-1.5.0/debian/patches/series --- libgcrypt11-1.5.0/debian/patches/series 2011-08-30 11:00:23.000000000 -0700 +++ libgcrypt11-1.5.0/debian/patches/series 2013-01-17 14:54:18.000000000 -0800 @@ -1 +1,2 @@ 12_lessdeps_libgcrypt-config.diff +13_x32_support.diff

