From patchwork Mon Aug 19 07:41:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3321 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 16D813F1F3 for ; Mon, 19 Aug 2024 09:42:33 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5bed8949b39sf1772523a12.3 for ; Mon, 19 Aug 2024 00:42:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053353; cv=pass; d=google.com; s=arc-20160816; b=VpUfMRC+iOTZQSi6z6qohMfXFbwLX4qT9eXtqVZMtigfg0s+mFcX+VJnj7N8UE9os0 olLjAKot1AEd+WqBkkdyxAcQBb7guANg/0HkxWmWiKB/KmUjOLOYnQ5QM75sXojRdL3L pLvrF7w5O5+f2wcyDW0HZy287YwmP9Dh4jQmpCQrr3nr8CKq08scx/J0KHTjYcmCzS+r vJy6C/JyJqmo18sN0jcjHnPPDzKGQslBcK0ZtX9+/Ht1enLcDrALHn6w49IfqHd/Hpj3 iq6RcI9S8FCbMG+kTtdVjlXzQDgGN5dVOQwFKm8euX2e5CfK7Bew55BiOFHzuS+p9x8m R9Ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZUihxTSDghoTiJboWiJ2BmPCqsY5A9+l26TrwKVqSAE=; fh=nd5AMxghb28YD+cpAC2lgDPEB8hkr3o/gBWnH7ndAd0=; b=buHhk25ooy/rqjHh6xqroHC/9spQ2PdHKV+rNf2Ddi2QqHOfb8v9arqnSq6VPX44AF aibkEuY0rsrmmEY1w1PTRQ9qVl1oumEVj+mRoMNvcu8GE3BbEzk8fhUgFdl1aZYe6kq3 YIHwMqO0lAGe0e2hdACuj1dEhscr3m80G2ybx1RIWDyfkF1QXiZaPgZL0Zjk+kO9E5/5 1uuStyi+SZLg/GrAX1D9l+mtDgMJdnIAyxu/dO7KbMA9uBc2ygMOIEA+wBXcg1Bk2AME u0TyibPQDe7IaykqD1oOWfo2sMIZ3ksVPsaFQy91I8xc/27Xof1MfkFO7zX3B2m3D6Sg Lu7g==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DWTsTQW+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053353; x=1724658153; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZUihxTSDghoTiJboWiJ2BmPCqsY5A9+l26TrwKVqSAE=; b=HO89SvmdHj9p/j2M6kBOHGvc53w+3rCFYY98m1CIEfL/MzNpclGqsezgpS2HDPn5+C z4My33Cn1eRKtBx2VwEN5aBidVRuJga1UyUfRJ6pXLtgi0NoBfyxeHDaH1hbyc+rn+DB VsTFdDpVEPP1X/HeRxcbg4uJMOhJlKNUdKg48= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053353; x=1724658153; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZUihxTSDghoTiJboWiJ2BmPCqsY5A9+l26TrwKVqSAE=; b=oQGNYFZqHmXAaiam25MjNYkGU4/Pb6GBNlh0cXKwWSsqotK3qT/l18QjlSOQDfqnHS OMZMUJjd0W5Jd4vkjYAlqPzCpL2S1D0o9BQTjofxWMzjFSmexpA1Y6R67c1KWuz2G3U+ RUxFbaKHzRAQ7r90RW/JVnrPhIJm/gNJA2MrOpd1MxIx7t65j4++8vmzVT5rE5aC1xyN xQkTbSDaTnV/kjTZUXB4/0404H+BY8zpAeGGI4uvQe0dvFSgRkOMyUnNC9wj5n/1bpoj 3ltATNRBnCvJP75xk1ukXsIKx4BUuNibyfvP+bKHbLN3ucbD9nNOhYsce9y3LpeshnD4 02lQ== X-Forwarded-Encrypted: i=2; AJvYcCXhSX2ClZp1T5GzrylzctcWLcumCp6nKveSjddpKzuVOoDceb3+m9oSmB/w8nXtdtyIcLmXgxduGt6X5SwlKnbOEFdMmJaRhDAMgoXpY6v5lKb4uTst3TIQ4F12Sw== X-Gm-Message-State: AOJu0YyTZgBSu8YtkoSt1apYCLpev2Lqa6edbVmnxZMTds2H7JtCIKML +ppgt3HHqnhKsykV/7hg2jN2T0Ytb66zM7Awnm8CahWuwvSRRJUdaERLpQHreReE1Q== X-Google-Smtp-Source: AGHT+IH0JaK2t/oia7MMxU8AGmiqszeJJE9fEUcdV734m+0KYZhZ17dRd81xH3fARapVUxyB7EQ36A== X-Received: by 2002:a05:6402:3201:b0:5be:de37:80dc with SMTP id 4fb4d7f45d1cf-5bede378440mr3564307a12.37.1724053352503; Mon, 19 Aug 2024 00:42:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:40ce:b0:5be:da72:5baf with SMTP id 4fb4d7f45d1cf-5beda725da3ls10422a12.0.-pod-prod-09-eu; Mon, 19 Aug 2024 00:42:31 -0700 (PDT) X-Received: by 2002:a17:907:c8a5:b0:a7a:b43e:86e4 with SMTP id a640c23a62f3a-a8392930be7mr738565466b.27.1724053350923; Mon, 19 Aug 2024 00:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053350; cv=none; d=google.com; s=arc-20160816; b=u9Sikw6BNWVlsCyQPhCVqrZLO2d/i4McGCn4os2CvWNGaVePF4WyCWltJz6B6mwoyf GImvUTm3e4PldiZNV1ItYoqvi9iYnp+aAlstDGx6XYv9Afgi8fwN9v8vhqAUngIkOP43 GubEhZ8bHO+FFBrtetXpt+xQggufNsbuaRRSndYTih+DertvixizOuWr5VZR/lmx6tkY 2FT838CFwMvhkkTMY8G4MdC5/DYa+TC0XxzgKku5Z1f/QAZ4afSPKxG0uSJY/SpbaoMK e6ro9Z+kzsuWLVKMLYpXtdBDNtwdYVunqnGeco42yY9LLRS1tG4CyN2EjMuFTMsm6P9u BfbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f6uYYXHmgBGPR3jH48ELoTVCKKaPOOwwO2IVZZsrlC4=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=Zd9YkzGpwx+vy4Xjku5LXHAFarYPMS/3nYzngyH2JxLiygnXBthW3XIdWRoaIol2e0 xzG4yWYqZQ5c7Y/y8vn7htmcslZHDlvLDxifFu4TpwUFxH/Yz0FcOJEJi+8oN9/yXoG1 iRe62J7yyjjSM+/OT2SFuc5JwsEju1xCkTDTRZv+GrYsxinLBQ3UYP49vaWsa6qrM3SK sV/AMsK2E+1F4AppgZGHLpyN99qtCQitEOCvq8u6Z8NdoYtjhY5EZYLOY2TOK5+gESSB VJzZAU2AS/o02pS2XU+GgYl+/cm7qOxwEp4wnyBR2lN79gWnemcNUPjMr28Tf6QYEz+d u9xA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DWTsTQW+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a8383942df9sor208473066b.18.2024.08.19.00.42.30 for (Google Transport Security); Mon, 19 Aug 2024 00:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:e2c4:b0:a7a:952b:95b1 with SMTP id a640c23a62f3a-a83929335fcmr705261466b.24.1724053350287; Mon, 19 Aug 2024 00:42:30 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:30 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 1/6] libtracefs: import from meta-openembedded Date: Mon, 19 Aug 2024 09:41:57 +0200 Message-ID: <20240819074202.34144-2-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DWTsTQW+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Import from meta-openembedded at commit ce7274164c ("libtracefs: upgrade 1.8.0 -> 1.8.1"). libtracefs is a dependency of rtla, so it is necessary to add it before adding rtla itself. Signed-off-by: Patrick Barsanti --- ...not-preserve-ownership-in-cp-command.patch | 28 +++++++++++++++++++ .../libtracefs/libtracefs_1.8.1.bb | 22 +++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch create mode 100644 meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb diff --git a/meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch b/meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch new file mode 100644 index 0000000000..7eaf29e4c4 --- /dev/null +++ b/meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch @@ -0,0 +1,28 @@ +From ab6f78bfd6811c648ee71663cfc4dc8be151a519 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 21 Dec 2022 22:50:56 -0800 +Subject: [PATCH] makefile: Do not preserve ownership in cp command + +Fixes +ERROR: libtracefs-1.6.3-r0 do_package_qa: QA Issue: libtracefs: /usr/lib/libtracefs.so is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 7f4f5c3..1ba7b9d 100644 +--- a/Makefile ++++ b/Makefile +@@ -296,7 +296,7 @@ endif # DESTDIR = "" + + install_libs: libs install_pkgconfig + $(Q)$(call do_install,$(LIBTRACEFS_SHARED),$(libdir_SQ)); \ +- cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) ++ cp --no-preserve=ownership --recursive $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) + $(Q)$(call do_install,$(src)/include/tracefs.h,$(includedir_SQ),644) + $(Q)$(call install_ld_config) + diff --git a/meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb b/meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb new file mode 100644 index 0000000000..66869b29a9 --- /dev/null +++ b/meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb @@ -0,0 +1,22 @@ +# Copyright (C) 2022 Khem Raj +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "Library to parse raw trace event formats " +HOMEPAGE = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/" +LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \ + file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd" +SECTION = "libs" +DEPENDS = "libtraceevent bison-native flex-native" + +SRCREV = "417c2e3aa21af670cc5c13db633dd35292f2d0fa" +SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https \ + file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \ + " +S = "${WORKDIR}/git" + +inherit pkgconfig + +do_install() { + oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig +}