Skip to content
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

update bindgen to fix incorrect proj results on apple silicon #80

Merged
merged 2 commits into from Apr 19, 2021

Conversation

michaelkirk
Copy link
Member

FIXES #52

@michaelkirk michaelkirk changed the title update bindgen update bindgen to fix incorrect proj results on apple silicon Apr 16, 2021
@lnicola
Copy link
Member

lnicola commented Apr 17, 2021

@michaelkirk
Copy link
Member Author

Excellent observation, thank you @lnicola.

done!


pub const PROJ_VERSION_MAJOR: u32 = 7;
pub const PROJ_VERSION_MINOR: u32 = 1;
pub const PROJ_VERSION_PATCH: u32 = 0;
pub const PROJ_VERSION_MINOR: u32 = 2;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs were actually not updated last time we updated libproj.

@lnicola
Copy link
Member

lnicola commented Apr 19, 2021

Can I do this?

bors r+

It would be really nice to not require bindgen as it's a heavy dependency. gdal-sys actually has some pre-built bindings for this. But now I wonder how portable those bindings actually are.

@bors
Copy link
Contributor

bors bot commented Apr 19, 2021

🔒 Permission denied

Existing reviewers: click here to make lnicola a reviewer

Copy link
Member Author

@michaelkirk michaelkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be really nice to not require bindgen as it's a heavy dependency. gdal-sys actually has some pre-built bindings for this. But now I wonder how portable those bindings actually are.

I'm with you. #44

I think we're onboard. Just no-one has done it yet.

🔒 Permission denied

I've just now added you! Can you try again?

#[doc = " error_string_max_size should be the maximum size that can be written into"]
#[doc = " the out_error_string buffer (including terminating nul character)."]
#[doc = ""]
#[doc = " @return the number of bytes actually read (0 in case of error)"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really follow bindgen dev, but seems to be extracting mostly useful comments from the C source now, which is neat.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol you're EVERYWHERE.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I ran into that in georust/gdal#55.

@lnicola
Copy link
Member

lnicola commented Apr 19, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 19, 2021

Build succeeded:

@bors bors bot merged commit 7c13100 into master Apr 19, 2021
This was referenced Apr 22, 2021
@michaelkirk michaelkirk deleted the mkirk/fix-test-on-m1 branch February 23, 2022 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail on Apple Silicon
2 participants