[aseprite] 01/01: Use eax register only on x86 architectures.

Tobias Hansen thansen at moszumanska.debian.org
Tue Jul 14 22:53:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 3ceaed68d101d317d59b0263c06e0b96a0c39013
Author: Tobias Hansen <tobias.han at gmx.de>
Date:   Wed Jul 15 00:41:09 2015 +0200

    Use eax register only on x86 architectures.
---
 debian/changelog                     |  7 +++++++
 debian/patches/eax_only_on_x86.patch | 16 ++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 55a6d56..1ed3062 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+aseprite (1.0.9+ds-3) UNRELEASED; urgency=medium
+
+  * debian/patches/eax_only_on_x86.patch:
+    - Added. Fixes FTBFS with GCC 5. (Closes: #790478)
+
+ -- Tobias Hansen <thansen at debian.org>  Wed, 15 Jul 2015 00:38:44 +0200
+
 aseprite (1.0.9+ds-2) unstable; urgency=medium
 
   * Upload to unstable.
diff --git a/debian/patches/eax_only_on_x86.patch b/debian/patches/eax_only_on_x86.patch
new file mode 100644
index 0000000..0791a61
--- /dev/null
+++ b/debian/patches/eax_only_on_x86.patch
@@ -0,0 +1,16 @@
+Description: Use x86 register eax only on x86 architectures
+ Otherwise it FTBFS e.g. on arm64 with GCC 5.
+Author: Tobias Hansen <thansen at debian.org>
+Bug-Debian: http://bugs.debian.org/790478
+
+--- a/src/raster/palette.cpp
++++ b/src/raster/palette.cpp
+@@ -427,7 +427,7 @@
+ 
+ int Palette::findBestfit(int r, int g, int b, int mask_index) const
+ {
+-#ifdef __GNUC__
++#if defined(__GNUC__) && ( defined(__i386__) || defined(__x86_64__) )
+   register int bestfit asm("%eax");
+ #else
+   register int bestfit;
diff --git a/debian/patches/series b/debian/patches/series
index 4a3dd2e..520c1da 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ disable-file-and-gif-tests.patch
 disable-resize_image_tests.patch
 resizing_from_options_gui.patch
 find_libpixman.patch
+eax_only_on_x86.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list