From 1665723b70dd12a113489d39e9f00d5932a35cea Mon Sep 17 00:00:00 2001 From: fosslinux Date: Wed, 24 Jan 2024 14:36:54 +1100 Subject: [PATCH] Respect DESTDIR for lib-dynload directory in py 2.0.1 --- steps/python-2.0.1/patches/destdir.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/steps/python-2.0.1/patches/destdir.patch b/steps/python-2.0.1/patches/destdir.patch index 147264b..3d8d6a5 100644 --- a/steps/python-2.0.1/patches/destdir.patch +++ b/steps/python-2.0.1/patches/destdir.patch @@ -204,3 +204,18 @@ Python 2.0 does not support DESTDIR, so add it in. fi; \ done +@@ -249,10 +249,10 @@ + $(DESTSHARED): + @for i in $(DESTDIRS); \ + do \ +- if test ! -d $$i; then \ +- echo "Creating directory $$i"; \ +- mkdir $$i; \ +- chmod 755 $$i; \ ++ if test ! -d $(DESTDIR)$$i; then \ ++ echo "Creating directory $(DESTDIR)$$i"; \ ++ mkdir $(DESTDIR)$$i; \ ++ chmod 755 $(DESTDIR)$$i; \ + else true; \ + fi; \ + done