From 97ff118c1e23c8929ddf45b6ff1253633fe13a91 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 2 Mar 2017 21:33:24 -0800 Subject: add patch for ppc64/ppc64el support (Closes: 476807) --- debian/changelog | 13 +++++++++++++ debian/patches/ppc64_short_int.patch | 33 +++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 47 insertions(+) create mode 100644 debian/patches/ppc64_short_int.patch diff --git a/debian/changelog b/debian/changelog index 9b249b9..0c8abed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +scm (5e5-4) UNRELEASED; urgency=medium + + * New maintainer (Closes: #721061). + * Repackage with dh. + * man-page chapter fix. + * Lintian fixups, including relative path references. + * Switch from texi2html to makeinfo for manual build. + * Switch to arch 'any'. + * Remove build flag ("-F inexact") so that test suite passes. + * Added #define SHORT_INT for ppc64 in scmfig.h (Closes: #476807). + + -- Bryan Newbold Mon, 20 Feb 2017 00:47:53 -0800 + scm (5e5-3.3) unstable; urgency=low * Non-maintainer upload. diff --git a/debian/patches/ppc64_short_int.patch b/debian/patches/ppc64_short_int.patch new file mode 100644 index 0000000..aca3ce2 --- /dev/null +++ b/debian/patches/ppc64_short_int.patch @@ -0,0 +1,33 @@ +Description: Fixes builds on ppc64 and ppc64el architectures. +Author: Fernando Seiti Furusato , Andreas Jochens +Forwarded: no +--- a/scmfig.h ++++ b/scmfig.h +@@ -264,6 +264,10 @@ + # define SHORT_INT + # define CDR_DOUBLES + #endif ++#ifdef __powerpc64__ ++# define SHORT_INT ++# define CDR_DOUBLES ++#endif + #ifdef MSDOS /* Microsoft C 5.10 and 6.00A */ + # ifndef GO32 + # define SHORT_INT +@@ -393,14 +397,10 @@ + # define WHITE_SPACES ' ':case '\t':case '\r':case '\f' + #endif + +-#ifdef __ia64__ ++#if defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) + # define PTR2INT(x) ((long)(x)) + #else +-# ifdef __x86_64 +-# define PTR2INT(x) ((long)(x)) +-# else +-# define PTR2INT(x) ((int)(x)) +-# endif ++# define PTR2INT(x) ((int)(x)) + #endif + + /* Define BIGDIG to an integer type whose size is smaller than long if diff --git a/debian/patches/series b/debian/patches/series index 563f697..cd31c27 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ not-usr-local.patch scm-manpage-chapter.patch kfreebsd_support.patch texinfo5_fixes.patch +ppc64_short_int.patch -- cgit v1.2.3