Project

General

Profile

Submit #3145

Update libelf to FreeBSD 12 current and build as base library usable by ports

Added by davshao 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/03/2018
Due date:
% Done:

0%

Estimated time:

Description

DragonFly dports graphics/mesa-dri has

LIB_DEPENDS+= libelf.so:devel/libelf

FreeBSD links with its own base libelf and does not use ports devel/libelf.
FreeBSD is right in its approach. ports devel/libelf and base libelf are
different code bases. Ports or pkgsrc devel/libelf appears to have problems
with modern mesa. This can be seen using some Radeon graphics cards where
Firefox with
user_pref("layers.acceleration.force-enabled", true);
results in a completely black window when trying to start Firefox with
something like
LD_PRELOAD=/usr/local/lib/libGL.so firefox &

What is notable about this patch is just how little the result will
differ from FreeBSD 12 current's version.

patch-libelf.patch (322 KB) patch-libelf.patch davshao, 09/03/2018 11:42 PM

Also available in: Atom PDF