New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--with-system-libmpdec / --with-system-expat still uses the vendored headers #98707
Comments
|
Bisecting with only Modules/_decimal/libmpdec removed, because I got some other failures with removed Modules/expat on the way. EDIT: Apparently, that's what you get when you spell expat as expact. |
|
I am really really bad at autotools, but my best guess is that this is caused by: Line 2584 in de69816
As LIBEXPAT_HEADERS contains a list that starts with Modules/expat/ascii.h. Line 2589 in de69816
As LIBMPDEC_HEADERS contains a list that starts with Modules/_decimal/libmpdec/basearith.h. In both cases, the dependency needs to be made conditional on the relevant --with-system-xxx option. |
|
Testing a possible fix. |
…ed headers
This was a regression in Python 3.12.02 that prevented Fedora doing this:
$ rm -r Modules/_decimal/libmpdec
$ rm -r Modules/expat
Before building Python with --with-system-libmpdec --with-system-expat.
The errors were:
make: *** No rule to make target 'Modules/_decimal/libmpdec/basearith.h', needed by 'Modules/_decimal/_decimal.o'. Stop.
make: *** No rule to make target 'Modules/expat/ascii.h', needed by 'Modules/pyexpat.o'. Stop.
Now the make-dependency on the headers only exists
when --with-system-libmpdec / --with-system-expat is **not** used.
Fixes python#98707
…t use the vendored headers
This was a regression in Python 3.12.02 that prevented Fedora doing this:
$ rm -r Modules/_decimal/libmpdec
$ rm -r Modules/expat
Before building Python with --with-system-libmpdec --with-system-expat.
The errors were:
make: *** No rule to make target 'Modules/_decimal/libmpdec/basearith.h', needed by 'Modules/_decimal/_decimal.o'. Stop.
make: *** No rule to make target 'Modules/expat/ascii.h', needed by 'Modules/pyexpat.o'. Stop.
Now the make-dependency on the headers only exists
when --with-system-libmpdec / --with-system-expat is **not** used.
Fixes python#98707
|
FTR this was a problem on older Pythons as well, but it was not exposed. #94474 did not introduce it, but it exposed it. Another problem this will most likely fix is: EDIT: It does not fix it. |
…t use the vendored headers
This was a regression in Python 3.12.0a2 that prevented Fedora doing this:
$ rm -r Modules/_decimal/libmpdec
$ rm -r Modules/expat
Before building Python with --with-system-libmpdec --with-system-expat.
The errors were:
make: *** No rule to make target 'Modules/_decimal/libmpdec/basearith.h', needed by 'Modules/_decimal/_decimal.o'. Stop.
make: *** No rule to make target 'Modules/expat/ascii.h', needed by 'Modules/pyexpat.o'. Stop.
Now the make-dependency on the headers only exists
when --with-system-libmpdec / --with-system-expat is **not** used.
Fixes python#98707
… vendored headers
This was a regression in Python 3.12.0a2 that prevented Fedora doing
this:
$ rm -r Modules/_decimal/libmpdec
$ rm -r Modules/expat
Before building Python with --with-system-libmpdec --with-system-expat.
The errors were:
make: *** No rule to make target
'Modules/_decimal/libmpdec/basearith.h', needed by
'Modules/_decimal/_decimal.o'. Stop.
make: *** No rule to make target 'Modules/expat/ascii.h', needed by
'Modules/pyexpat.o'. Stop.
Now the make-dependency on the headers only exists
when --with-system-libmpdec / --with-system-expat is **not** used.
Fixes python#98707
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
… vendored headers
This was a regression in Python 3.12.0a2 that prevented Fedora doing
this:
$ rm -r Modules/_decimal/libmpdec
$ rm -r Modules/expat
Before building Python with --with-system-libmpdec --with-system-expat.
The errors were:
make: *** No rule to make target
'Modules/_decimal/libmpdec/basearith.h', needed by
'Modules/_decimal/_decimal.o'. Stop.
make: *** No rule to make target 'Modules/expat/ascii.h', needed by
'Modules/pyexpat.o'. Stop.
Now the make-dependency on the headers only exists
when --with-system-libmpdec / --with-system-expat is **not** used.
Fixes python#98707
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
… longer include vendored headers (#98711)
…stem-expat no longer include vendored headers (pythonGH-98711). (cherry picked from commit 6abec1c) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
…pat no longer include vendored headers (python#98711)
Bug report
Python 3.12.0a1 or the main branch. Run:
This works fine with Python 3.11.0. I suspect somewhere along #94474 or a similar change, this has changed behavior, but I have not tried bisecting yet.
Your environment
The text was updated successfully, but these errors were encountered: