From patchwork Thu Dec 19 15:25:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182130 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp625746iln; Thu, 19 Dec 2019 07:26:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzsDv5jCaO3k8LJDCOXdHuRfO69DKEiD63ie89A5GGuKpTHYH3wxUyF3Ey8/U7/GbYyrcNB X-Received: by 2002:a17:90a:808c:: with SMTP id c12mr9977633pjn.105.1576769215237; Thu, 19 Dec 2019 07:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576769215; cv=none; d=google.com; s=arc-20160816; b=ojWl5NmzvhQvamF/lic7Ia2NwPCMpota7CnVeEmcZpBJR52Qti4xwRlWKXJvVm968X ikfF0losLnFPGhIBxp6PkyUCNT/NIzKZbYvcVGyumBKLwqSM+UazOjaKBaAWcUBEvseo fS8FPBglKj7+EDCi+Kym5HmCbDXMZssVodImi24nPK8RoDDKISaiB4/g0uk1dQStOKxy UXbQ6QT7yEohIJenGNKc5Gr9MMOvDoTIvs9ntGP8ZUcAYMWJEdwx8AXpzSPhLUwk/RbO zTa+P1Pgje97spH8kTYW+Tijqav5bcr0rp+VIy3eYJhU08bNQmXu8OWJKniaa3N2WUIV HGKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=cvZQvRrXTixZsMzO29k2JTn3SKLjCmCPJhzOmX9oBBA=; b=jL2noTWe4Rfn61RSXOSZrX8HcORbXJAEO28At4JJLuENKcjCOJoE+C/7UlZgvlQ6Vv 1dBBngTPGhaeFNM9M7SN0FkO19/GASYV2SMCJpX53qdJ/gna04pke3c84pRCt3eG/6Ej ZGdg6Meuc0gEDImWlSGnLz+gEMLDVSmJrMpuzl4ZaXIAHI+bSTT0xeROwSG72+81yt0O 9I+eSaLAjm+ervUz5yyyqCWgFfdZOdzm1EeAarVTpKc7FC0xs7r/NDZNY3eX+YTjRwF+ 5ZJcnxw6wj9RvkAY0mflC4wAbSf6We5eVkQ2bwIE2EC5V4ORpHoypfhFoLqlrIOn3u7H M4iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=PkDHrV62; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id k3si5509758pls.166.2019.12.19.07.26.54; Thu, 19 Dec 2019 07:26:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=PkDHrV62; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5537C7FD93; Thu, 19 Dec 2019 15:26:16 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mail.openembedded.org (Postfix) with ESMTP id 9D15B7FD87 for ; Thu, 19 Dec 2019 15:25:44 +0000 (UTC) Received: by mail-pg1-f178.google.com with SMTP id b137so3290897pga.6 for ; Thu, 19 Dec 2019 07:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oBVRsaGhpXfYxxRbBRUTkS4xJZe3Dp6maLRxDev3II4=; b=PkDHrV6249hZhgPe9QDjdRNbsAeiVRg7C8mr7i/lPDaUISqVOdBCFlP5R+aHeJ1pJh 87u42iH1Hxl9xg+EQ0jnOmIxpKVzpyvJmuDvSzhdwEb0PfyYo4a183AinkiJ6Fzn7XIq s8Sj+7NMdhNcTrz9vT4NBZX6grxvCLYa2mPIFdr7uYTQQ36JcWtNuxzM0ARDhnjRuIDW wm6VqkacblALauqQqVj160a2hrdjTRoWQ1o/4dj9dlDi28abamN5PlEgedRZG9/IUHw1 vhEM54wJq1xjov9A+qvfDV+2yva+VPmzCHxlJraOos+S9MH3gqSeubZntEfdnPfEN2bN VyyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oBVRsaGhpXfYxxRbBRUTkS4xJZe3Dp6maLRxDev3II4=; b=qadg+0Leazh98rPSsxsIiMX92xAtzbKQ7ufBmlKRLvRbHlg3QyFoo5QdJGy5KNcFGx PqD7oW64rSBa4HEMUsy3GiTTPzEJ8lCEob/tE51s5bplljzZxnTT9KlW3cFdwu4Etk9j Rg0G8SqBA5IJfz/I5bqEBFSLH6CsUuNAMpPyy/hqM2YQdPMzg/O8aj2aod9wZCEBKZVm 2x9X3cn0JQJPpiU5d+fjxzL9KKcQTWp9hJBlaa6oosCRBdo3Mxuh+Gm8NdeXKJe/BP2k lFDSEulscTMMG+hipQJZCPqGwV5eCJopSGh6K+KREE32Oo7nqKytYvowttAaEsd/BLqq v/mA== X-Gm-Message-State: APjAAAVZSZix4PaJewvecdBXbXja9bAp943vm9qJinvuC6uBfSAKhfl8 0Ee1GkNSTTwjT2ChYg1Shdp+eTTo9bM= X-Received: by 2002:a65:4206:: with SMTP id c6mr9685963pgq.46.1576769145225; Thu, 19 Dec 2019 07:25:45 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::4b]) by smtp.gmail.com with ESMTPSA id s18sm8840470pfs.20.2019.12.19.07.25.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 07:25:43 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 19 Dec 2019 07:25:29 -0800 Message-Id: <20191219152529.725879-8-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219152529.725879-1-raj.khem@gmail.com> References: <20191219152529.725879-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 8/8] libcec: Fix multilib build X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Fixes ERROR: libcec-4.0.4-r0 do_package: QA Issue: libcec: Files/directories were installed but not shipped in any package: /usr/lib/python3.7/site-packages/_cec.so /usr/lib/python3.7/site-packages/cec.py Signed-off-by: Khem Raj --- ...pport.cmake-Do-not-hardcode-lib-path.patch | 42 +++++++++++++++++++ meta-oe/recipes-extended/libcec/libcec_git.bb | 3 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch b/meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch new file mode 100644 index 0000000000..3ecbfce250 --- /dev/null +++ b/meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch @@ -0,0 +1,42 @@ +From 95d4df3b713925e2c4894a2e4d50b06df861d9ef Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 18 Dec 2019 23:37:40 -0800 +Subject: [PATCH] CheckPlatformSupport.cmake: Do not hardcode lib path + +Using CMAKE_INSTALL_LIBDIR ensures that we can build for multilib env + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/libcec/cmake/CheckPlatformSupport.cmake | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/src/libcec/cmake/CheckPlatformSupport.cmake b/src/libcec/cmake/CheckPlatformSupport.cmake +index 2d7102f..55e78f8 100644 +--- a/src/libcec/cmake/CheckPlatformSupport.cmake ++++ b/src/libcec/cmake/CheckPlatformSupport.cmake +@@ -224,16 +224,16 @@ else() + + if (${PYTHON_MAJOR_VERSION} EQUAL 2) + install(TARGETS ${SWIG_MODULE_cec_REAL_NAME} +- DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}/cec) ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}/cec) + install(FILES ${CMAKE_BINARY_DIR}/src/libcec/cec.py +- DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) ++ DESTINATION l${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) + install(FILES ${CMAKE_SOURCE_DIR}/src/libcec/cmake/__init__.py +- DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/cec) ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/cec) + else() + install(TARGETS ${SWIG_MODULE_cec_REAL_NAME} +- DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}) ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}) + install(FILES ${CMAKE_BINARY_DIR}/src/libcec/cec.py +- DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) + endif() + endif() + endif() +-- +2.24.1 + diff --git a/meta-oe/recipes-extended/libcec/libcec_git.bb b/meta-oe/recipes-extended/libcec/libcec_git.bb index eaf6b9b437..8d5a82455b 100644 --- a/meta-oe/recipes-extended/libcec/libcec_git.bb +++ b/meta-oe/recipes-extended/libcec/libcec_git.bb @@ -13,7 +13,8 @@ PV = "4.0.4" SRCREV = "3bbd4321618503d14008387a72fabb6743878831" SRC_URI = "git://github.com/Pulse-Eight/libcec.git \ -" + file://0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch \ + " S = "${WORKDIR}/git"