Bug 148200 - [patch] fix multimedia/ffmpeg build on powerpc64
Summary: [patch] fix multimedia/ffmpeg build on powerpc64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 03:10 UTC by Nathan Whitehorn
Modified: 2010-09-09 23:05 UTC (History)
0 users

See Also:


Attachments
ffmpeg-configure-patch (296 bytes, text/plain)
2010-06-28 03:10 UTC, Nathan Whitehorn
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Whitehorn freebsd_committer freebsd_triage 2010-06-28 03:10:04 UTC
The ffmpeg configure script recognizes only 'ppc64' as a platform ID for
64-bit powerpc, but FreeBSD reports itself as 'powerpc64'.

Fix: The attached patch adds 'powerpc64' to the configure script (this is ffmpeg
revision 22439), and allows ffmpeg to build and work successfully on
powerpc64 systems.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-06-28 03:10:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Martin Matuska freebsd_committer freebsd_triage 2010-07-24 20:25:35 UTC
 Does new ffmpeg 0.6 port work well on powerpc64? They seem to have
fixed it upsteram.
Comment 3 Nathan Whitehorn freebsd_committer freebsd_triage 2010-07-30 18:34:51 UTC
On Sat, 24 Jul 2010 21:25:35 +0200
Martin Matuska <mm@FreeBSD.org> wrote:

>  Does new ffmpeg 0.6 port work well on powerpc64? They seem to have
> fixed it upsteram.

There are two remaining problems:

1) It uses uname -m instead of -p to get the architecture, which
returns powerpc instead of powerpc64 (this probably breaks pc98 as
well).

2) On my system, the ppc architecture-specific bits in libavcodec do not
get built if I run make from multimedia/ffmpeg, resulting in some
linking errors at the end. If I then cd work/ffmpeg-0.6; gmake, they
get immediately built and everything is fine. I'm completely at a loss
as to what is different when gmake is run by ports vs. by hand.
-Nathan
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-08-01 21:41:42 UTC
mm          2010-08-01 20:41:26 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/ffmpeg    Makefile 
    multimedia/ffmpeg/files patch-configure 
    multimedia/ffmpeg-devel Makefile 
  Added files:
    multimedia/ffmpeg/files patch-libavcodec-Makefile 
    multimedia/ffmpeg-devel/files patch-configure 
                                  patch-libavcodec-Makefile 
                                  patch-libavutil-common.h 
  Log:
  - Fix architecture recognition [1]
  - Remove ARCH hack and rename ARCH to FFMPEG_ARCH (fixes powerpc64 build)
  - Synchronize patches between ffmpeg and ffmpeg-devel
  
  PR:             ports/148200 [1]
  Submitted by:   Nathan Whitehorn <nwhitehorn@freebsd.org> [1]
  
  Revision  Changes    Path
  1.126     +1 -2      ports/multimedia/ffmpeg-devel/Makefile
  1.16      +31 -0     ports/multimedia/ffmpeg-devel/files/patch-configure (new)
  1.1       +11 -0     ports/multimedia/ffmpeg-devel/files/patch-libavcodec-Makefile (new)
  1.1       +13 -0     ports/multimedia/ffmpeg-devel/files/patch-libavutil-common.h (new)
  1.114     +1 -2      ports/multimedia/ffmpeg/Makefile
  1.11      +24 -6     ports/multimedia/ffmpeg/files/patch-configure
  1.1       +11 -0     ports/multimedia/ffmpeg/files/patch-libavcodec-Makefile (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Martin Matuska freebsd_committer freebsd_triage 2010-09-09 23:05:39 UTC
State Changed
From-To: open->closed

Committed. Thanks!