Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gst_all_1.gst-plugins-good: fix building rpicamsrc #217085

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

lopsided98
Copy link
Contributor

Description of changes

An assertion was preventing raspiCameraSupport from being enabled on 32-bit ARM, and the build was failing because it needs to be told where to find libraspberrypi.

Later, I also realized that rpicamsrc is actually not supported on aarch64, because the MMAL libraries in libraspberrypi don't support aarch64. I believe there was a period of time where MMAL could be built on aarch64, which led to this code in nixpkgs, but this support was removed upstream because it was buggy (see raspberrypi/userland#688).

I tested that rpicamsrc works on a Raspberry Pi Zero.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
    • armv6l-linux (cross)
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of rpicamsrc
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

cc @vikanezrimaya @nh2

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Feb 19, 2023
@figsoda figsoda added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Mar 5, 2023
@lilyinstarlight lilyinstarlight self-requested a review April 28, 2023 12:54
rpicamsrc is supported on 32-bit ARM as well, but this was not allowed by the
assertion.
The build script is unable to find the libraspberrypi libraries unless
explicitly told their location.
@lopsided98
Copy link
Contributor Author

I fixed the conflicts.

Copy link
Member

@lilyinstarlight lilyinstarlight left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you for this!

MMAL is not supported on 64-bit (see [1]), so rpicamsrc cannot be built on
aarch64.

[1] raspberrypi/userland#688
Copy link
Member

@lilyinstarlight lilyinstarlight left a comment

Choose a reason for hiding this comment

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

Awesome, thank you again!

@lilyinstarlight lilyinstarlight merged commit 78faafa into NixOS:master Jul 27, 2023
@lopsided98 lopsided98 deleted the gstreamer-rpicamsrc branch July 27, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 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 reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants