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

(master) Cairo.libcairo pointing to? #295

Open
lobingera opened this issue Sep 8, 2019 · 4 comments
Open

(master) Cairo.libcairo pointing to? #295

lobingera opened this issue Sep 8, 2019 · 4 comments

Comments

@lobingera
Copy link
Contributor

This came a little bit unexpected ...

lobi@orange4:~$ ./julia-1.2.0/bin/julia 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0 (2019-08-20)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Cairo

julia> Cairo.l
layout_text           libgobject_version     libpangocairo_version
libcairo              libpango               line_to
libcairo_version      libpango_version
libgobject            libpangocairo
julia> Cairo.libcairo
"/home/lobi/.julia/dev/Cairo/deps/usr/lib/libcairo-script-interpreter.so"

seems to be working still (pkg test Cairo, using Cairo).
@giordano @staticfloat

@giordano
Copy link
Contributor

giordano commented Sep 8, 2019

"Problem" known, and I think fixed in Pkg that will be in Julia v1.3. It works anyway in this case because libcairo-script-interpreter.so is linked against libcairo.so

@lobingera
Copy link
Contributor Author

"Problem known" - means issue?

@giordano
Copy link
Contributor

giordano commented Sep 8, 2019

The problem is that BinaryProvider is picking up the wrong library (that's an unfortunate effect of how library detection works now: it uses for the first whose name starts with libcairo and can be dlopened). In practice, this should be a non-issue because libcairo-script-interpreter.so is linked to libcairo.so.

Instead, with #293 I get the following:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _  |  |
  | | |_| | | | (_| |  |  Version 1.4.0-DEV.98 (2019-09-06)
 _/ |\__'_|_|_|\__'_|  |  Commit f71f58e32d (1 day old master)
|__/                   |

julia> using Cairo

julia> Cairo.libcairo
"libcairo.so.2"

@lobingera
Copy link
Contributor Author

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

No branches or pull requests

2 participants