libvpx: fix cross-compilation#126912
Conversation
|
I added it because 1859b5a did. Please remove it along with the other commented out flags. |
|
Thanks for the review. I've updated the PR to remove the commented out flags and to be more specific on which files need patchShebangs. Let me know if there's anything I can improve. |
|
Please follow CONTRIBUTING.md and manual#submitting-changes-making-patches and squash the fix-up commits.
|
This is done by removing some warnings that are not supported by the cross-compiler. We also need to disable the --enable-external-build flag, which breaks the build completely. This PR: NixOS#100210 added the flag, but it doesn't explain why it was added. It also doesn't show any attempt at trying to cross-compile for either darwin or aarch64. So let's remove it again, since it 'just' seems to break the build anyway. - drop commented out configure flags - be (more) explicit in patchShebangs - libvpx_1_8: be explicit about patchShebangs, remove commented flags
a88265c to
7907718
Compare
|
Squashed the commits together. I thought the commits I made were separate enough to warrant a commit each, but this is ok for me too, so let's do it. |
jonringer
left a comment
There was a problem hiding this comment.
diff LGTM
still need to test
|
Note that libvpx_1_8 still doesn't cross-compile, but only firefox depends on it, so I think it's less of a priority. That's also the reason why I didn't remove the --enable-external-build flag, it doesn't help anyway. |
|
nix-build -A pkgsCross.aarch64-multiplatform.libvpx build for me. |
This is done by removing some warnings that are not supported by the
cross-compiler.
We also need to disable the --enable-external-build flag, which breaks
the build completely.
This PR: #100210 added the flag,
but it doesn't explain why it was added. It also doesn't show any
attempt at trying to cross-compile for either darwin or aarch64. So
let's remove it again, since it 'just' seems to break the build anyway.
Motivation for this change
Support cross-compilation for libvpx, which is a dependency of ffmpeg.
I've tested building this with
nix build .#pkgsCross.aarch64-multiplatform.libvpx, which works. With #123915 applied, ffmpeg now also cross-compiles for aarch64-multipllatform :).Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)This reverts a change made in #118783. @TredwellGit do you have any idea why the --enable-external-build flag was added there? It doesn't seem like you attempted a cross-build (looking at the PR at least), but maybe you did?