Bug 196846 - multimedia/ffmpeg0: fails to build on armv6 with clang3.5.0
Summary: multimedia/ffmpeg0: fails to build on armv6 with clang3.5.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-18 19:41 UTC by Mikael Urankar
Modified: 2015-01-20 12:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (wg)


Attachments
fix build on armv6 (896 bytes, patch)
2015-01-18 19:41 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2015-01-18 19:41:36 UTC
Created attachment 151805 [details]
fix build on armv6

Hi,

clang enabled the integrated assembler by default and it breaks the build of ffmpeg0.
Import libav upstream patch to fix cpu detection:
https://git.libav.org/?p=libav.git;a=commitdiff;h=8ee2b4672f6ad5cfd003e742f887cffcfea26021

The attached patch fixes that.

To apply the patch:
cd /usr/ports/multimedia/ffmpeg0 ; patch < /path/to/patch
find /usr/ports/multimedia/ffmpeg0 -type f -name "*.orig" -delete
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-01-18 19:41:36 UTC
Auto-assigned to maintainer wg@FreeBSD.org
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2015-01-19 17:36:42 UTC
Confirmed.  Let me know if I should commit this, else I'll wait a bit for maintainer approval.

http://tasty.ysv.freebsd.org/build.html?mastername=11armv6-11-armv6-ports&build=2015-01-19_17h31m46s
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-01-20 12:05:59 UTC
A commit references this bug:

Author: wg
Date: Tue Jan 20 12:05:28 UTC 2015
New revision: 377509
URL: https://svnweb.freebsd.org/changeset/ports/377509

Log:
  multimedia/ffmpeg0: fix build on armv6 with clang 3.5

  PR:		196846
  Submitted by:	mikael.urankar gmail com

Changes:
  head/multimedia/ffmpeg0/Makefile
  head/multimedia/ffmpeg0/files/patch-libavcodec_arm_asm.S