v4l-utils: 1.24.1 -> 1.30.1 (and thereby drop edid-decode)#419046
v4l-utils: 1.24.1 -> 1.30.1 (and thereby drop edid-decode)#419046flokli merged 6 commits intoNixOS:stagingfrom
Conversation
...in fetchurl cf. NixOS#336172
It now builds with meson, cf. https://git.linuxtv.org/v4l-utils.git/commit/?id=c252c887c4e390fd7fd8b9f059680e5de3b5f540 It also no longer creates `.la` files for libtool. We also switch to Qt6 (with `qt5compat`), cf. https://git.linuxtv.org/v4l-utils.git/commit/?id=ac99ab1b812d7a68ad078e42f49035a7671a6433 On the other hand, it implicitely adds some content to the packages that are derived from this recipe: * share/doc now contains 6 MiB of html documentation * lib/gconv apparently contains files to decode Japanese DVB tables (see `README.md` in the sources) * new program `v4l2-tracer` * new program `edid-decode`, obsoleting the `edid-decode` package, cf. https://git.linuxtv.org/v4l-utils.git/commit/?id=363495b6df0dc30a0d63d49720ebbfa33f65c91f
|
Yeah, I closed my pull request. |
|
It doesn't look like from the mentioned commit that this is an official replacement to |
The |
|
SGTM. |
|
Broke musl; fix is #422973. |
|
Removing That precludes usage on Darwin (where I've just hit this) and looks like it may impact Although it's now in that same repo, IMO there could be some value in keeping a discrete package available. |
Unfortunatelly, I can't test compilation on darwin platforms (is there an easy way to emulate that on I would avoid creating a dedicated package for From what I tried, |
|
I've just had a quick play with adding some optionality to those dependencies. Unfortunately the build is now blocking by needing to link to I'm not super familiar with Meson so this is a good excuse to change that. I'll keep working at something here then hopefully send a PR your way. |
| ''; | ||
|
|
||
| nativeBuildInputs = [ | ||
| clang |
There was a problem hiding this comment.
Why do we require clang rather than use whatever the stdenv provides?
There was a problem hiding this comment.
Looks like we need it for BPF-related functionality: https://github.com/gjasny/v4l-utils/blob/v4l-utils-1.30.1/meson.build#L86
But since that's disabled in cross environments, clang shouldn't be added to nativeBuildInputs in those.
|
I've not had much luck getting this build trimmed down for cross-platform tools. There's a lot happening in that repo and no clean way to extract just In case anyone else sees this and would like to continue that work, dropping |
This updates
v4l-utilsandlibv4l=v4l-utils.override { withGUI=false; }to the newest version. This brings some changes:v4l-utilsnow requires meson for building.Unfortunatelly, there are two bugs in the source's meson configuration that cause files to be copied into the wrong derivation outputs. Those are now fixed with
substituteInPlace. I've already submitted patches upstream.We create a separate
v4l-utils.docpackage, as/share/docnow contains 6 MiB of HTML documentation.The feature
gconvis enabled (automatically by our default meson configuration), which -- according to upstream'sREADME.md-- adds content to "decode Japanese DVB tables".New program
v4l2-tracer: Was available in the sources before the update, but didn't get build (I don't know why).New program
edid-decode, replacing the separate packageedid-decode. An alias entry is added for this replacement.While we're at it, this pull request also
${pname}with string literalsrecwithfinalAttrsThis pull request might replace #408927 . Dear @MisileLab : I'm really sorry. I haven't seen your pull request before I've already prepare mine. Would you mind this one taking over and replacing yours?
Notifying
v4l-utilsmaintainer @codyopel: Would you mind having me as co-maintainer?Notifying
edid-decodemaintainer @Madouura: Would you like to joinv4l-utilsmaintainership?Notifying maintainers of some random packages that depend on
v4l-utils(sorry for bugging you, but this update changes a lot andv4l-utilsappears to be an important dependency, and I want to avoid breaking other packages):ffmpeg)mplayer)vlc)Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)More:
v4l2-ctl --list-formats-ext -d /dev/video0seems alright.dvbv5-zap --adapter=0 --channel=channels.dvbv5 --pat --output=/tmp/output.ts $CHANNEL_NAMErecords some TV into the output file as expected (tested with dvb-t2 and dvb-s2).qv4l2starts up and looks nice, so qt6 seems to work alright (I haven't tested any hardware access with this program).dvbv5-scan --get_frontend --nit ${dtv-scan-tables}/share/dvbv5/dvb-t/${SOME_TRANSPONDER_FILE}finds a lot of dvb-t channels, as it should.dtv-scan-tablesbuilds (it uses${v4l-utils}/bin/dvb-format-convertduring the build).mpv av://v4l2:/dev/video0shows a webcam's video stream.ffmpeg -f v4l2 -framerate 30 -video_size 1280x720 -input_format mjpeg -i /dev/video0 -vf 'scale=4*iw:-1,crop=1280:720,format=yuv420p' -f v4l2 /dev/video9to zoom my webcam's picture and feed it into a v4l2-loopback device. This still works.mpv dvb://$CHANNELworks (tested with dvb-s).Add a 👍 reaction to pull requests you find important.