From patchwork Mon Apr 20 16:39:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zk47T X-Patchwork-Id: 86499 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D18BF588FF for ; Mon, 20 Apr 2026 16:40:30 +0000 (UTC) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23946.1776703186332648106 for ; Mon, 20 Apr 2026 09:39:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=WBGA6ayP; spf=pass (domain: gmail.com, ip: 209.85.214.169, mailfrom: zizuzacker@gmail.com) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2adff872068so15393655ad.1 for ; Mon, 20 Apr 2026 09:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776703185; x=1777307985; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZbNmtYpOA3mHXGP+dxSUSWoVkVPt2e5+kxSc10nJi5U=; b=WBGA6ayPg6WX+JT0lOI4ItG+Dv7LRTVJ2BZMBxgzCiWrRqB7XdBm9qF2iPPEkjXPcS 3pYvVZnT62Ecjn0hPsL0J/A57EAmv2TF6Q+MW2DuyPh6LTwItyJkbMEMXNKNoHvec/h6 NZ+mvLhAmA2Z79e/2P2ZPFKasM39e8Gt4+k6XHUgMgFTkUF/inAh+YM/jvc/Ghcu94at 7yN6yHnMbDwgM29WlJvSkrxQwciSnlljKW8i6Qp6YFFQcoV1GDmTI3+VyjR3v1gmo8Mo T8UEPVX97Q2b1v/YipZmJi8Y161nEBvBTaScSzHzLUD8LqBiuLIUn9MHErkBj2yrU30f SBDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776703185; x=1777307985; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ZbNmtYpOA3mHXGP+dxSUSWoVkVPt2e5+kxSc10nJi5U=; b=GjayJZe1GDcAI9iXxKkGQrYOlJ1t8G9HPLcOrGGxWKMQ9m9bpSpDfXYTofUgpbYmo1 qT7QkOVb01/7V/xLbJSVmEvalGbQXryTSeBX71RX5Ati3iJaY8zVuRKF00/ZT3Pr9z87 4tCioE7D67czjGYBLg3Qp256d9IpxKv9cnFaY7oIy9Hf69ILbeML6rqX5+aCwWF2A0T5 f/YsAdMaofOpauk9Jl17cKwa5wD2Lh/hnIzK2zmLD5lPvVkzUanGBMdWQwARVmhwD2ms lfZZeePT+4MEyselowzxPHAbz7+HIXLii5hm6ngkkM7utN3D9jiWtYDv5U86u74r5car 56ow== X-Gm-Message-State: AOJu0YxPtsSBrdtET1F3+wJSiVhj/aMbddmOFvKeC4PD6PltDUfJsQEx uQMJ0N/jJN9n6QJCs/fAD7sYe/MDUmZdO1r+tAB9sMATh6euStmM2CcNdzSzsQ== X-Gm-Gg: AeBDiev8pAuaEYj7cqnGq94srlePGkaR5Ku7zMiqwkXMNJtR1Dyg4nHYvP3P+mXGZTT GnNfhHcwSKasbp1xhr1gFhYVGEBJF73QM8zxF3qNmngJHzYmxhuM8aVryRWrWICNekRfK+cB0Me h14e8X9G6m0sF+ew6UVXvddxdY33c1N2V5GSLR01xyrJ7TO+feSD6cf27FW8kvRqVD0VjLZiaMt 5abdLxPtuhXXsbSqwFI5RD8JYeV6E4a4noRxIrl974nBZGoan/NpqpMMVxAeW3wogx+VY9LpHOD 2lG9Qlcrc2/tde5W0A2Tp4K+kG3m0kt0/unhs7sBY2EAiSQ6eUVPHL2gGmT8CMiUyuA6GbTn3vx rF9cVrze71AuYFs2VV8XvjhtW5edfywfIIgaciLbLWmK60vFaKjx+4DlU7Ce1wSJxv5Hq3wWqP5 eZM0ZUiWH/jYKpIlxFmvmo7KOfNOh2BSz3PzYfhF95y2XNsw== X-Received: by 2002:a17:903:22c9:b0:2b2:5314:e96a with SMTP id d9443c01a7336-2b5fa01675emr157214525ad.34.1776703185476; Mon, 20 Apr 2026 09:39:45 -0700 (PDT) Received: from localhost.localdomain ([42.118.25.200]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fa9fedf0sm129221105ad.6.2026.04.20.09.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 09:39:45 -0700 (PDT) From: "Zk47T" To: openembedded-core@lists.openembedded.org Cc: Ross.Burton@arm.com Subject: [PATCH v2 1/3] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Date: Mon, 20 Apr 2026 23:39:38 +0700 Message-Id: <20260420163940.182918-2-zizuzacker@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260420163940.182918-1-zizuzacker@gmail.com> References: <20260420163940.182918-1-zizuzacker@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 20 Apr 2026 16:40:30 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/235577 When a recipe inherits useradd and only sets USERADD_DEPENDS (to depend on users/groups created by another recipe), without creating any users/groups itself, the parse-time sanity check incorrectly throws a fatal error about missing USERADD_PACKAGES. Skip the USERADD_PACKAGES/USERADD_PARAM validation when USERADD_DEPENDS is set but USERADD_PACKAGES is not, since the recipe only needs build dependency tracking, not user/group creation. Fixes [YOCTO #15863] Signed-off-by: Nguyen Minh Tien --- meta/classes/useradd.bbclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index 16a65ac323..9d857a4555 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass @@ -212,6 +212,11 @@ def update_useradd_after_parse(d): useradd_packages = d.getVar('USERADD_PACKAGES') if not useradd_packages: + # It's valid to inherit useradd and only set USERADD_DEPENDS to + # depend on users/groups created by another recipe, without + # creating any users/groups in this recipe. + if d.getVar('USERADD_DEPENDS'): + return bb.fatal("%s inherits useradd but doesn't set USERADD_PACKAGES" % d.getVar('FILE', False)) for pkg in useradd_packages.split(): From patchwork Mon Apr 20 16:39:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zk47T X-Patchwork-Id: 86500 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DD9DF36C3F for ; Mon, 20 Apr 2026 16:40:50 +0000 (UTC) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23947.1776703187606104937 for ; Mon, 20 Apr 2026 09:39:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=oZG+iT+a; spf=pass (domain: gmail.com, ip: 209.85.214.180, mailfrom: zizuzacker@gmail.com) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2a7a9b8ed69so29016955ad.2 for ; Mon, 20 Apr 2026 09:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776703187; x=1777307987; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QnRgLP3erUwy0o+p96LB15Z7V3pObcK2h1N+/zJrdEo=; b=oZG+iT+aEWb7ShUyWU5ouvRmO20YDWy9E7l5/kNABGiz4kpwo6mPjOhXzuB0aEXGi7 3XC+nLH/x19tpyZU6mVjgyGZOi1krowHf1aYvh+r/cs4xjYWGBTX5W1fDMTOKanNtslp jMRah3QkGTkAoW0FHwUeaRgL8UmE1ATWGI21ZQ9YSzVOe4+wP7/0bOvTjHKUsoq0Cyov K4DXtvRDpWhIhAEUKFAGF1nV9eEFEZtxuXie5/gIxdc3OWp35eOA1JLXdH8eORb5MgZJ 4VAOY97QnOlclZ8cgExoRFXJG9HuxiKHmFNwLbwWS1cbqaVQODTkSXiBDrg1Yz14F7Fh fkYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776703187; x=1777307987; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QnRgLP3erUwy0o+p96LB15Z7V3pObcK2h1N+/zJrdEo=; b=d6vR7nv6zE0OJvp3qkU9/fxiOm8y3m5h4WHXFY7lOqQn+lnVmGY2n6TmxK7kOId3ZN 2BrLlF9i2JKs74Wgl7AgD4wTZqZVjgDkElK0iTzSzA5aOOge+ISknQvO6MJv97j7UAGJ I8HXsjUqy+nJiaS2tE6F3vuRNgNoNs7nptGBhnffKOxOFKUY1PyN6h0M2BGyyhtE/fRA MzOk0Lf8tNptxLRwXUKp7zdAzuWR+lBzcaYDdDlX8D7lz+HX9lnu3/MyMrugG8JJfvpj 8z2Nt9NC7ovZu7eiSL3kdEo4sxW1LCoBXbQZIUvE7zmM391tP3GO0H5xe0z0y3qrtpg9 Ixsw== X-Gm-Message-State: AOJu0YzOrAjQTmVdSmTHpmRqcBxgQN0iyCGZanxd1gfEau18q1hDNB2y ENgjLRyYe1YqfRb188zeGPBAWh0w0GQaSYVRn/k72rmU4sPjbet0XHW1pTSzmA== X-Gm-Gg: AeBDies2q1G7npfsInAdW4U6/aTTFNHD2P07ODskCGzJW0PofH8aWkImDEgwb6LceB1 zY5ZwDQMUrVvTK57MqqzyREJ3lxjveI3o4stSqHwvTYo5iXuYPeB8Z88ecDwnsFxDW+pg4syz4s 7KppoIpFsJ1C2c06OBd9L10SY7DuBL6KdTsWlpMZoF0iAEvs8+wRGa1K+syiBKHQY8g7KxC7aCp o6EVpVSfSJYy12pTfbOQc4UmkRSFfRxE/oJksg/sJpcahnB1hFMiq+k3HW1bDNYfvKpP7ZQ/oNG 2wmnpFYKUKxU9R0+wHwVE+9uboTueBfrnm55djOm9b5v0wjnXuYKeM8/jgmtZq04pSwPqm4ALQH RhL0a0Ux2WlOpGFKNRwisyvRDZ6hRBkElq6MtJYTDNHAEPfXEIpnkwUKEVeFJ+j5PUYpRTC/HWM NSp7VYzxRoOKKdaoy0xCdRY+cPflPnEedxj6wfxL7g6IwMTw== X-Received: by 2002:a17:902:9696:b0:2b0:4fb6:85ce with SMTP id d9443c01a7336-2b5f9f7cec4mr101558845ad.21.1776703186724; Mon, 20 Apr 2026 09:39:46 -0700 (PDT) Received: from localhost.localdomain ([42.118.25.200]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fa9fedf0sm129221105ad.6.2026.04.20.09.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 09:39:46 -0700 (PDT) From: "Zk47T" To: openembedded-core@lists.openembedded.org Cc: Ross.Burton@arm.com Subject: [PATCH v2 2/3] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Date: Mon, 20 Apr 2026 23:39:39 +0700 Message-Id: <20260420163940.182918-3-zizuzacker@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260420163940.182918-1-zizuzacker@gmail.com> References: <20260420163940.182918-1-zizuzacker@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 20 Apr 2026 16:40:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/235578 Add a test recipe that inherits useradd and only sets USERADD_DEPENDS without USERADD_PACKAGES to validate the fix for [YOCTO #15863]. The root bug is that useradd.bbclass unconditionally requires USERADD_PACKAGES to be set, even when a recipe only needs to depend on users/groups created by another recipe via USERADD_DEPENDS. This recipe depends on creategroup1 for user gt1 and group grouptest, but does not create any users/groups itself, exercising the code path fixed in the previous commit. Signed-off-by: Nguyen Minh Tien --- .../selftest-users/usegroup-deponly.bb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb diff --git a/meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb b/meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb new file mode 100644 index 0000000000..e5db7a47ea --- /dev/null +++ b/meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb @@ -0,0 +1,25 @@ +SUMMARY = "Test recipe that only uses USERADD_DEPENDS without USERADD_PARAM" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +LICENSE = "MIT" + +# This recipe depends on the user/group created by creategroup1 +# but does NOT create users or groups itself. +USERADD_DEPENDS = "creategroup1" + +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + +EXCLUDE_FROM_WORLD = "1" + +inherit useradd allarch + +TESTDIR = "${D}${sysconfdir}/deponly" + +do_install() { + install -d ${TESTDIR} + touch ${TESTDIR}/file + chown gt1:grouptest ${TESTDIR}/file +} + +FILES:${PN} = "${sysconfdir}/deponly/*" From patchwork Mon Apr 20 16:39:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zk47T X-Patchwork-Id: 86501 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B9B1F36C5C for ; Mon, 20 Apr 2026 16:41:00 +0000 (UTC) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.24400.1776703188828676149 for ; Mon, 20 Apr 2026 09:39:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=iGc8yLO3; spf=pass (domain: gmail.com, ip: 209.85.214.173, mailfrom: zizuzacker@gmail.com) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2b2503753efso31988675ad.0 for ; Mon, 20 Apr 2026 09:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776703188; x=1777307988; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vk0qKtqQpBNFCl2n1XH/HW29hDYIDRhwJN3jJT1on9Q=; b=iGc8yLO3hgUuBKXZvNJOpZsi+DMGK0/Zf9H2zFn9tRP+/wY0BFWamZYNeM+OkQKXlp RmkkpVH2TTRzZZKPR5DB32heJ5xGQ7LSpMxRGaNUyAjoAnMSbtK3q0FXi4tzWo/0RZOe jEn0XT0y6ydN/xtq1PfzCBYyVbn1P4/7o5BPFnAAX5ER4/SBusxZKWYZq9ljC3X1UPjG VefQp1q22HkydH8TYslPJhkOtjz7oIJedLcifgskgUeGzZ8zJv+2yErLGNKP/cKgeNWd +c8Qh68zpoPOHKyakaD8hJYlMLgS4qo1vTSK30qds98M0fdb8bwAomRdZ5Wiincn1yOq e05w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776703188; x=1777307988; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vk0qKtqQpBNFCl2n1XH/HW29hDYIDRhwJN3jJT1on9Q=; b=D6FiI5KcUwNKoTXTcAiWb2xiCMFfxFBr+UE6Hw/IdommfDt0D2K2tvTuANmAjvYh47 Z3RnxPebm0ixuyeOmT9rSg2FPu50/NRhpXV+cv69beqyUVyIp7KNtEk/BagBIE/FJXjZ Ozt56JyEcsUgD5T1KRNkVeTUQFR/0t2YJSs20K52YOdh7KfdeSyDEYpwawiA0wBjKCHK ukT89Q5FkWwEwwdIJrX3Hw9aMRBaPGjztpdPoPtK2zwKvXuBs9hbh837zYcOSmqfOrRT zEqjjXs6nZpO7xIAVHjlRH+BkNRAO8bHDcu3TBbU2HHC8sEbd01xQUywbipNF5CREm7W 9g4A== X-Gm-Message-State: AOJu0Yxm/J77dOIK/JHeQ4NrtzsWYr2PGJnd9TuW1NuGD/9gdff0BByV Q/Alxc0oeKi50B3PdS7BjMbySLH+3C9Xc49qXbO2Vw4LGoXCOQvsjHIfkgJpzA== X-Gm-Gg: AeBDiesaSi0tJKYRiDj2yoXz4n7Bad+iPnY6EIFvXFplbCc1jXnyG19Su26l+ttdoFU vVXV4jOiBTcn7tx2JnuigzF8VPqx9069ozPzILrAbnd/s4WFJHPtFe8+HENpZn7wDvadA35voGv w3vG7ryt7+sUlLiXBY05PJbTdiYCidqZr/HxRkX+ltDtrhMFDe+bzil+FkhuNn0RfE5UbSIntTw nDJSK5ZAXNu34SQnXt+bbUdPkjABqtfXzKEQHUTOFj1t6qogus8tFjuKoxiJPryb7Yo454I/qOH o2+pRmjLzGt7eIHwwo5N0JFOD207xMxta06M8Z0lMrM/rCuWviw9yuKQrfQ1ITzLCDYVecvlaYr o/mmprZmw09ZZ0It5N0zwASHTkacPscWfkDZNQ7gnd4vTqJdcbkhwNL0Vk8Xsd5O4p9XB6ODiXm qBCJ+kBfdBuTRg4oYTA4Rl0YPXaiRee3eWSSUWL6frjoQClg== X-Received: by 2002:a17:902:aa47:b0:2b2:6b58:9317 with SMTP id d9443c01a7336-2b5f9fd69d0mr116081865ad.39.1776703187984; Mon, 20 Apr 2026 09:39:47 -0700 (PDT) Received: from localhost.localdomain ([42.118.25.200]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5fa9fedf0sm129221105ad.6.2026.04.20.09.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 09:39:47 -0700 (PDT) From: "Zk47T" To: openembedded-core@lists.openembedded.org Cc: Ross.Burton@arm.com Subject: [PATCH v2 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS Date: Mon, 20 Apr 2026 23:39:40 +0700 Message-Id: <20260420163940.182918-4-zizuzacker@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260420163940.182918-1-zizuzacker@gmail.com> References: <20260420163940.182918-1-zizuzacker@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 20 Apr 2026 16:41:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/235579 Add a test case to verify that a recipe inheriting useradd with only USERADD_DEPENDS set (and no USERADD_PACKAGES) parses and builds successfully. This validates the fix in useradd.bbclass for [YOCTO #15863]. Signed-off-by: Nguyen Minh Tien --- meta/lib/oeqa/selftest/cases/usergrouptests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/usergrouptests.py b/meta/lib/oeqa/selftest/cases/usergrouptests.py index 3c59b0f290..69025a59aa 100644 --- a/meta/lib/oeqa/selftest/cases/usergrouptests.py +++ b/meta/lib/oeqa/selftest/cases/usergrouptests.py @@ -55,3 +55,9 @@ class UserGroupTests(OESelftestTestCase): self.write_config("USERADD_GID_TABLES += \"files/static-group\"") self.logger.info("Rebuild with other staticids") self.assertTrue(bitbake(' core-image-minimal')) + + def test_useradd_depends_only(self): + # Test that a recipe inheriting useradd with only USERADD_DEPENDS + # (and no USERADD_PACKAGES) parses and builds successfully. [YOCTO #15863] + self.logger.info("Building usegroup-deponly to test USERADD_DEPENDS only") + self.assertTrue(bitbake(' usegroup-deponly'))