Bug 2153038 - python-yappi: Fails to detect timer_create availability in C99 mode
Summary: python-yappi: Fails to detect timer_create availability in C99 mode
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-yappi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alfredo Moralejo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2153037
Blocks: PortingToModernCHelpNeeded
TreeView+ depends on / blocked
 
Reported: 2022-12-13 20:56 UTC by Florian Weimer
Modified: 2023-04-21 10:06 UTC (History)
1 user (show)

Fixed In Version: python-setuptools-67.6.1-1.fc39
Clone Of:
Environment:
Last Closed: 2023-01-05 18:00:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
0010-Unconditionally-set-LIB_RT_AVAILABLE-and-link-with-l.patch (1.11 KB, patch)
2023-01-05 17:59 UTC, Florian Weimer
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.