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

Bug 637548

Summary: dev-python/pypy{,3}: build failure on systems with hidepid>0 procfs feature (or grsec/PaX with CONFIG_GRKERNSEC_PROC)
Product: Gentoo Linux Reporter: Vadim A. Misbakh-Soloviov (mva) <mva>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: major CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bitbucket.org/pypy/pypy/pull-requests/581/fix-detect_pax-behavior-on-linux-if-procfs/diff
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: pypy-5.9.0.build.log.bz2

Description Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2017-11-15 06:12:47 UTC
both pypy and pypy3 (in released versions) trying to access /proc/1/status to detect if it builds on PaX-enabled system.

Unfortunatelly, grsec's CONFIG_GRKERNSEC_PROC feature, or kernel mainline's `hidepid` procfs feature blocks this (build process under portage user can't see pid1).

There is a patch (already merged in VCS version) on the bug's URL that fixes that behavior.
I'm asking that patch to be backported.

Reproducible: Always
Comment 1 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2017-11-15 06:18:06 UTC
Created attachment 504268 [details]
pypy-5.9.0.build.log.bz2

Here is pypy buildlog, for example
Same applicable for pypy3
Comment 2 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2020-12-11 05:53:59 UTC
I don't have PaX-enabled systems aymore, but anyway, it should alredy be fixed by new releases.