From b90e1a9e58917c86fe1c87ce411320880d72c9e4 Mon Sep 17 00:00:00 2001 From: aliriza Date: Wed, 7 Dec 2022 13:46:04 +0000 Subject: [PATCH] fix py --- dev/lang/python/pydefault | 2 +- dev/lang/python3.10/ympbuild | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dev/lang/python/pydefault b/dev/lang/python/pydefault index 5ddbd3e7..223e718f 100644 --- a/dev/lang/python/pydefault +++ b/dev/lang/python/pydefault @@ -25,7 +25,7 @@ if [ "$1" != "" ] ; then ln -s 2to3-$version /usr/bin/2to3 ln -s pip$version /usr/bin/pip3 ln -s pip$version /usr/bin/pip - ln -s libpython$version.so /usr/lib64/libpython3.so + ln -s libpython3.so.$version /usr/lib64/libpython3.so ln -s python-$version.pc /usr/lib64/pkgconfig/python3.pc ln -s python-$version-embed.pc /usr/lib64/pkgconfig/python3-embed.pc diff --git a/dev/lang/python3.10/ympbuild b/dev/lang/python3.10/ympbuild index bdf2a6bd..5cf750e4 100644 --- a/dev/lang/python3.10/ympbuild +++ b/dev/lang/python3.10/ympbuild @@ -47,8 +47,7 @@ package(){ done rm -f ${DESTDIR}/usr/lib64/pkgconfig/python3.pc rm -f ${DESTDIR}/usr/lib64/pkgconfig/python3-embed.pc - # remove symlink and move file - rm -f ${DESTDIR}/usr/lib64/libpython3.10.so - mv ${DESTDIR}/usr/lib64/libpython3.10.so ${DESTDIR}/usr/lib64/libpython3.so + # move libpython3.so file + mv ${DESTDIR}/usr/lib64/libpython3.so ${DESTDIR}/usr/lib64/libpython3.so.3.10 }