mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
libcyusbserial: fix installed-vs-shipped QA issue with multilib
* testing ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} existence
doesn't really work in cross compilation and on some hosts was causing:
ERROR: QA Issue: libcyusbserial: Files/directories were installed but not shipped in any package:
/usr/lib/libcyusbserial.so.1
/usr/lib/libcyusbserial.so
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
libcyusbserial: 2 installed and not shipped files. [installed-vs-shipped]
with multilib using /usr/lib32 or /usr/lib64 when the same didn't
exist on host.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
1d67c934ee
commit
2091b63c9d
+43
@@ -0,0 +1,43 @@
|
|||||||
|
From 655c5c32b37a2bea12389ed69c0869215fcf5abe Mon Sep 17 00:00:00 2001
|
||||||
|
From: Martin Jansa <Martin.Jansa@gmail.com>
|
||||||
|
Date: Sun, 3 Sep 2023 11:22:35 +0200
|
||||||
|
Subject: [PATCH] CMakeLists.txt: don't fall back CMAKE_INSTALL_LIBDIR to lib
|
||||||
|
|
||||||
|
* testing ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} existence
|
||||||
|
doesn't really work in cross compilation and on some hosts was causing:
|
||||||
|
|
||||||
|
ERROR: QA Issue: libcyusbserial: Files/directories were installed but not shipped in any package:
|
||||||
|
/usr/lib/libcyusbserial.so.1
|
||||||
|
/usr/lib/libcyusbserial.so
|
||||||
|
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
|
||||||
|
libcyusbserial: 2 installed and not shipped files. [installed-vs-shipped]
|
||||||
|
|
||||||
|
with multilib using /usr/lib32 or /usr/lib64 when the same didn't
|
||||||
|
exist on host.
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||||
|
---
|
||||||
|
lib/CMakeLists.txt | 9 ---------
|
||||||
|
1 file changed, 9 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
||||||
|
index 2b031cb..53a7263 100644
|
||||||
|
--- a/lib/CMakeLists.txt
|
||||||
|
+++ b/lib/CMakeLists.txt
|
||||||
|
@@ -6,15 +6,6 @@ if (NOT CMAKE_INSTALL_LIBDIR)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
endif (NOT CMAKE_INSTALL_LIBDIR)
|
||||||
|
|
||||||
|
-# Fall back to just "lib" if the item provided by GNUInstallDirs doesn't exist
|
||||||
|
-# For example, on Ubuntu 13.10 with CMake 2.8.11.2,
|
||||||
|
-# /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE} doesn't exist.
|
||||||
|
-if (NOT EXISTS "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||||||
|
- message(STATUS "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} does not exist. Defaulting libcyusbserial install location to ${CMAKE_INSTALL_PREFIX}/lib.")
|
||||||
|
- set(CMAKE_INSTALL_LIBDIR lib)
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
-
|
||||||
|
################################################################################
|
||||||
|
# Include paths
|
||||||
|
################################################################################
|
||||||
@@ -8,7 +8,9 @@ DEPENDS = "libusb udev"
|
|||||||
PV = "1.0.0+git${SRCPV}"
|
PV = "1.0.0+git${SRCPV}"
|
||||||
|
|
||||||
SRCREV = "655e2d544183d094f0e2d119c7e0c6206a0ddb3f"
|
SRCREV = "655e2d544183d094f0e2d119c7e0c6206a0ddb3f"
|
||||||
SRC_URI = "git://github.com/cyrozap/${BPN}.git;branch=master;protocol=https"
|
SRC_URI = "git://github.com/cyrozap/${BPN}.git;branch=master;protocol=https \
|
||||||
|
file://0001-CMakeLists.txt-don-t-fall-back-CMAKE_INSTALL_LIBDIR-.patch \
|
||||||
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user