[meta-intel] [PATCH 3/3] lms: add recipe for lms 1921.0.0.0

Burton, Ross ross.burton at intel.com
Mon Jun 17 01:47:57 PDT 2019


On Mon, 17 Jun 2019 at 08:04, Alexander Usyskin
<alexander.usyskin at intel.com> wrote:
> +++ b/recipes-bsp/amt/files/lms_drop_rpath_1921.0.0.0.diff
> @@ -0,0 +1,15 @@
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index 979ce1b..9da880e 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -106,10 +106,6 @@ install (DIRECTORY Docs/Licenses
> +   FILES_MATCHING PATTERN "LICENSE.*"
> + )
> +
> +-list (APPEND CMAKE_INSTALL_RPATH "${PROJECT_BINARY_DIR}/UNS/GMS_COMMON")
> +-list (APPEND CMAKE_INSTALL_RPATH "${PROJECT_BINARY_DIR}/WsmanClient")
> +-list (APPEND CMAKE_INSTALL_RPATH "${PROJECT_BINARY_DIR}/UNS/StatusEventHandler")
> +-
> + if (BUILD_TESTS)
> +   include (gtest.cmake)
> + endif (BUILD_TESTS)

This patch doesn't have an explanation, an Upstream-Status, or a Signed-off-by.

> +LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=2ee41112a44fe7014dce33e26468ba93"

${S} is working directory, file://COPYING is idiomatic.

> +inherit cmake systemd pythonnative

Does it *really* need python-native?  If it just wants to find a
python binary then you can tell it to use the host Python:

EXTRA_OECMAKE += "-DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python2"

Also if this can't use Python 3, which is preferred, then please file
a bug upstream to point out that Python 2 is EOL next year.

> +DEPENDS = "metee ace xerces-c libnl libxml2 glib-2.0 glib-2.0-native connman"

This build-depends on comman?

> +PREFERRED_VERSION_metee = "2.1.0"

This does nothing, remove.

> +REQUIRED_DISTRO_FEATURES= "systemd"

lms can't work without systemd?

> +FILES_${PN} += "${libdir}/*.so"
> +FILES_SOLIBSDEV = ""
> +INSANE_SKIP_${PN} += "dev-so"

So lms is shipping loadable modules directly into /usr/lib?  Have you
verified that you're not matching too many files here?  Can you file a
bug upstream to follow the best practise of putting them into a
subdirectory of $libdir instead of directly in $libdir?

> +S = "${WORKDIR}/lms-${PV}"

This is the default, remove.

> +SRC_URI = "https://github.com/intel/lms/archive/v${PV}.tar.gz"
> +SRC_URI[sha256sum] = "6eb4b3160ff31ffbfa7f184427d05399534dbea6a89831f8059d3aa10842f1e3"

GitHub dynamically generated archive, use either maintainer-uploaded
tarballs, or the git fetcher.

> +SRC_URI_append = " file://lms_drop_rpath_${PV}.diff;patch=1"

patch=1 is the default, remove.

> +EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX=${prefix} \

The cmake class does this already, remove.

Ross


More information about the meta-intel mailing list