Release notes: https://git.libcamera.org/libcamera/libcamera.git/tag/?h=v0.7.1
Lots of new features which require changes to the meson configuration.
In particular, SDL2 depends on libcamera, so that option is currently
gated behind the qcam option (even though it applies to the cam app as
well) to break the cycle. Since jpeg is dependent on SDL2, it's gated
the same way.
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
As the comment indicated, the only part of systemd that was used is
udev. This should decrease the closure size, and also do the right
thing on platforms with different udev implementations.
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
e.g. from 64-bit to 32-bit.
pybind11 is a header-only library, so there was no linking failure —
the only reason this ended up mattering was that it had some sort of
size check in it.
Fixes: 8a45e936ac ("libcamera: 0.2.0 → 0.3.0")
lttng-ust has a mandatory dependency on liburcu, which requires
architecture-specific code that isn't available for all platforms. To
enable building libcamera for those platforms, disable tracing support
if lttng-ust is unavailable. This fixes building libcamera for, for
example, loongarch64-linux.
The CI check complains about a new attribute introduced that's not using
the by-name pattern, even though it's using the same .nix file.
It seems using callPackage ../by-name/… from toplevel for the
alternative toplevel attribute seems to be others do this, so using the
same pattern here.