Build broken as subproject of gstreamer monorepo
Building gst-plugins-rs
as a subproject of the gstreamer monorepo is broken:
Error: CliError { error: Some(could not find `Cargo.toml` in `/home/michael/gstreamer/build` or any parent directory), exit_code: 101 }
FAILED: subprojects/gst-plugins-rs/libgstrsaudiofx.so subprojects/gst-plugins-rs/libgstcdg.so subprojects/gst-plugins-rs/libgstclaxon.so subprojects/gst-plugins-rs/libgstrsclosedcaption.so subprojects/gst-plugins-rs/libgstfallbackswitch.so subprojects/gst-plugins-rs/libgstffv1.so subprojects/gst-plugins-rs/libgstrsfile.so subprojects/gst-plugins-rs/libgstrsflv.so subprojects/gst-plugins-rs/libgstgif.so subprojects/gst-plugins-rs/libgsthsv.so subprojects/gst-plugins-rs/libgstrsjson.so subprojects/gst-plugins-rs/libgstlewton.so subprojects/gst-plugins-rs/libgstrav1e.so subprojects/gst-plugins-rs/libgstrsregex.so subprojects/gst-plugins-rs/libgstreqwest.so subprojects/gst-plugins-rs/libgstrspng.so subprojects/gst-plugins-rs/libgstrusoto.so subprojects/gst-plugins-rs/libgstsodium.so subprojects/gst-plugins-rs/libgstrstextwrap.so subprojects/gst-plugins-rs/libgstthreadshare.so subprojects/gst-plugins-rs/libgsttogglerecord.so subprojects/gst-plugins-rs/libgstrswebp.so
/usr/bin/python3 /home/michael/gstreamer/subprojects/gst-plugins-rs/cargo_wrapper.py build /home/michael/gstreamer/build/subprojects/gst-plugins-rs /home/michael/gstreamer/subprojects/gst-plugins-rs /home/michael/gstreamer/build debug gst-plugin-audiofx,gst-plugin-cdg,gst-plugin-claxon,gst-plugin-closedcaption,gst-plugin-fallbackswitch,gst-plugin-ffv1,gst-plugin-file,gst-plugin-flavors,gst-plugin-gif,gst-plugin-hsv,gst-plugin-json,gst-plugin-lewton,gst-plugin-rav1e,gst-plugin-regex,gst-plugin-reqwest,gst-plugin-rspng,gst-plugin-rusoto,gst-plugin-sodium,gst-plugin-textwrap,gst-plugin-threadshare,gst-plugin-togglerecord,gst-plugin-webp '' /home/michael/.local/gst lib/x86_64-linux-gnu so
!566 (merged) removed the --manifest-path
parameter from calls to cargo cbuild
, so now cargo
doesn't look in the correct place for Cargo.toml
.
Re-adding the flag to cargo_wrapper.py
fixes the build:
for p in include:
cargo_cmd.extend(['-p', p])
cargo_cmd.extend(['--manifest-path', os.path.join(meson_current_source_dir, 'Cargo.toml')])
run(cargo_cmd, env)
Edited by Michael Farrell