Bug 2153038

Summary: python-yappi: Fails to detect timer_create availability in C99 mode
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: python-yappiAssignee: Alfredo Moralejo <amoralej>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amoralej
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-setuptools-67.6.1-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-05 18:00:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2153037    
Bug Blocks: 2137512    
Attachments:
Description Flags
0010-Unconditionally-set-LIB_RT_AVAILABLE-and-link-with-l.patch none

Description Florian Weimer 2022-12-13 20:56:51 UTC
With current python-setuptools, this logic in setup.py cannot really work, as explaiend in bug 2153037:

if os.name == 'posix' and sys.platform != 'darwin':
    compiler = new_compiler()
    if compiler.has_function('timer_create', libraries=('rt', )):
        user_macros.append(('LIB_RT_AVAILABLE', '1'))
        user_libraries.append('rt')

We can patch it out (define LIB_RT_AVAILABLE unconditionally), or hope for a generic fix in python-setuptools. Not sure yet.

Comment 1 Florian Weimer 2023-01-05 17:59:30 UTC
Created attachment 1935991 [details]
0010-Unconditionally-set-LIB_RT_AVAILABLE-and-link-with-l.patch

Comment 2 Florian Weimer 2023-01-05 18:00:19 UTC
I've worked around this in the package here because the proper fix for has_function has not happened.

Comment 3 Florian Weimer 2023-04-21 10:06:23 UTC
Workaround dropped in python-yappi-1.3.6-4.fc39 because python3-setuptools has been fixed.