From patchwork Fri Nov 22 01:25: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: 179944 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp4407391ilf; Thu, 21 Nov 2019 17:25:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyeyXbUAiWkBpcIpyPRYxAftWQ1oEbzB1yN76WMjk7y4gVOt0NyhK0KdlbD6NXP2GtgWmJO X-Received: by 2002:a17:90a:9286:: with SMTP id n6mr14794375pjo.84.1574385944673; Thu, 21 Nov 2019 17:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574385944; cv=none; d=google.com; s=arc-20160816; b=KUjkxwua+YX+8Ap6PK0FYAv8cNnxpy0RoMfJtdZXQUAzA5ZG6TjSZ+Yam5NyNDv4he uLQAS8gktegpPluvDCHm8h+79C2X6JjJphEiHQ+/ybQKXgQqeDa0RAkYZcujcgIieFle 7k4zuGvSz78VrR6HVnwIuNrtRUbU1xDhAbdHpvPtJvE6kq9evlgU9xq85/1W4S4Uvs0M kKE6bN6SiLjkWSfxE4AZ4nCjWWKnnBBKvOlREt7lYQVjBznHQYtdkeJmR8Eh789VfdT3 0i54W2Sd8dF/zbEgQWKZOxZ9nb2gHyz/e+PnsnGPlBaVHhP5sHNP1bJqgfXSV/1L4Ooz I4Kw== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=d4Hil40rlKLtmiM480Sqwr+xnxCz31xtFO+vrm/QCEw=; b=jXqqK4MfhitrAvdx620fZWtEJGkaEbfjG8pcOR5fKzGpyuV7Z8yb9om97oqSDdbhD4 asMQnDdUM4sQoaG2I0k+5Bqk1F6uoQEYNBKN5pJzvIRSRHPov+BJsFNe8pb8DaZSfQiR MXE//xLuET9tzrqfQhzYY6xdOGhDMyjHY0636yQg8lREwgHIOlZuKkj3C9kvKZEo5Cta YodzSTLOc+U0/7TaMIZiPC+k3pCW/7x3oPMozdveqV1RCUg3pvUiDmGr2DpHoL/XZQ/c EBQUjxJfPmOY05AG9YebDFZ+zkWTfDjs2fzqPYz0b0bnEZcrs78oZhznuSdsDbotMJZl tAqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="XhopeL4/"; 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 c15si1485499pls.184.2019.11.21.17.25.44; Thu, 21 Nov 2019 17:25:44 -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="XhopeL4/"; 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 406787FC9C; Fri, 22 Nov 2019 01:25:41 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mail.openembedded.org (Postfix) with ESMTP id D4AAB7FC91 for ; Fri, 22 Nov 2019 01:25:38 +0000 (UTC) Received: by mail-pf1-f172.google.com with SMTP id n13so2667944pff.1 for ; Thu, 21 Nov 2019 17:25:40 -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:mime-version :content-transfer-encoding; bh=7/LVWwf0n6/pKyzJOnj71pjO/+4hIlC5HPCnQn0OgAk=; b=XhopeL4/L/jEqaIQGxmJPqbb5aeUR3/M/qAtw7QuKyQ+Q5vMs8Ndn9aN+2U3N/4m2o 4HTkv8W8MqajHitkBzLt5d9dcuiI9m+PmykBdqwHykDIEjPej/5/+N7PeyKki1Yh05cJ 5tjGoLFTb9yDJ/LLVjPtR+GKNteCA2PxykGKwckV5trFSJGdScNu0S7lt4z0f6bRgwj2 h9XSytr+8kXBLjNptdgwz9uU5AMutL+5+75nRwWZbh2wwzDUa+91NFElvm8AN7xLLg8b ETN8YzI5Kpwb3iatguPnUCWqd0qEx1riAP/jQ7zjFwmZjIC7lLnSzvSGWjApy4nIQgAg Q0qQ== 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:mime-version :content-transfer-encoding; bh=7/LVWwf0n6/pKyzJOnj71pjO/+4hIlC5HPCnQn0OgAk=; b=lgfp0icVzFt2q8KGg/HkFeIJdE93oY4H8uW6/ZCAyk1dsE8un60eV4qwSW4c3ii6Vq 6o0LlCJgGY72WJ+kl26CuJgHvRi5RsUGy0h1f5FMJo8dXlQ514mcLK00Opv2Y4cbtMlY SIvpqxQaJlNqdFqHFTTxhI4xb3smaWzGaUE66gX9CIW5Ufnfx3MMl+KKFKdrlSrYFPcJ W2OLqM1e231WNgl9/PtxEj2hg01FqlHlDEwPcevE83ySMgbcEuBYLRD13DnnyW6/zGVW YufzrteB7caw/TKtxx5h4uSqY55+ceWqqkbvrQ03UyMfnfcMaIzD7mp50iNZrvyhHCeG yQVA== X-Gm-Message-State: APjAAAVQlYEGZ/FVI6YUguOyjnBohzFUdDQUZKdde2rf9F54M843LiVt cJSKeOAIZOS1/zCUpyhsZGW98GFjuss= X-Received: by 2002:a62:2f01:: with SMTP id v1mr14526229pfv.73.1574385939555; Thu, 21 Nov 2019 17:25:39 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::d61]) by smtp.gmail.com with ESMTPSA id 82sm4953635pfa.115.2019.11.21.17.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 17:25:39 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 21 Nov 2019 17:25:26 -0800 Message-Id: <20191122012527.3260265-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 1/2] sanlock: Use python3 and add sanlock user/group 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 Signed-off-by: Khem Raj --- meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb b/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb index 9f7ce9c570..8e411e4969 100644 --- a/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb +++ b/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb @@ -17,7 +17,7 @@ S = "${WORKDIR}/git" DEPENDS = "libaio util-linux" -inherit distutils +inherit distutils3 useradd do_configure[noexec] = "1" @@ -32,3 +32,11 @@ do_install_prepend () { oe_runmake -C src DESTDIR=${D} LIBDIR=${libdir} install cd ${S}/python } + +SANLOCKGROUP ?= "sanlock" +SANLOCKUSER ?= "sanlock" +USERADD_PACKAGES = "${PN}" +GROUPADD_PARAM_${PN} = "--system ${SANLOCKGROUP}" +USERADD_PARAM_${PN} = "--system -g ${SANLOCKGROUP} -G disk \ + --home-dir /run/${SANLOCKUSER} --no-create-home \ + --shell /sbin/nologin ${SANLOCKUSER}"