Bug 120510 - multimedia/handbrake doesn't build on amd64
Summary: multimedia/handbrake doesn't build on amd64
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: Rong-En Fan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 21:10 UTC by Wes Morgan
Modified: 2008-02-20 01:21 UTC (History)
0 users

See Also:


Attachments
file.diff (2.09 KB, patch)
2008-02-10 21:10 UTC, Wes Morgan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wes Morgan 2008-02-10 21:10:03 UTC
Port marked as broken on AMD64. Build fails with "R_X86_64_32S" errors.

Fix: Compile a52 and mpeg2dec without the -prefer-non-pic flag for libtool.


Patch attached with submission follows:
How-To-Repeat: Remove broken flag and build port on amd64.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-02-10 21:16:31 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Jona Joachim 2008-02-12 16:34:14 UTC
Hi!
Thanks for your patch! Sorry for replying so late, I've been very busy
lately...
Does handbrake really compile and work for you on amd64 with this patch
applied? Unfortunately I can't test it myself as I currently don't have
an amd64 system running FreeBSD.
I submitted a patch with a little different approach which should fix
the build on amd64: ports/119908. It works on RELENG_7 but it doesn't
seem to work on RELENG_6. However your patch is much more elegant.
Could you perhaps test if it works on RELENG_6, too?

Best regards,
Jona
Comment 3 Wes Morgan 2008-02-13 00:23:10 UTC
On Tue, 12 Feb 2008, Jona Joachim wrote:

> Hi!
> Thanks for your patch! Sorry for replying so late, I've been very busy
> lately...
> Does handbrake really compile and work for you on amd64 with this patch
> applied? Unfortunately I can't test it myself as I currently don't have
> an amd64 system running FreeBSD.
> I submitted a patch with a little different approach which should fix
> the build on amd64: ports/119908. It works on RELENG_7 but it doesn't
> seem to work on RELENG_6. However your patch is much more elegant.
> Could you perhaps test if it works on RELENG_6, too?


Yep, it works fine:

[morganw@volatile:/usr/home/media/dvd$]: handbrake -i A_NEW_HOPE -o 
star_wars.avi
HandBrake 0.9.1 (2007100800) - http://handbrake.m0k.org/
2 CPUs detected
Opening A_NEW_HOPE...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...

<snip>

[mpeg4 @ 0x886a20]removing common factors from framerate
No accelerated IMDCT transform found
Encoding: task 1 of 1, 2.84 % (184.08 fps, avg 191.80 fps, ETA 00h15m09s)

[morganw@volatile:/usr/home/media/dvd$]: uname -a
FreeBSD volatile 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #4: Sun Jan 13 
11:48:41 CST 2008     morganw@volatile:/usr/src/sys/amd64/compile/VOLATILE 
amd64

It works the same as handbrake on my i386 laptop (Scanning for "forced 
subs" is broken on both). Unfortunately I don't have a RELENG_6 machine to 
test it on at the moment. The assembler error messages referenced in your 
PR look like they are 32-bit specific code that isn't being avoided on 
amd64.
Comment 4 Rong-En Fan freebsd_committer freebsd_triage 2008-02-19 09:09:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

I'll take it.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2008-02-19 09:17:53 UTC
State Changed
From-To: feedback->open

Maintainer approved (see Audit-Trail to ports/119008, which he had 
originally filed; he suggested that 119008 be closed of this one).
Comment 6 dfilter service freebsd_committer freebsd_triage 2008-02-20 01:19:24 UTC
rafan       2008-02-20 01:19:09 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/handbrake Makefile 
  Added files:
    multimedia/handbrake/files patch-contrib-a52dec-configure 
                               patch-contrib-mpeg2dec-configure 
  Log:
  - Unbreak on amd64 7.x and above
  
  PR:             ports/120510
  Submitted by:   Wes Morgan <morganw at chemikals.org>
  Approved by:    maintainer
  
  Revision  Changes    Path
  1.23      +1 -1      ports/multimedia/handbrake/Makefile
  1.1       +11 -0     ports/multimedia/handbrake/files/patch-contrib-a52dec-configure (new)
  1.1       +11 -0     ports/multimedia/handbrake/files/patch-contrib-mpeg2dec-configure (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 7 Rong-En Fan freebsd_committer freebsd_triage 2008-02-20 01:20:38 UTC
State Changed
From-To: open->closed

Committed. Thanks! (Note that 6.x amd64 is still broken)