- Notifications
You must be signed in to change notification settings - Fork900
Pipelines update for FFmpeg 5 and security fixes#756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
8f71702
4510a68
46f2109
d780d93
2b57f53
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -50,13 +50,13 @@ if [ -n "$IS_OSX" ]; then | ||
BREW_SLOW_BUILIDING_PACKAGES=$(printf '%s\n' \ | ||
"cmake 15" \ | ||
"ffmpeg 10" \ | ||
) | ||
function generate_ffmpeg_formula { | ||
local FF="ffmpeg" | ||
local LFF="ffmpeg" | ||
local FF_FORMULA; FF_FORMULA=$(brew formula "${FF}") | ||
local LFF_FORMULA; LFF_FORMULA="$(dirname "$FF_FORMULA")/${LFF}.rb" | ||
local REGENERATE | ||
@@ -76,9 +76,8 @@ if [ -n "$IS_OSX" ]; then | ||
if [ -n "$REGENERATE" ]; then | ||
echo "Regenerating custom ffmpeg formula" | ||
# Bottle block syntax: https://docs.brew.sh/Bottles#bottle-dsl-domain-specific-language | ||
perl -wpe 'BEGIN {our ($found_blank, $bottle_block);} | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. You can leave link to the previous logic (before my changes), notice There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yes, it works, tried in my fork. Log:https://github.com/opencv/opencv-python/actions/runs/3694906850/jobs/6256653970 | ||
if (/(^class )(Ffmpeg)(\s.*)/) {$_=$1."Opencv".$3."\n"; next;} | ||
if (!$found_blank && /^$/) {$_.="conflicts_with \"ffmpeg\"\n\n"; $found_blank=1; next;} | ||
if (!$bottle_block && /^\s*bottle do$/) { $bottle_block=1; next; } | ||
if ($bottle_block) { if (/^\s*end\s*$/) { $bottle_block=0} elsif (/^\s*sha256\s/) {$_=""} next; } | ||
@@ -118,9 +117,9 @@ function pre_build { | ||
brew update | ||
generate_ffmpeg_formula | ||
brew_add_local_bottles | ||
brew install --build-bottleffmpeg | ||
# It needs when we use not the latest ffmpeg formula | ||
brew linkffmpeg | ||
if [ -n "$CACHE_STAGE" ]; then | ||
brew_go_bootstrap_mode 0 | ||