-
Notifications
You must be signed in to change notification settings - Fork 58
Handle transitive dependencies with Julia master #372
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
base: master
Are you sure you want to change the base?
Handle transitive dependencies with Julia master #372
Conversation
The respective change to Julia's master branch that required this change was reverted. |
ccall((:pango_version_string,Cairo.libpangocairo),Cstring,()) )) | ||
ccall((:pango_version_string,Pango_jll.libpango),Cstring,()) )) | ||
libgobject_version = VersionNumber( | ||
unsafe_load(cglobal((:glib_major_version, Cairo.libgobject), Cuint)), | ||
unsafe_load(cglobal((:glib_minor_version, Cairo.libgobject), Cuint)), | ||
unsafe_load(cglobal((:glib_micro_version, Cairo.libgobject), Cuint))) | ||
unsafe_load(cglobal((:glib_major_version, Glib_jll.libglib), Cuint)), | ||
unsafe_load(cglobal((:glib_minor_version, Glib_jll.libglib), Cuint)), | ||
unsafe_load(cglobal((:glib_micro_version, Glib_jll.libglib), Cuint))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I think this was right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And would probably work on Windows, too.
libpango_version = VersionNumber(unsafe_string( | ||
ccall((:pango_version_string,Cairo.libpango),Cstring,()) )) | ||
ccall((:pango_version_string,Pango_jll.libpango),Cstring,()) )) | ||
if !Sys.iswindows() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try removing this? My hunch is that this was necessary because the wrong library was being referenced.
The master branch of Julia has this recent change:
This means that a
ccall
to libraryA
will not find symbols inA
's dependencies any more. For example, looking forpango_version_string
inCairo_jll
does not work any more. Instead, one has to look for this symbol inPango_jll
.This PR updates Cairo in this respect. This change should be backward compatible, i.e. it should work with all earlier versions of Julia as well.