From 3cbbcc59d260181a4de5212adcf20ed426a95f94 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Mon, 4 May 2026 07:55:06 -0400 Subject: [PATCH] gh-149351: Avoid possible broken macOS framework install names when DESTDIR is specified during builds (GH-149352) (cherry picked from commit 1504bd671eebce0a99c15c113d219e0f344c03d9) Co-authored-by: Ned Deily --- Makefile.pre.in | 2 +- .../next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst diff --git a/Makefile.pre.in b/Makefile.pre.in index 797a6d6cceece0..da6d7c33156abf 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1059,7 +1059,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); 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.