[Mesa-dev] [PATCH 17/18] loader: Look for any version of currently linked libudev.so

Emil Velikov emil.l.velikov at gmail.com
Tue Jul 7 12:40:12 PDT 2015


On 06/07/15 11:33, Chris Wilson wrote:
> Since there was an ABI break and linking twice against libudev.so.0 and
> libudev.so.1 causes the application to quickly crash, we first check if
> the application is currently linked against libudev before dlopening a
> local handle. However for backwards/forwards compatability, we need to
> inspect the application for current linkage against all known versions
> first.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
I'm ever so slightly conserned that RTLD_NOLOAD is not part of the POSIX
standard, thus it's missing on some platforms (*BSD seems ok, while
Solaris, MacOS are not).

Then again this code is not build for them so we are safe. Plus it does
save nastry crashes :-) Feel free to add the Cc: mesa-stable tag.

Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

Note(s) so self: 1) what was the main obstactle for dropping libudev and
sysfs 2) all that handling is completely broken in our configure.ac :-\

-Emil



More information about the mesa-dev mailing list