python3: fix mips*-musl build
This commit is contained in:
parent
f306acc4ac
commit
1c522f08d3
1 changed files with 4 additions and 4 deletions
|
@ -64,17 +64,17 @@ do_install() {
|
||||||
# Remove references to hardening -specs.
|
# Remove references to hardening -specs.
|
||||||
sed -e 's|\(-specs=.*hardened-ld\)||g' -e 's|\(-specs=.*hardened-cc1\)||g' -i \
|
sed -e 's|\(-specs=.*hardened-ld\)||g' -e 's|\(-specs=.*hardened-cc1\)||g' -i \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
|
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m-*/Makefile \
|
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m*/Makefile \
|
||||||
${DESTDIR}/usr/bin/python${version%.*}*-config
|
${DESTDIR}/usr/bin/python${version%.*}*-config
|
||||||
# Remove references to the install(1) wrapper.
|
# Remove references to the install(1) wrapper.
|
||||||
sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \
|
sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
|
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m-*/Makefile
|
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m*/Makefile
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Remove references to cross toolchain.
|
# Remove references to cross toolchain.
|
||||||
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
|
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
|
${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata_m_*.py \
|
||||||
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m-*/Makefile
|
${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m*/Makefile
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ python3-devel_package() {
|
||||||
vmove usr/bin/python*-config
|
vmove usr/bin/python*-config
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
mv ${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m-*/libpython${version%.*}m.a \
|
mv ${DESTDIR}/usr/lib/python${version%.*}/config-${version%.*}m*/libpython${version%.*}m.a \
|
||||||
${PKGDESTDIR}/usr/lib
|
${PKGDESTDIR}/usr/lib
|
||||||
mkdir -p ${DESTDIR}/usr/include/python${version%.*}m
|
mkdir -p ${DESTDIR}/usr/include/python${version%.*}m
|
||||||
mv ${PKGDESTDIR}/usr/include/python${version%.*}m/pyconfig.h \
|
mv ${PKGDESTDIR}/usr/include/python${version%.*}m/pyconfig.h \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue