From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 4 May 2026 12:15:23 +0000 (+0200) Subject: [3.14] gh-149351: Avoid possible broken macOS framework install names when DESTDIR... X-Git-Tag: v3.14.5rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c89d36af8911da561a0d444b2645d564323ee37;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-149351: Avoid possible broken macOS framework install names when DESTDIR is specified during builds (GH-149352) (#149354) (cherry picked from commit 1504bd671eebce0a99c15c113d219e0f344c03d9) Co-authored-by: Ned Deily --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 797a6d6cceec..da6d7c33156a 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 000000000000..792c8d394ecc --- /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.