librsvg-2.45.6 fails to build on rust 1.31.1
Log:
error[E0658]: macro dbg! is unstable (see issue #54306)
--> rsvg_internals/src/svg.rs:84:9
|
84 | dbg!(&self.load_options.base_url);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.
error: Could not compile `rsvg_internals`.
To learn more, run the command again with --verbose.
make[3]: *** [Makefile:1903: /deps/svg/target/release/librsvg_internals.a] Error 101
make[3]: Leaving directory '/deps/svg'
make[2]: *** [Makefile:1415: install-recursive] Error 1
make[2]: Leaving directory '/deps/svg'
make[1]: *** [Makefile:1722: install] Error 2
make[1]: Leaving directory '/deps/svg'
make: *** [Makefile:1732: install-strip] Error 2
Relevant line: https://gitlab.gnome.org/GNOME/librsvg/blob/152507f0a8140eeefe8d937d4277e73d75dae515/rsvg_internals/src/svg.rs#L84.
Looks like a debugging statement wasn't removed. This will fail complication on Alpine because it is still on rust 1.31.1, see: https://pkgs.alpinelinux.org/package/edge/community/x86_64/rust