Comments (13)
Upon further investigation, the problem is only caused when Meson's parameter install_rpath
for an executable is empty — it triggers a separate codepath that tries to delete the RPATH record altogether, and that's the thing that works in a way that causes ldconfig
to have problems. So, it looks like we can avoid this problem by patching glib's build files to set install_rpath
for the libraries that it installs. Pull request in the works.
from glib-feedstock.
I would like to get @jpakkane's opinion on this problem. There's a good reason Meson does this RPATH
hackery - it avoids potentially extremely costly relinking operations (given how slow ld.bfd
is). Nonetheless, we shouldn't try to break standard workflows.
from glib-feedstock.
@SoapZA Hopefully mesonbuild/meson#4685 will be a good place for that discussion to happen. Hacking RPATH is something I can definitely get behind — conda is built on it — but this particular implementation seems to have unfortunate corner cases.
from glib-feedstock.
Instead of patching all the libraries that are affected by this, can't we just patch the meson-feedstock? See for example this patch:
https://gitlab.com/buildroot.org/buildroot/blob/master/package/meson/0001-Only-fix-RPATH-if-install_rpath-is-not-empty.patch
(comment mesonbuild/meson#314 (comment) might be relevant here)
from glib-feedstock.
@jpakkane Maybe we should add this in Meson instead?
from glib-feedstock.
Note that having an empty rpath entry in the ELF file is different from not having it at all. No, I don't know how, but this caused problems in some distro (Debian?) where it triggered something. First you probably want to examine is this will cause issues to you.
from glib-feedstock.
I am planning to incorporate the buildroot patch into the pending 0.53.0 package of meson (conda-forge/meson-feedstock#26). In the broader ecosystem I can see how issues like the Debian corner case might crop up, but in Conda we are already munging RPATHs and forcing them to have specific, nonempty paths, so I don't believe we'll encounter any problems here.
from glib-feedstock.
All those install_rpath
patches needs probably to be reverted after patching Meson. The fix_rpath
function will still be called if install_rpath
is non-empty.
Nevertheless, the gstreamer-orc-feedstock
has a regression test for detecting this:
https://github.com/conda-forge/gstreamer-orc-feedstock/blob/master/recipe/meta.yaml#L29-L30
from glib-feedstock.
@kleisauke Since the install_rpath
patches add non-empty RPATHs, I believe that those kinds of patches can be reverted but won't need to be reverted. But, I just tried to build gstreamer-orc-feedstock
with meson 0.53 — without adding in the buildroot patch — and got an early error:
Project name: orc
Project version: 0.4.31
Appending CFLAGS from environment: '-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/gstreamer-orc-0.4.31 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix'
Appending LDFLAGS from environment: ['-Wl,-O2', '-Wl,--sort-common', '-Wl,--as-needed', '-Wl,-z,relro', '-Wl,-z,now', '-Wl,--disable-new-dtags', '-Wl,--gc-sections', '-Wl,-rpath,$PREFIX/lib', '-Wl,-rpath-link,$PREFIX/lib', '-L$PREFIX/lib']
Appending CPPFLAGS from environment: '-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include'
meson.build:1:0: ERROR: Unable to determine dynamic linker
I'll take a look and see if I can figure out this issue and see if there's an issue with meson 0.53 in general, or what. (If you have the chance to also take a look that would be awesome!)
from glib-feedstock.
Ah I see, since it adds non-empty RPATHs this issue would not manifest.
It looks like the Unable to determine dynamic linker
error is a meson 0.53 bug, see: mesonbuild/meson#6431
from glib-feedstock.
Thanks @kleisauke , I didn't do any googling. Looks like we should monitor and hold off deploying 0.53.0 for the time being.
from glib-feedstock.
Indeed it's wiser to stick with version 0.52.1. You may also need to increase the Python requirement to >=3.5.2
in the meson feedstock when version 0.53.1 is released: mesonbuild/meson@23ef804.
from glib-feedstock.
Meson 0.53.1 is out and we have a candidate package at conda-forge/meson-feedstock#27.
from glib-feedstock.
Related Issues (12)
- Moving pkg-config and header files to libglib output? HOT 8
- OSError: cannot load library 'gobject-2.0' HOT 6
- conda install of latest glib=2.51.0 fails HOT 15
- GLib-GIO message pops up when using matplotlib HOT 29
- @conda-forge-admin, please re-render
- glib is corrupted HOT 2
- As of v2.53.5 this package no longer contains lib/libgobject-2.0.la
- Should have run exports
- rerender HOT 1
- glibconfig.h missing HOT 2
- libglib uploads 3 packages to anaconda servers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glib-feedstock.