Return-Path: Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by mail.openembedded.org (Postfix) with ESMTP id 544DB7F1CE for ; Fri, 26 Jul 2019 08:59:49 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id 4so17526398pld.10 for ; Fri, 26 Jul 2019 01:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=RfkVVz9GmlmJ9tCZPBHF4u+4hI6ZU8EpNdEGSFByj/o=; b=RGRTlPBYysqqVkW89vCApldzAlDm26/GYPqbAKVAcHoFvQWqH8+2MEz+qBWEEIVdaD WlhrNli/3eaecKNEjt7TD0IZdA1FgolOG+4gS1JS697UqlChMQezwGaq4JO+YUVIRSGa rnVDTCjYxrJRAzrgOIZ3ckgeaq86T5tPBwCb0xg0g0MCMjtOQ8hgNu0vgHxjBF7vhyvl FdsLNGEF+YU3htBhsDA4YTif7hbDHFl+JVY2wHh5sD8tZS1mF6r4L64FEjhL3sM7hV9u yx17tF7mqF3u5X0a7vo4IGDnoLWH+HCHVVCsgLTXujXqJSets9U5uiOMnnxl4xCQ04AU E9iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=RfkVVz9GmlmJ9tCZPBHF4u+4hI6ZU8EpNdEGSFByj/o=; b=P0a8DOzecgS3vHxYqbta5EBH4brouc0x485tMIbowu3BzoKDF3i7DN8qYCTogYDj8i 76ZHrQ2GRO5nNqD2Fc8dj/R5M131ffJqiQwLWDlvigJ69HNgyqUbMbIeSmtBLU1ULck6 zhdEpEyrTYk5j8kwWZ2F+F3vOKb5gXNOe6454YWUYlCqwZPMCV/KZ6Bxu8Iunz/w5Usd G1xj80IPs1R2XA0XxPK7P4FbJ7fbwpFlW2uch9fihFzdfdueWwdgc7e0LVVHjYEIvG8n M102s935RhnVJU9XxFsRS5cS0nVdPvbsvzIc47q8ytRX40gbAudaPgLQOGAviBXvVtY/ gt+Q== X-Gm-Message-State: APjAAAU72j4BDufw+ZZ63LRmux0wl5aIJmtgme7cZHq4RdvuJv2sEcaY mPH36BV06qjvl3RvQEoxDra01U8/auo= X-Google-Smtp-Source: APXvYqybGnCHi1SlaHWfODff1eAtvHh4m8O5GdeSGXVZrAAANy6oAmEQUWujtRRlSdWNUeRiIWrejQ== X-Received: by 2002:a17:902:4124:: with SMTP id e33mr88593455pld.6.1564131590196; Fri, 26 Jul 2019 01:59:50 -0700 (PDT) Received: from [192.168.99.50] ([92.39.202.78]) by smtp.gmail.com with ESMTPSA id v184sm52036688pfb.82.2019.07.26.01.59.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jul 2019 01:59:49 -0700 (PDT) To: Bruce Ashfield , "Yu, Mingli" References: <1564038385-372982-1-git-send-email-mingli.yu@windriver.com> <5D3A65EA.9090601@windriver.com> <5D3A6DB3.9080207@windriver.com> From: akuster808 Openpgp: preference=signencrypt Autocrypt: addr=akuster808@gmail.com; prefer-encrypt=mutual; keydata= mQINBFnlUP4BEADpKf+FQdLykenQXKk8i6xJNxDow+ypFeVAy8iFJp7Dsev+BtwUFo8VG7hx Jmd71vHMw+coBetWC3lk+IKjX815Ox0puYXQVRRtI+yMCgd6ib3oGxoQ8tCMwhf9c9/aKjaz mP97lWgGHbiEVsDpjzmMZGlJ6pDVZzxykkJExKaosE46AcA8KvfhRQg5zRyYBtinzs8Zu8AP aquZVHNXxPwjKPaSEEYqQjFeiNgFTavV+AhM2dmPmGUWCX9RZisrqA4slGwEB0srMdFf12Zg mD35Y9jZ80qpu5LPtJCFcsaAlebqR+dg36pIpiRR+olhN1wmC6LYP1vw6uMEYBjkTa2Rnb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47emlg4X3ygEoB9k2lPrpspyf6sUuSEi0WrlSxoLAr6p JG8rTUErYNeXe6JCdL31odDx1Dh5sdKIj2RicUYZNilxu9f1M7jZwf2ra1FGAlKj2ybqmgpZ EFteaiCinEYsvDyZyOiWHjAFI+RZIPQQL3AnVp4l7wYD3r9hnqYPww0slyMDcb9262RoFkHq dDwxPYarrNjWUpOzxB6bFxOgNRdCTgvQl8Ftk8a/yXB6vHeUSm1vPFCBxQPZytyfOLhEWm0J /mkVL0Z6iRK3p1LKnpLYCS4/esL2u7RrhPyCs2SsL58YcQF/g+PpeT9geZ+oyZ/4IQ+TWJoU PNHndk8VBTpzrmOaJxrebNL/W6C8JCmbLM11TAUMmHYi9JDytN8Au78hWpDbIdKwg1LeSxpw ZZD/OqOc0DBvHOpQhzkSrtR1lVlDV/+9E8J1T4uDhrGmZwYV+4xQetypHax8aAHisYbjXdVa 8CS2NxU= Message-ID: Date: Fri, 26 Jul 2019 01:59:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Cc: openembedded-devel Subject: Re: [meta-oe][PATCH] libseccomp: import from meta-security 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: , X-List-Received-Date: Fri, 26 Jul 2019 08:59:49 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US On 7/25/19 8:23 PM, Bruce Ashfield wrote: > On Thu, Jul 25, 2019 at 11:01 PM Yu, Mingli wrote: >> >> >> On 2019年07月26日 10:46, Bruce Ashfield wrote: >>> >>> On Thu, Jul 25, 2019 at 10:28 PM Yu, Mingli >> > wrote: >>> >>> >>> >>> On 2019年07月25日 21:45, Bruce Ashfield wrote: >>> > On Thu, Jul 25, 2019 at 3:06 AM >> > wrote: >>> >> >>> >> From: Mingli Yu >> > >>> > >>> > Can you share some details as to why this should be pulled from >>> > meta-security into a different repo ? >>> >>> Considering there is also some security related recipe under >>> meta-oe/recipes-security/, I think it's not strange to add a new one >>> libseccomp and libseccomp also provides a basic common filtering >>> mechanism. >>> >>> >>> .. but it is literally churn for the sake of churn. >>> >>> Meaning, that isn't a great reason to move something. If Armin wanted to >>> put the recipe in meta-oe, he would have done it himself. >> ^_^, I noticed Armin did try to do this in this thread "[oe] >> [meta-oe][PATCH 1/2] libseccomp: move lib from meta-security to meta-oe" >> in Jun 1, 2018. > In that case, follow up to that thread so folks can remember why it > didn't happen, or check to see if it was simply forgotten. Putting the > maintainers on the cc' from the start of something like this helps > immensely. > > But I see you added Armin to this thread, so that should be enough. I am fine if we move the recipe. The issue was Khem didn't want the "bash" dependency and I never followed up to clean that up. I would have responded sooner but this is the first time I have reliable Internet. - armin > > Bruce > >>> >>> Meanwhile, the below yocto compliance check error disappears once we >>> move libseccomp from meta-security to meta-oe. >>> ERROR: Nothing PROVIDES 'libseccomp' (but >>> /buildarea/layers/meta-virtualization/recipes-containers/cri-o/cri-o_git.bb >>> >>> DEPENDS on or otherwise requires it). >>> Close matches: >>> libcomps >>> ERROR: Required build target 'meta-world-pkgdata' has no buildable >>> providers. >>> >>> Missing or unbuildable dependency chain was: ['meta-world-pkgdata', >>> 'cri-o', 'libseccomp'] >>> >>> >>> Also not a valid reason. We've just fixed meta-virtualization, so >>> there's no need to shuffle something like this around, just to keep >>> another layers compliance check working. >>> >>> Bruce >>> >>> >>> Thanks, >>> >>> > >>> > It seems to fit the mandate of meta-security quite nicely ;) >>> > >>> > Is there some sort of dependency issue, or other technical problem >>> > that is causing a problem ? >>> > >>> > Bruce >>> > >>> >> >>> >> Signed-off-by: Mingli Yu >> > >>> >> --- >>> >> .../recipes-security/libseccomp/files/run-ptest | 4 +++ >>> >> .../libseccomp/libseccomp_2.4.1.bb >>> | 41 ++++++++++++++++++++++ >>> >> 2 files changed, 45 insertions(+) >>> >> create mode 100644 >>> meta-oe/recipes-security/libseccomp/files/run-ptest >>> >> create mode 100644 >>> meta-oe/recipes-security/libseccomp/libseccomp_2.4.1.bb >>> >>> >> >>> >> diff --git a/meta-oe/recipes-security/libseccomp/files/run-ptest >>> b/meta-oe/recipes-security/libseccomp/files/run-ptest >>> >> new file mode 100644 >>> >> index 0000000..54b4a63 >>> >> --- /dev/null >>> >> +++ b/meta-oe/recipes-security/libseccomp/files/run-ptest >>> >> @@ -0,0 +1,4 @@ >>> >> +#!/bin/sh >>> >> + >>> >> +cd tests >>> >> +./regression -a >>> >> diff --git >>> a/meta-oe/recipes-security/libseccomp/libseccomp_2.4.1.bb >>> >>> b/meta-oe/recipes-security/libseccomp/libseccomp_2.4.1.bb >>> >>> >> new file mode 100644 >>> >> index 0000000..dba1be5 >>> >> --- /dev/null >>> >> +++ b/meta-oe/recipes-security/libseccomp/libseccomp_2.4.1.bb >>> >>> >> @@ -0,0 +1,41 @@ >>> >> +SUMMARY = "interface to seccomp filtering mechanism" >>> >> +DESCRIPTION = "The libseccomp library provides and easy to use, >>> platform independent,interface to the Linux Kernel's syscall >>> filtering mechanism: seccomp." >>> >> +SECTION = "security" >>> >> +LICENSE = "LGPL-2.1" >>> >> +LIC_FILES_CHKSUM = >>> "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f" >>> >> + >>> >> +SRCREV = "fb43972ea1aab24f2a70193fb7445c2674f594e3" >>> >> + >>> >> +SRC_URI = >>> "git://github.com/seccomp/libseccomp.git;branch=release-2.4 >>> \ >>> >> + file://run-ptest \ >>> >> +" >>> >> + >>> >> +S = "${WORKDIR}/git" >>> >> + >>> >> +inherit autotools-brokensep pkgconfig ptest >>> >> + >>> >> +PACKAGECONFIG ??= "" >>> >> +PACKAGECONFIG[python] = "--enable-python, --disable-python, python" >>> >> + >>> >> +do_compile_ptest() { >>> >> + oe_runmake -C tests check-build >>> >> +} >>> >> + >>> >> +do_install_ptest() { >>> >> + install -d ${D}${PTEST_PATH}/tests >>> >> + install -d ${D}${PTEST_PATH}/tools >>> >> + for file in $(find tests/* -executable -type f); do >>> >> + install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests >>> >> + done >>> >> + for file in $(find tests/*.tests -type f); do >>> >> + install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests >>> >> + done >>> >> + for file in $(find tools/* -executable -type f); do >>> >> + install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools >>> >> + done >>> >> +} >>> >> + >>> >> +FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*" >>> >> +FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* >>> ${libdir}/${PN}/tools/.debug" >>> >> + >>> >> +RDEPENDS_${PN}-ptest = "bash" >>> >> -- >>> >> 2.7.4 >>> >> >>> >> -- >>> >> _______________________________________________ >>> >> Openembedded-devel mailing list >>> >> Openembedded-devel@lists.openembedded.org >>> >>> >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel >>> > >>> > >>> > >>> >>> >>> >>> -- >>> - Thou shalt not follow the NULL pointer, for chaos and madness await >>> thee at its end >>> - "Use the force Harry" - Gandalf, Star Trek II >>> > >