]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-149351: Avoid possible broken macOS framework install names when DESTDIR...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 4 May 2026 12:15:23 +0000 (14:15 +0200)
committerGitHub <noreply@github.com>
Mon, 4 May 2026 12:15:23 +0000 (12:15 +0000)
(cherry picked from commit 1504bd671eebce0a99c15c113d219e0f344c03d9)

Co-authored-by: Ned Deily <nad@python.org>
Makefile.pre.in
Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst [new file with mode: 0644]

index 797a6d6cceece00eb6bb03aeee84469c0e351504..da6d7c33156abff1003a85a8d70a8e9fe33ae821 100644 (file)
@@ -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 (file)
index 0000000..792c8d3
--- /dev/null
@@ -0,0 +1,2 @@
+Avoid possible broken macOS framework install names when DESTDIR is
+specified during builds.