New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Puts invalid pkg-config package names into Cargo.toml (dashes replaced with underscores) #1020
Comments
You can edit the |
Thanks that works. I've now moved to the next step of the tutorial. |
Which name? But yes, the pkg-config stuff that confused you here should definitely be added to the tutorial. If you want, can you create a PR for https://github.com/gtk-rs/gtk-rs.github.io to add a paragraph or two about that? |
I can create the PR I was referring to the link you provided earlier.
I think this name comes directly from the package field in the gir file. But that depends if the current behaviour is the standard way to provide names for pkg-config names and this issue is rare. |
I think it would be useful for gir to do something more clever here about the dashes/underscores. I mean, in the .gir file the name is correct... @gdesmott What do you think? Why do we change the name to begin with? |
Because toml keys cannot contains |
Right, but I assume we could directly provide it in the correct way with |
It's already supposed to do it actually: https://github.com/gtk-rs/gir/blob/master/src/codegen/sys/cargo_toml.rs#L120 That should be debugged if it didn't work. |
Thanks, so something to fix here in gir instead :) |
Following the Gir Tutorial and continuing from the discussion on GNOME's Discourse. I am unable to build tracker-sys. On discourse I referenced the test/abi.rs file, but this file is (of course) not ran during the build step.
This time I built Tracker from source and placed the generated gir file in tracker-sys/gir-files along with the required librarys from /usr/share/gir-1.0/ on Fedora 33. The code I have is on my Gitlab - tracker-rs.
During the build process, it is trying to find the package
tracker_sparql_3_0
but the name should betracker-sparql-3.0
. For some reason the builder is modifying the package name found inside the tracker gir file when searching pkg-config for the package.The text was updated successfully, but these errors were encountered: