Skip to content

bpo-44394: Ensure libexpat is linked against libm - #28617

Merged
pablogsal merged 2 commits into
python:mainfrom
pablogsal:bpo-44394
Sep 29, 2021
Merged

pablogsal merged 2 commits into
python:mainfrom
pablogsal:bpo-44394

Conversation

@pablogsal

@pablogsal pablogsal commented Sep 29, 2021 •

Copy link
Copy Markdown
Member

https://bugs.python.org/issue44394

We need to link against libm to have isnan. See libexpat/libexpat#510

Comment thread setup.py
]
extra_compile_args = []
expat_lib = []
expat_lib = ['m']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind to add a comment mentioning "bpo-44394: " and explaining that libexpact uses isnan() of math.h?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Comment thread setup.py
extra_compile_args = []
expat_lib = []
# bpo-44394: libexpact uses isnan() of math.h and needs linkage
# against the libm

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it's a recent libexpact change, in version 2.4.0: libexpat/libexpat#511

I don't know if it's worth mentioning it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah, I think is good since is the one we use currently in all branches

@pablogsal
pablogsal merged commit 6c1154b into python:main Sep 29, 2021
@pablogsal
pablogsal deleted the bpo-44394 branch September 29, 2021 13:18
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9, 3.10.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @pablogsal, I had trouble checking out the 3.10 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 6c1154b9de29e1c9cd3d05f5289543e5cff73895 3.10

@bedevere-bot

Copy link
Copy Markdown

GH-28619 is a backport of this pull request to the 3.9 branch.

@bedevere-bot

Copy link
Copy Markdown

GH-28620 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 29, 2021
(cherry picked from commit 6c1154b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-28621 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 29, 2021
(cherry picked from commit 6c1154b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
miss-islington added a commit that referenced this pull request Sep 29, 2021
(cherry picked from commit 6c1154b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
ambv pushed a commit to miss-islington/cpython that referenced this pull request Sep 29, 2021
(cherry picked from commit 6c1154b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
ambv added a commit that referenced this pull request Sep 29, 2021
…H-28621)

* bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit 6c1154b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
ambv added a commit that referenced this pull request Sep 29, 2021
…H-28620)

(cherry picked from commit 6c1154b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants