public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Kacper Kowalik (xarthisius)" <xarthisius@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in media-video/ffmpeg/files: ffmpeg-0.7.6-fix_ppc64_32ul.patch
Date: Sun, 23 Oct 2011 08:18:24 +0000 (UTC)	[thread overview]
Message-ID: <20111023081824.529852004C@flycatcher.gentoo.org> (raw)

xarthisius    11/10/23 08:18:24

  Added:                ffmpeg-0.7.6-fix_ppc64_32ul.patch
  Log:
  (non-maintainer commit) Backport patch that allows build system to properly detect arch on ppc64 with 32ul. Fixes bug 341235 and 387207
  
  (Portage version: 2.2.0_alpha69/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-video/ffmpeg/files/ffmpeg-0.7.6-fix_ppc64_32ul.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/files/ffmpeg-0.7.6-fix_ppc64_32ul.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/files/ffmpeg-0.7.6-fix_ppc64_32ul.patch?rev=1.1&content-type=text/plain

Index: ffmpeg-0.7.6-fix_ppc64_32ul.patch
===================================================================
Autodetect PowerPC vs. PowerPC64.

This is the same code as for x86_64.
This is necessary because uname returns PPC64 if the hardware
is 64 bit, however the userland can still be fully 32 bit.
In that case FFmpeg fails to compile because some macros in the
asm code are set up incorrectly.
For details see https://bugs.gentoo.org/show_bug.cgi?id=341235
https://bugs.gentoo.org/show_bug.cgi?id=387207

author: Reimar Döffinger <Reimar.Doeffinger@gmx.de>

diff --git a/configure b/configure
index 6aa194c..0752d73 100755
--- a/configure
+++ b/configure
@@ -2188,13 +2188,9 @@ case "$arch" in
         arch="parisc"
         subarch="parisc64"
     ;;
-    "Power Macintosh"|ppc|powerpc)
+    "Power Macintosh"|ppc|powerpc|ppc64|powerpc64)
         arch="ppc"
     ;;
-    ppc64|powerpc64)
-        arch="ppc"
-        subarch="ppc64"
-    ;;
     s390|s390x)
         arch="s390"
     ;;
@@ -2392,6 +2388,11 @@ EOF
             spic=$shared
         fi
     ;;
+    ppc)
+        check_cc <<EOF && subarch="ppc64"
+        int test[(int)sizeof(char*) - 7];
+EOF
+    ;;
 esac
 
 enable $subarch






             reply	other threads:[~2011-10-23  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23  8:18 Kacper Kowalik (xarthisius) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-05-15 12:16 [gentoo-commits] gentoo-x86 commit in media-video/ffmpeg/files: ffmpeg-0.7.6-fix_ppc64_32ul.patch Alexis Ballier (aballier)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111023081824.529852004C@flycatcher.gentoo.org \
    --to=xarthisius@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox