diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-08 21:42:19 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-08 18:46:04 -0700 |
| commit | 74d3d9c2be522d62852049142f768de520d2f626 (patch) | |
| tree | eeff647f19deee7e6c55a3b4ad96daee18e296af | |
| parent | daf2c473d3438efba8e8635fa64fbda7c0b67bf3 (diff) | |
| download | meta-openembedded-74d3d9c2be522d62852049142f768de520d2f626.tar.gz | |
libiec61850: upgrade 1.5.3 -> 1.6.1
This update contains a fix for CVE-2024-26529, CVE-2024-45970 and CVE-2024-45971
Changelog: https://github.com/mz-automation/libiec61850/blob/v1.6/CHANGELOG
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch | 24 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch | 39 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/libiec61850/libiec61850_1.6.1.bb (renamed from meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb) | 12 |
3 files changed, 21 insertions, 54 deletions
diff --git a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch b/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch index e778e8158b..a33a6248a7 100644 --- a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch +++ b/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch | |||
| @@ -7,7 +7,7 @@ Subject: [PATCH] pyiec61850: Use CMAKE_INSTALL_LIBDIR from GNUInstallDirs in | |||
| 7 | This ensures that it gets installed in platform specified system libdir | 7 | This ensures that it gets installed in platform specified system libdir |
| 8 | all platforms do not use /usr/lib as assumed here e.g. ppc64 uses lib64 | 8 | all platforms do not use /usr/lib as assumed here e.g. ppc64 uses lib64 |
| 9 | 9 | ||
| 10 | Upstream-Status: Submitted [https://github.com/mz-automation/libiec61850/pull/376] | 10 | Upstream-Status: Denied [https://github.com/mz-automation/libiec61850/pull/376 - closed without a word] |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- | 12 | --- |
| 13 | pyiec61850/CMakeLists.txt | 6 ++++-- | 13 | pyiec61850/CMakeLists.txt | 6 ++++-- |
| @@ -15,15 +15,21 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 15 | 15 | ||
| 16 | --- a/pyiec61850/CMakeLists.txt | 16 | --- a/pyiec61850/CMakeLists.txt |
| 17 | +++ b/pyiec61850/CMakeLists.txt | 17 | +++ b/pyiec61850/CMakeLists.txt |
| 18 | @@ -31,7 +31,9 @@ endif() | 18 | @@ -31,14 +31,9 @@ swig_add_library(pyiec61850 |
| 19 | 19 | ||
| 20 | swig_link_libraries(iec61850 ${PYTHON_LIBRARIES} ${LIBS}) | 20 | swig_link_libraries(pyiec61850 ${LIBS}) |
| 21 | 21 | ||
| 22 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | 22 | -# Finding python modules install path |
| 23 | -install(TARGETS _iec61850 LIBRARY DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | 23 | -execute_process( |
| 24 | - COMMAND ${Python_EXECUTABLE} -c | ||
| 25 | - "from sysconfig import get_path; import sys; sys.stdout.write(get_path('platlib'))" | ||
| 26 | - OUTPUT_VARIABLE PYTHON_SITE_DIR | ||
| 27 | -) | ||
| 24 | +include(GNUInstallDirs) | 28 | +include(GNUInstallDirs) |
| 25 | + | ||
| 26 | +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
| 27 | +install(TARGETS _iec61850 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}//python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
| 28 | 29 | ||
| 29 | add_test(test_pyiec61850 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/test_pyiec61850.py) | 30 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyiec61850.py DESTINATION ${PYTHON_SITE_DIR}) |
| 31 | -install(TARGETS pyiec61850 LIBRARY DESTINATION ${PYTHON_SITE_DIR}) | ||
| 32 | +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyiec61850.py DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages) | ||
| 33 | +install(TARGETS pyiec61850 LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages) | ||
| 34 | |||
| 35 | add_test(test_pyiec61850 ${Python_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/test_pyiec61850.py) | ||
diff --git a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch b/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch deleted file mode 100644 index 3f0490cb80..0000000000 --- a/meta-networking/recipes-connectivity/libiec61850/files/0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | From d4ddfc7a350011b7944ed8d6bca80f164dfd1387 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Romain Naour <romain.naour@smile.fr> | ||
| 3 | Date: Fri, 10 Jul 2020 17:08:34 +0200 | ||
| 4 | Subject: [PATCH] pyiec61850: don't break CMAKE_INSTALL_PATH by trying to find | ||
| 5 | python modules install path (site-packages) | ||
| 6 | |||
| 7 | https://stackoverflow.com/questions/1242904/finding-python-site-packages-directory-with-cmake | ||
| 8 | |||
| 9 | Signed-off-by: Romain Naour <romain.naour@smile.fr> | ||
| 10 | --- | ||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | pyiec61850/CMakeLists.txt | 11 ++--------- | ||
| 14 | 1 file changed, 2 insertions(+), 9 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/pyiec61850/CMakeLists.txt b/pyiec61850/CMakeLists.txt | ||
| 17 | index 159ef4b..d1732a1 100644 | ||
| 18 | --- a/pyiec61850/CMakeLists.txt | ||
| 19 | +++ b/pyiec61850/CMakeLists.txt | ||
| 20 | @@ -31,14 +31,7 @@ endif() | ||
| 21 | |||
| 22 | swig_link_libraries(iec61850 ${PYTHON_LIBRARIES} ${LIBS}) | ||
| 23 | |||
| 24 | -# Finding python modules install path | ||
| 25 | -execute_process( | ||
| 26 | - COMMAND ${PYTHON_EXECUTABLE} -c | ||
| 27 | - "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())" | ||
| 28 | - OUTPUT_VARIABLE PYTHON_SITE_DIR | ||
| 29 | -) | ||
| 30 | - | ||
| 31 | -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION ${PYTHON_SITE_DIR}) | ||
| 32 | -install(TARGETS _iec61850 LIBRARY DESTINATION ${PYTHON_SITE_DIR}) | ||
| 33 | +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/iec61850.py DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
| 34 | +install(TARGETS _iec61850 LIBRARY DESTINATION /usr/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
| 35 | |||
| 36 | add_test(test_pyiec61850 ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_LIST_DIR}/test_pyiec61850.py) | ||
| 37 | -- | ||
| 38 | 2.31.1 | ||
| 39 | |||
diff --git a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.6.1.bb index cfded66e41..c46ed88d83 100644 --- a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb +++ b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.6.1.bb | |||
| @@ -13,25 +13,25 @@ SECTION = "console/network" | |||
| 13 | LICENSE = "GPL-3.0-only" | 13 | LICENSE = "GPL-3.0-only" |
| 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 15 | DEPENDS = "swig-native python3" | 15 | DEPENDS = "swig-native python3" |
| 16 | SRCREV = "6f557c490f0b46ab5d7ef1b01bb3bc9fab3f442f" | 16 | SRCREV = "a13961110b8238d2d8ea577c1fb7592ba3017ad8" |
| 17 | 17 | ||
| 18 | SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.5;protocol=https \ | 18 | SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.6;protocol=https;tag=v${PV} \ |
| 19 | file://0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch \ | ||
| 20 | file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \ | 19 | file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \ |
| 21 | " | 20 | " |
| 22 | 21 | ||
| 23 | 22 | ||
| 24 | inherit cmake pkgconfig python3-dir python3native siteinfo | 23 | inherit cmake pkgconfig python3-dir python3native siteinfo python3targetconfig |
| 25 | 24 | ||
| 26 | EXTRA_OECMAKE = " \ | 25 | EXTRA_OECMAKE = " \ |
| 27 | -DBUILD_EXAMPLES=OFF \ | 26 | -DBUILD_EXAMPLES=OFF \ |
| 28 | -DBUILD_PYTHON_BINDINGS=ON \ | 27 | -DBUILD_PYTHON_BINDINGS=ON \ |
| 28 | -DPYTHON_BASEVERSION=${PYTHON_BASEVERSION} \ | ||
| 29 | " | 29 | " |
| 30 | 30 | ||
| 31 | RDEPENDS:${PN}-python = " python3-core " | 31 | RDEPENDS:${PN}-python = " python3-core " |
| 32 | RDEPENDS:${PN} = " python3-core " | 32 | RDEPENDS:${PN} = " python3-core " |
| 33 | 33 | ||
| 34 | FILES:${PN} += " \ | 34 | FILES:${PN} += " \ |
| 35 | ${PYTHON_SITEPACKAGES_DIR}/iec61850.py \ | 35 | ${PYTHON_SITEPACKAGES_DIR}/pyiec61850.py \ |
| 36 | ${PYTHON_SITEPACKAGES_DIR}/_iec61850.so \ | 36 | ${PYTHON_SITEPACKAGES_DIR}/_pyiec61850.so \ |
| 37 | " | 37 | " |
