summaryrefslogtreecommitdiff
path: root/rsvg_convert/build.rs
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2023-05-08 13:25:18 -0600
committerFederico Mena Quintero <federico@gnome.org>2023-05-08 14:21:51 -0600
commit859725ed5b75ba57c4344f68f488c407291f6f3a (patch)
treeb8c03ff359e854386f1c8dbf567d275338c66c64 /rsvg_convert/build.rs
parent3ac8b7ca56524aac1d53b383935c8dfe03b12967 (diff)
downloadlibrsvg-859725ed5b75ba57c4344f68f488c407291f6f3a.tar.gz
(#956): Rename rsvg-convert directory to rsvg_convert to avoid clashing with the rsvg-convert binary
When building with autotools and srcdir==builddir, ./target/.../rsvg-convert gets moved into ./rsvg-convert. But since ./rsvg-convert is already a directory, we get an ./rsvg-convert/rsvg-convert binary. Later, "make install" finds that ./rsvg-convert is a directory, not a file, and fails to install the binary. This renames the rsvg-convert directory to rsvg_convert, but makes Cargo keep the name of the binary as rsvg-convert. Another option would be to let Cargo use rsvg_convert per the package/directory name, and rename the resulting binary. Thanks to Abderrahim Kitouni for figuring this out! Fixes https://gitlab.gnome.org/GNOME/librsvg/-/issues/956 Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/829>
Diffstat (limited to 'rsvg_convert/build.rs')
-rw-r--r--rsvg_convert/build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsvg_convert/build.rs b/rsvg_convert/build.rs
new file mode 100644
index 00000000..eec6d526
--- /dev/null
+++ b/rsvg_convert/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+ system_deps::Config::new().probe().unwrap();
+}