Skip to content

libraspberrypi: 0-unstable-2022-06-16 -> 0-unstable-2024-12-23#449772

Merged
fpletz merged 1 commit intoNixOS:masterfrom
GiggleSquid:pkgs-libraspberrypi
Oct 13, 2025
Merged

libraspberrypi: 0-unstable-2022-06-16 -> 0-unstable-2024-12-23#449772
fpletz merged 1 commit intoNixOS:masterfrom
GiggleSquid:pkgs-libraspberrypi

Conversation

@GiggleSquid
Copy link
Contributor

@GiggleSquid GiggleSquid commented Oct 8, 2025

The rpi userland repo was archived 2025-07-27: https://github.com/raspberrypi/userland
The userland repo contained mostly proprietary VideoCore APIs (alongside rpi hardware tools).

Other rpi hardware tools were moved to the utils repo: https://github.com/raspberrypi/utils

This package update targets the new utils repo.
I have not yet (and may not be able to) confirmed full parity with the previous version.

Updated to the latest commit of the archived rpi userland repo.
Added cmake flag to update min cmake version.

This change seems to now be required due to nixpkgs bumping cmake to 4.1.1 which removes support for cmake < 3.5 causing a build failure in the current version.

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.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Oct 8, 2025
@GiggleSquid
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 449772
Commit: 0fba953a3017d6a3f48781df837c81849c3d3536


x86_64-linux

✅ 3 packages built:
  • libraspberrypi
  • octoprint
  • octoprint.dist

@GiggleSquid GiggleSquid marked this pull request as ready for review October 8, 2025 05:26
@nix-owners nix-owners bot requested review from dezgeg and tkerber October 8, 2025 05:27
@GiggleSquid GiggleSquid added the 8.has: package (update) This PR updates a package to a newer version label Oct 8, 2025
@SFrijters
Copy link
Member

SFrijters commented Oct 8, 2025

One of my machines ran into the failed build last night, but I would prefer a different approach to fixing:

  • Add (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10") to cmakeFlags to fix this build.
  • Add a new package raspi-utils, using the new version/repo, since that is what raspbian and the rest of the debian family calls the package.
  • Remove libraspberrypi and reference the new package in the throw.

We could even match debian even more and have subpackages, but I doubt that's super useful:

$ sudo apt show raspi-utils
Package: raspi-utils
Version: 20251002-1
[...]
Depends: raspi-utils-core, raspi-utils-otp, raspi-utils-dt, raspi-utils-eeprom, raspinfo (>= 20240402-4)
[...]
Description: Collection of scripts and simple applications
 This is a meta-package that installs all of utilities

@GiggleSquid
Copy link
Contributor Author

In retrospect, that is indeed a better solution.
This also softens any potential feature parity mismatch.

I'll rework this pull to just add the cmake flag and add a new package in time for 25.11, then maybe the removal/throw should be after.

And while the subpackages could be cool, I personally don't see much use

@GiggleSquid GiggleSquid changed the title libraspberrypi: 0-unstable-2022-06-16 -> 0-unstable-2025-10-02 libraspberrypi: 0-unstable-2022-06-16 -> 0-unstable-2024-12-23 Oct 8, 2025
@GiggleSquid
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 449772
Commit: 6702d4e81d483d997d55868f754552166f521858


x86_64-linux

✅ 3 packages built:
  • libraspberrypi
  • octoprint
  • octoprint.dist

@GiggleSquid
Copy link
Contributor Author

The second force push was me forgetting to update the commit message.

Commit content is identical for the purpose of the last nixpkgs-review

@SFrijters
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 449772
Commit: fe9c50a981240746b37b1d2966b4c06576278ee0


x86_64-linux

✅ 3 packages built:
  • libraspberrypi
  • octoprint
  • octoprint.dist

aarch64-linux

✅ 4 packages built:
  • libraspberrypi
  • octoprint
  • octoprint.dist
  • raspberrypi-eeprom

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 8, 2025
@GiggleSquid
Copy link
Contributor Author

For tracking: This update resolve cmake4 update #445447

Copy link
Member

@SchweGELBin SchweGELBin left a comment

Choose a reason for hiding this comment

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

I prefer patches over cmake flags in archived repos, that is were #450828 has an advantage.
But the version update looks good to me.

@GiggleSquid
Copy link
Contributor Author

GiggleSquid commented Oct 11, 2025

I have no opinion on which solution is better.

But we definitely need to merge one of these to resolve the build failure

@SchweGELBin
Copy link
Member

I totally agree. Both of these fix an existing issue.
I'll leave it up to the maintainers. Just wanted to make you aware of the other pr.

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Oct 11, 2025
@SkohTV
Copy link
Member

SkohTV commented Oct 11, 2025

Didn't notice you also were working on fixing the cmake4 issue
We prefer to use patches (or substituteInPlace) instead of cmake flags, for ease of futur debugging #445447 (comment)

But since the original repo got archived, there's an argument for the cmake flag, so let's leave it up to maintainers

@GiggleSquid
Copy link
Contributor Author

We prefer to use patches (or substituteInPlace) instead of cmake flags, for ease of futur debugging #445447 (comment)

Thanks for that link. It explains the preference well and I had completely missed it.

Ofc, like you said, in this very specific case it kinda makes no difference.

I hope to deprecate libraspberrypi anyway #449925
I did just jump in at the deep end though, it's definitely beyond my usual work in nixpkgs

If anyone else can do some testing or help in other ways with #449925 it would be greatly appreciated!

Copy link
Member

@fpletz fpletz left a comment

Choose a reason for hiding this comment

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

Since the project is archived and can be probably removed soon, I also prefer not to take on a patch here.

@fpletz fpletz added this pull request to the merge queue Oct 13, 2025
@fpletz fpletz linked an issue Oct 13, 2025 that may be closed by this pull request
3 tasks
Merged via the queue into NixOS:master with commit 8d2d1c8 Oct 13, 2025
31 of 33 checks passed
@GiggleSquid GiggleSquid deleted the pkgs-libraspberrypi branch October 13, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: libraspberrypi

5 participants