Skip to content

ffmpeg-headless: fix signing on darwin - #513225

Closed
kirillrdy wants to merge 1 commit into
NixOS:stagingfrom
kirillrdy:ffmpeg-sign-on-mac
Closed

ffmpeg-headless: fix signing on darwin#513225
kirillrdy wants to merge 1 commit into
NixOS:stagingfrom
kirillrdy:ffmpeg-sign-on-mac

Conversation

@kirillrdy

@kirillrdy kirillrdy commented Apr 24, 2026

Copy link
Copy Markdown
Member

not sure if the best fix, but fixes a bunch of consumers of ffmpeg-headless on darwin

cc @GaetanLepage @sarahec

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@kirillrdy kirillrdy changed the title ffmpeg-headless: fix signing on darwing ffmpeg-headless: fix signing on darwin Apr 24, 2026
@kirillrdy
kirillrdy force-pushed the ffmpeg-sign-on-mac branch from 4f929e5 to 8bc0a03 Compare April 24, 2026 23:30
@kirillrdy
kirillrdy marked this pull request as ready for review April 24, 2026 23:30
github-actions[bot]

This comment was marked as outdated.

@kirillrdy
kirillrdy marked this pull request as draft April 24, 2026 23:38
@kirillrdy
kirillrdy force-pushed the ffmpeg-sign-on-mac branch from 8bc0a03 to 29aa77f Compare April 24, 2026 23:38
@kirillrdy
kirillrdy changed the base branch from master to staging April 24, 2026 23:39
@nixpkgs-ci nixpkgs-ci Bot closed this Apr 24, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Apr 24, 2026
@kirillrdy
kirillrdy marked this pull request as ready for review April 24, 2026 23:39
github-actions[bot]

This comment was marked as outdated.

@github-actions
github-actions Bot dismissed their stale review April 24, 2026 23:39

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. labels Apr 24, 2026
@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Apr 25, 2026
@kirillrdy
kirillrdy force-pushed the ffmpeg-sign-on-mac branch from 29aa77f to 1e1b09b Compare April 25, 2026 05:05
@kirillrdy

Copy link
Copy Markdown
Member Author

talking on matrix, it could be transient sign issue, so this PR doesn't actually fix it

@jopejoe1

Copy link
Copy Markdown
Member

If this fixed signing it will probably fix #511265 and #514347.

From the ffmpeg maintainers @emilazy is probably the most knowledgeable about Darwin, and I would like to hear her opinion on this change.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with the underlying bug is that it’s a non-deterministic impurity. So you can’t actually trivially test if this produces any meaningful change without being able to reproduce or verify that the particular build was going to be broken anyway.

Simply making any change to the drv will cause a rebuild that will likely work, regardless of this change.

perl
pkg-config
]
++ optionals stdenv.hostPlatform.isDarwin [ darwin.sigtool ]

@eveeifyeve eveeifyeve May 15, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would IMO wanting to be aiming to use rcodesign instead of sigtool in here. But again that can be done in a followup.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using autoSignDarwinBinariesHook?

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label May 15, 2026
@kirillrdy

Copy link
Copy Markdown
Member Author

python3Packages.av builds on staging-next

@kirillrdy kirillrdy closed this May 15, 2026
@kirillrdy
kirillrdy deleted the ffmpeg-sign-on-mac branch May 15, 2026 21:24
@GaetanLepage

Copy link
Copy Markdown
Contributor

python3Packages.av builds on staging-next

Nice!

@eveeifyeve

Copy link
Copy Markdown
Member

So this pr isn't needed and fixes the kvazaar?

@kirillrdy

Copy link
Copy Markdown
Member Author

So this pr isn't needed and fixes the kvazaar?

I am not aware of kvazaar does it build on staging next ?

@eveeifyeve

eveeifyeve commented May 16, 2026

Copy link
Copy Markdown
Member

So this pr isn't needed and fixes the kvazaar?

I am not aware of kvazaar does it build on staging next ?

So is it something that ffmpeg fixed I guess then?? It builds fine on staging-next.

@kirillrdy

Copy link
Copy Markdown
Member Author

So this pr isn't needed and fixes the kvazaar?

I am not aware of kvazaar does it build on staging next ?

So is it something that ffmpeg fixed I guess then?? It builds fine on staging-next.

Its a transient issue,eg if you rebuild locally it most likely fixed itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ffmpeg: invalid signature on aarch64-darwin Build failure: kvazaar

6 participants