From a137069f2444ab758829ab3cf678b1324525f002 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Mon, 4 May 2026 03:36:46 -0400 Subject: [PATCH 1/2] Do not use DESTDIR in macOS framework install_name. --- Makefile.pre.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 3c166470b6c143..5789d33e7f4456 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1071,7 +1071,7 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \ $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION) $(CC) -o $(LDLIBRARY) $(PY_CORE_LDFLAGS) -dynamiclib \ -all_load $(LIBRARY) \ - -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/$(PYTHONFRAMEWORK) \ + -install_name $(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/$(PYTHONFRAMEWORK) \ -compatibility_version $(VERSION) \ -current_version $(VERSION) \ -framework CoreFoundation $(LIBS); From dc7c978c79544ef9dc0bfdd59eb0ff8d46684461 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Mon, 4 May 2026 06:06:13 -0400 Subject: [PATCH 2/2] gh-149351: macOS framework install breakage with DESTDIR Avoid potentially creating an incorrect macOS framework install name when DESTDIR is specified during builds. --- .../next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst diff --git a/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst b/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst new file mode 100644 index 00000000000000..792c8d394eccb2 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst @@ -0,0 +1,2 @@ +Avoid possible broken macOS framework install names when DESTDIR is +specified during builds.