Skip to content

Conversation

@fanquake
Copy link
Member

@fanquake fanquake commented Sep 5, 2023

Resolves build failures under Python 3.12, i.e building on rawhide:

make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/bitcoin/depends/work/staging/aarch64-unknown-linux-gnu/xcb_proto/1.14.1-4a91ac9dc41/bitcoin/depends/aarch64-unknown-linux-gnu/lib/python3.12/site-packages/xcbgen'
 /usr/bin/install -c -m 644 __init__.py error.py expr.py align.py matcher.py state.py xtypes.py '/bitcoin/depends/work/staging/aarch64-unknown-linux-gnu/xcb_proto/1.14.1-4a91ac9dc41/bitcoin/depends/aarch64-unknown-linux-gnu/lib/python3.12/site-packages/xcbgen'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'imp'
make[3]: *** [Makefile:271: install-pkgpythonPYTHON] Error 1

imp was removed in 3.12: https://docs.python.org/3/library/imp.html.

Github-Pull: #28097
Rebased-From: 7cb88c8

Also being backported for 25.x in #28047.

Resolves build failures under Python 3.12, i.e building on rawhide:
```bash
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/bitcoin/depends/work/staging/aarch64-unknown-linux-gnu/xcb_proto/1.14.1-4a91ac9dc41/bitcoin/depends/aarch64-unknown-linux-gnu/lib/python3.12/site-packages/xcbgen'
 /usr/bin/install -c -m 644 __init__.py error.py expr.py align.py matcher.py state.py xtypes.py '/bitcoin/depends/work/staging/aarch64-unknown-linux-gnu/xcb_proto/1.14.1-4a91ac9dc41/bitcoin/depends/aarch64-unknown-linux-gnu/lib/python3.12/site-packages/xcbgen'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'imp'
make[3]: *** [Makefile:271: install-pkgpythonPYTHON] Error 1
```

`imp` was removed in 3.12: https://docs.python.org/3/library/imp.html.

Github-Pull: bitcoin#28097
Rebased-From: 7cb88c8
@DrahtBot
Copy link
Contributor

DrahtBot commented Sep 5, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK hebasto

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot changed the title [24.x] depends: xcb-proto 1.15.2 [24.x] depends: xcb-proto 1.15.2 Sep 5, 2023
Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK 66b2b10

@maflcko
Copy link
Member

maflcko commented Sep 5, 2023

Should be fine to merge with red CI, but if you want to fix the "previous releases" task, replacing the docker call with:

    podman container stop --all  # Similar to "systemctl restart docker"

should do it.

See #27886 to fix the ARM task.

@fanquake
Copy link
Member Author

fanquake commented Sep 5, 2023

Should be fine to merge with red CI,

Going to merge this with red CI. We are going to have to followup with a number of CI related backports to release branches, so will leave any changes for then.

@fanquake fanquake merged commit 0df8f98 into bitcoin:24.x Sep 5, 2023
@fanquake fanquake deleted the fix_python_312_build branch September 5, 2023 14:40
@fanquake fanquake added this to the 24.2 milestone Oct 10, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants