[neon/qt/pyside2/Neon/release] debian: try some sed magick

Carlos De Maine null at kde.org
Sat Jun 24 03:52:43 BST 2023


Git commit fbf29d3259249de3fc77a19eb8ba089c30596aaa by Carlos De Maine.
Committed on 24/06/2023 at 02:52.
Pushed by carlosdem into branch 'Neon/release'.

try some sed magick

M  +8    -4    debian/set-paths

https://invent.kde.org/neon/qt/pyside2/-/commit/fbf29d3259249de3fc77a19eb8ba089c30596aaa

diff --git a/debian/set-paths b/debian/set-paths
index 2636d5d..92dec13 100755
--- a/debian/set-paths
+++ b/debian/set-paths
@@ -13,9 +13,9 @@ for directory in "cmake/Shiboken2-$MAIN_VERSION_UPSTREAM" "pkgconfig"; do
 	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/$directory/*;
         sed -i "s|\${_IMPORT_PREFIX}/include|\${_IMPORT_PREFIX}/../include|" \
 	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/$directory/*;
+	    sed -i "s|libshiboken2.*\.so|libshiboken2\${PYTHON_CONFIG_SUFFIX}.so|" \
+	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/$directory/Shiboken2Targets-*.cmake;
 done
-sed -i "s|libshiboken2.*\.so|libshiboken2\${PYTHON_CONFIG_SUFFIX}.so|" \
-	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/cmake/Shiboken2Targets-*.cmake;
 
 package="libpyside2-dev"
 for directory in "pkgconfig" "cmake/PySide2-$MAIN_VERSION_UPSTREAM"; do
@@ -29,9 +29,9 @@ for directory in "pkgconfig" "cmake/PySide2-$MAIN_VERSION_UPSTREAM"; do
 	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/$directory/*;
         sed -i "s|\${_IMPORT_PREFIX}/include|\${_IMPORT_PREFIX}/../include|" \
 	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/$directory/*;
+	    sed -i "s|libpyside2.*\.so|libpyside2\${PYTHON_CONFIG_SUFFIX}.so|" \
+	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/$directory/PySide2Targets-*.cmake;
 done
-sed -i "s|libpyside2.*\.so|libpyside2\${PYTHON_CONFIG_SUFFIX}.so|" \
-	    debian/$package/usr/lib/$DEB_HOST_MULTIARCH/cmake/PySide2Targets-*.cmake;
 
 # Set correctly the python path for pyside2 (Python3)
 sed -i "s|^set_and_check(PYSIDE_PYTHONPATH.*|set_and_check(PYSIDE_PYTHONPATH \"/usr/lib/python3/dist-packages/PySide2\")|" \
@@ -40,3 +40,7 @@ sed -i "s|^set_and_check(PYSIDE_PYTHONPATH.*|set_and_check(PYSIDE_PYTHONPATH \"/
 # Set correctly the python path for shiboken2 (Python3)
 sed -i "s|^set_and_check(SHIBOKEN_PYTHON_MODULE_DIR.*|set_and_check(SHIBOKEN_PYTHON_MODULE_DIR \"/usr/lib/python3/dist-packages/shiboken2\")|" \
     debian/libshiboken2-dev/usr/lib/$DEB_HOST_MULTIARCH/cmake/Shiboken2-$MAIN_VERSION_UPSTREAM/Shiboken2Config.cpython-3*-$DEB_HOST_MULTIARCH.cmake
+
+# Set correctly the bin path for cmake in libshiboken-dev
+sed -i "s|/workspace/usr/bin/shiboken2|/usr/bin/shiboken2|" \
+	debian/libshiboken2-dev/usr/lib/$DEB_HOST_MULTIARCH/cmake/Shiboken2Targets-relwithdebinfo.cmake


More information about the Neon-commits mailing list