Skip to content

Commit

Permalink
Add patch for build with newest binutils (homebrew-ffmpeg#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
retokromer authored Aug 20, 2023
1 parent 88ca387 commit 2873781
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Formula/ffmpeg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Ffmpeg < Formula
version "6.0-with-options" # to distinguish from homebrew-core's ffmpeg
sha256 "57be87c22d9b49c112b6d24bc67d42508660e6b718b3db89c44e47e289137082"
license "GPL-2.0-or-later"
revision 1
revision 2
head "https://github.com/FFmpeg/FFmpeg.git", branch: "master"

option "with-chromaprint", "Enable the Chromaprint audio fingerprinting library"
Expand Down Expand Up @@ -100,7 +100,6 @@ class Ffmpeg < Formula
on_linux do
depends_on "alsa-lib"
depends_on "libxv"
depends_on "gcc" => :optional
end

on_intel do
Expand All @@ -109,6 +108,13 @@ class Ffmpeg < Formula

fails_with gcc: "5"

# Fix for binutils, remove with next release
# https://www.linuxquestions.org/questions/slackware-14/regression-on-current-with-ffmpeg-4175727691/
patch do
url "https://git.videolan.org/?p=ffmpeg.git;a=patch;h=effadce6c756247ea8bae32dc13bb3e6f464f0eb"
sha256 "a50d7da9870a3fd801ad3a4d13d5c9b260acb094cf8bfa4afd95a54741173a7f"
end

def install
args = %W[
--prefix=#{prefix}
Expand Down

0 comments on commit 2873781

Please sign in to comment.