Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 716860

Summary: x11-libs/libX11 is compiled without the suport for shared mem extension module
Product: Gentoo Linux Reporter: brankob
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED INVALID    
Severity: normal CC: brankob, jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: tweaked ebuild- added libXext dependency and shm flag

Description brankob 2020-04-10 04:37:59 UTC
Mesa performance tips ( https://www.mesa3d.org/perf.html ) recommends compiling libX11 with MIT shared memory support for best openGL performance, yet this seems to be missing in ebuild. Is there some kind of securtiy problem with this ?

I've modified exisitng ebuild. I've adde shm USE flag and conditinal dependency to libXext. PAckage seesm to build fine and uses added define and libXext library during make.

I'll attach the ebuild...


 

Reproducible: Always
Comment 1 brankob 2020-04-10 04:39:58 UTC
Created attachment 631690 [details]
tweaked ebuild- added libXext dependency and shm flag
Comment 2 Matt Turner gentoo-dev 2020-06-15 00:30:08 UTC
Thanks for the report.

That documentation is very out of date. SHM support is enabled automatically by configure.ac:

AC_CHECK_FUNC([shmat], AC_DEFINE(HAS_SHM,1,[Has shm*() functions]))

which detects it on my system:

> checking for shmat... yes

So, nothing to do here. :)