This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Library and include paths not added when cross-compiling on localized system
Type: Stage: patch review
Components: Cross-Build Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, ZackerySpytz, doko, kernevil, thomas-petazzoni
Priority: normal Keywords: patch

Created on 2015-03-24 20:04 by kernevil, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
0001-Override-system-locale-and-set-to-default-when-addin.patch kernevil, 2015-03-24 20:03 Patch to override system locale
Pull Requests
URL Status Linked Edit
PR 24919 open ZackerySpytz, 2021-03-18 12:34
Messages (3)
msg239173 - (view) Author: Samuel Cabrero (kernevil) Date: 2015-03-24 20:03
When cross compiling on a localized system (eg. LANG=es_ES.utf8) the add_gcc_paths is called. This function parses the output of "gcc -v -E" and fails because the output is localized which
results in no paths added and detect_modules not able to find
any system library (eg. libz, libssl, etc.)

The attached patch forces the use of the default locale in the function
add_gcc_paths.
msg244395 - (view) Author: Thomas Petazzoni (thomas-petazzoni) Date: 2015-05-29 17:38
I confirm seeing the same issue. This patch fixes it.
msg389024 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2021-03-18 15:54
that looks fine. Maybe also set LANG=C ?
History
Date User Action Args
2022-04-11 14:58:14adminsetgithub: 67955
2021-03-18 15:54:46dokosetmessages: + msg389024
2021-03-18 12:34:09ZackerySpytzsetnosy: + ZackerySpytz
pull_requests: + pull_request23683
2015-06-01 18:27:49Arfreversetnosy: + Arfrever

title: Library and include paths not added when cross compiling on localized sytem -> Library and include paths not added when cross-compiling on localized system
2015-05-29 17:38:45thomas-petazzonisetnosy: + thomas-petazzoni
messages: + msg244395
2015-03-25 06:53:00ned.deilysetnosy: + doko
stage: patch review

versions: + Python 2.7, Python 3.5
2015-03-24 20:04:00kernevilcreate