File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,8 +101,16 @@ multiPackage:
101101 autotoolsPackageDev
102102 mkdir -p usr/lib/python${MAJOR_MINOR}
103103 cp $1/install/usr/lib/python${MAJOR_MINOR}/_sysconfigdata_*.py usr/lib/python${MAJOR_MINOR}
104- # remove any absolute include-/library-paths
105- sed -E -e "s|-[LI]/[^ ']+||" usr/lib/python${MAJOR_MINOR}/_sysconfigdata_*.py
104+ # Remove any absolute include-/library-paths and make the
105+ # data relocatable...
106+ sed -i -E \
107+ -e '1i prefix = "/".join(__file__.split("/")[:-3])' \
108+ -e "s|-[LI]/[^ ']*||g" \
109+ -e "/DESTDIRS/b" \
110+ -e "/INCLDIRSTOMAKE/b" \
111+ -e "/TZPATH/b" \
112+ -e "s|'/usr|prefix + '|" \
113+ usr/lib/python${MAJOR_MINOR}/_sysconfigdata_*.py
106114 python3 -m compileall usr/lib/python${MAJOR_MINOR}
107115 provideDeps : [ "*-dev" ]
108116
You can’t perform that action at this time.
0 commit comments