Skip to content

Patch uuid.getnode() to use a different MAC address identification method #595

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ else
patch -p1 -i ${ROOT}/patch-macos-link-extension-modules.patch
fi

# `libuuid` does not build with support for determining MAC addresses, which makes `uuid.get_node`
# unstable. The upstream has other methods to determine the MAC address, which we can force fallback
# to.
# See https://github.com/python/cpython/pull/132901
patch -p1 -i ${ROOT}/patch-uuid-get-node-unstable.patch

# Also on macOS, the `python` executable is linked against libraries defined by statically
# linked modules. But those libraries should only get linked into libpython, not the
# executable. This behavior is kinda suspect on all platforms, as it could be adding
Expand Down
Loading
Loading