From patchwork Sat Dec 21 00:06:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182336 Delivered-To: patch@linaro.org Received: by 2002:a92:1f98:0:0:0:0:0 with SMTP id f24csp1203360ilf; Fri, 20 Dec 2019 16:09:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxpGEjxkNYIIlcwdXt6xvlzA4R9lVmDznzZLBx7LELP4s+4LGoCr8CRO2h9GN04sd94JWyT X-Received: by 2002:a17:902:b489:: with SMTP id y9mr18235448plr.138.1576886957682; Fri, 20 Dec 2019 16:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576886957; cv=none; d=google.com; s=arc-20160816; b=p69w3BPJoNABlk7NaTDYPwWV7Det+VpJ5UelQKe3pu0vmgjUVoN3SjLOh7VpGlKkLE nfDSTzwid2AGUSPClBkAiBMqK3CY4z1P8EGqJiZktGxeAQYpApd/TA6JiS7p/b75yUY4 q3MtSi2SOnbEBSaAkz5RNanfGHfXkUn7s1krk4dWe++rjbBXF9ZREYj75rFca8xq20id MYcmJ16NZowNM4uAP+pN6cs6cKhexkTqi+mimbEgpE5KpckEfhTckTXqrewUKSvnshuJ f+nkEhZ+0KMye4AGsDBqHd8LR/CzwnXlwlYmMfhOpMfYboE42DpALxT2qhTlbSsRVhaG K/Ow== 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=Bn3ZN704co9bw+kd6Pwf3JQSrP2xDCPx1ueVTeLKOoI=; b=oQlxyd2gBgHLgrggxs9la4IWGYesobCyVkROjm9z5O5nyuDwDVZQoeI9SWDyfcjyC/ lB05jzGACjUKfbZmz0IBtF+L6jaJmowgMfCWel0duDkhODMiEPoUr0JeOu9Tj1iMpe5x T1zSG4KBORZ5a1njUj35M1tnliU28UOKGv8dua4xNIs72OXjMjh2sjxdTChSR0MzOsQ8 70DYBgpLfb5P8Nrb5Z3MkWMXltqXKwpsvvLpyPo23BssFOi9tBW0VjTHWhPViwj3ogIR +uI0bCtyBZ4FcO/Tw821ePuuC5/9sBuZkXVChuWLas2mARAKvyB5MNP9awsj8qk6lE2X wf0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=pqgvFLkM; 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 i21si10441756pgi.545.2019.12.20.16.09.17; Fri, 20 Dec 2019 16:09:17 -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=pqgvFLkM; 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 820167FD79; Sat, 21 Dec 2019 00:07:54 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mail.openembedded.org (Postfix) with ESMTP id AE7037FC74 for ; Sat, 21 Dec 2019 00:06:57 +0000 (UTC) Received: by mail-pg1-f172.google.com with SMTP id x8so5723120pgk.8 for ; Fri, 20 Dec 2019 16:06:59 -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=6r2PQa+p1moBBAMTohVgZfw0j9Plh4KyiEECOsXb/do=; b=pqgvFLkM55ffdYv+dy8jcno0jtfv34doQcThVz+j5Zpv7Y9ocsbAl+Hf71k7z9geUo S33NJMWrco4+lFJ1XxqVkZavNBz5BksBRZoSkL8isS/MB+010o+rLB8RbeCGhBZR1Sk6 Yp4H/KJydIoH3qutxGU2ZLLKV6oANqIEKERMntqFSwG/P/EUl2QRSKu7mDpR4oWSX5eU RHNiyY2Q4VPukFhrZ/Iw2ddniOByjOXVPPXFHWmBLugu+Okaxmb2wEK9yEluw7VHijnf FOnEGFWMO6v/XCF3tIHzPs0QzVpDOM2AbMQ8COX8xz3CXHNHm6a0Nne95JpPe0hfbpyy mV8w== 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=6r2PQa+p1moBBAMTohVgZfw0j9Plh4KyiEECOsXb/do=; b=qepxpdam+hsklxUP0e8oC/ipycuHGv9Aoqq6H1x1Nbe7Dz7neGmwrUozi66GKPkSq5 wC1oDcRAi7aKto659xoBl/ptvmKFOTTEtXdyOFWEsWE9xDGxwZf2I+dnYamsi983amec zz47auGBP/a8HI+grHbkj9dafGOF26KjtbFFg48hRdjo5hcBT2bB092WLa/pG2Zomb9P ltsFKSzwAl+sVGolsQpK9q5XYDqvu1DEoU4Ey1bh1sxo1OHbBSMmpbplk2UVMGUWpN0E LpfwMwW6j1ciI+bH40/JE9igXm9THciGSOq1n31QIJNZ4mWwbeWnZp19503mjXdACRbI IO7Q== X-Gm-Message-State: APjAAAWA6rzgbvyPNOOZRRbEBy0oe4BQZ0AVofRhBo5xxhEuk+AhgLQD DaMhxvloai1LaeKEB4jqzItMSo5fAwA= X-Received: by 2002:a63:31cf:: with SMTP id x198mr17499364pgx.272.1576886818150; Fri, 20 Dec 2019 16:06:58 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::36e9]) by smtp.gmail.com with ESMTPSA id d4sm11701624pjz.12.2019.12.20.16.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 16:06:56 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 20 Dec 2019 16:06:26 -0800 Message-Id: <20191221000635.1573390-14-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191221000635.1573390-1-raj.khem@gmail.com> References: <20191221000635.1573390-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 14/23] gattlib: Update to latest tip 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 Fix multilib builds Signed-off-by: Khem Raj --- .../files/0001-cmake-Use-GNUInstallDirs.patch | 53 +++++++++++++++++++ .../gattlib/gattlib_git.bb | 8 +-- 2 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.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-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.patch b/meta-oe/recipes-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.patch new file mode 100644 index 0000000000..ffe0a00673 --- /dev/null +++ b/meta-oe/recipes-connectivity/gattlib/files/0001-cmake-Use-GNUInstallDirs.patch @@ -0,0 +1,53 @@ +From 63dc2d0c9384d85482dc4cbb3c179b4b0bb18d4e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 19 Dec 2019 22:32:01 -0800 +Subject: [PATCH] cmake: Use GNUInstallDirs + +Helps install cmakefiles in right libdir + +Upstream-Status: Submitted [https://github.com/labapart/gattlib/pull/139] +Signed-off-by: Khem Raj +--- + CMakeLists.txt | 5 +++-- + dbus/CMakeLists.txt | 18 ++++++++++-------- + 2 files changed, 13 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 12d8d71..ded7239 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -152,7 +152,8 @@ endif() + # + # List of file to install + # +-install(FILES include/gattlib.h DESTINATION include) +-install(FILES ${PROJECT_BINARY_DIR}/gattlib.pc DESTINATION lib/pkgconfig) ++include(GNUInstallDirs) ++install(FILES include/gattlib.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) ++install(FILES ${PROJECT_BINARY_DIR}/gattlib.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + + include(CPack) +diff --git a/dbus/CMakeLists.txt b/dbus/CMakeLists.txt +index f5096ce..cef031f 100644 +--- a/dbus/CMakeLists.txt ++++ b/dbus/CMakeLists.txt +@@ -19,7 +19,7 @@ + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + # + +-cmake_minimum_required(VERSION 2.6) ++cmake_minimum_required(VERSION 3.0) + + find_package(PkgConfig REQUIRED) + +@@ -119,4 +119,6 @@ endif() + add_library(gattlib SHARED ${gattlib_SRCS}) + target_link_libraries(gattlib ${gattlib_LIBS}) + +-install(TARGETS gattlib LIBRARY DESTINATION lib) ++include(GNUInstallDirs) ++ ++install(TARGETS gattlib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) +-- +2.24.1 + diff --git a/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb b/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb index 0e6fce9c91..6b4decce51 100644 --- a/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb +++ b/meta-oe/recipes-connectivity/gattlib/gattlib_git.bb @@ -9,11 +9,13 @@ DEPENDS += "glib-2.0-native" PV = "0.2+git${SRCPV}" -SRC_URI = "git://github.com/labapart/gattlib.git" -SRC_URI += "file://dbus-avoid-strange-chars-from-the-build-dir.patch" +SRC_URI = "git://github.com/labapart/gattlib.git \ + file://dbus-avoid-strange-chars-from-the-build-dir.patch \ + file://0001-cmake-Use-GNUInstallDirs.patch \ + " SRCBRANCH = "master" -SRCREV = "c6a33252221dff904cf277e085e2ce70aced8788" +SRCREV = "5c7ee43bd70ee09a7170ddd55b9fdbdef69e9080" S = "${WORKDIR}/git"