From patchwork Thu Apr 23 10:04:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zk47T X-Patchwork-Id: 86702 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 B76D0F99372 for ; Thu, 23 Apr 2026 11:15:13 +0000 (UTC) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.16102.1776938652111028721 for ; Thu, 23 Apr 2026 03:04:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=aPBASuZX; spf=pass (domain: gmail.com, ip: 209.85.210.170, mailfrom: zizuzacker@gmail.com) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-827270d50d4so6026356b3a.3 for ; Thu, 23 Apr 2026 03:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776938651; x=1777543451; 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=aPBASuZXt4UdreHgFjtHVVYtszPAaPF4aqs3KH3MYLCO7yTbg740jbmENHORMJeJTa aeebzrRikJ0Jg4bOeNXS9kNKl6ObSMSPUWElmBJjyw15NY9jxeHZvu+tx7unfO9fPS1P WUauJuE63CanCNnok55zkOw1nVIqSt27omTHirsJVwLZUi0gbJDL4OaeHWZ1gVR7sz4+ eZZMqZyQkY+isX8MA1WkjgFsz2UrfI4dPCQCiCm+eIlB3Sv5LdN+sCvA9mHNcWVqjLZy IrHnKmvuWUkLr9JXq40N68HogDPTDBVeya69vuC0K7TK18VVM81LYANFpXoKkwBAly/H Fmyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776938651; x=1777543451; 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=HdrRQDquRpwdjh22D5AkYN4rp350necUTKYHmUdzeGF39B3y+cCd5q2sqEDIidiI9U bS5maUktvmtnHBY6uJSAdjl1mcBQ9Ly4t6d5I33vAWOyYZ+ZwdyIUZnYQoalkoQawxP8 mSBvw9l3vOmlJeyI2zgldeLR5SjAl7rUoxD2zdY6TOiPKUNcUKYE6Zpo/lXrTF1+5dTX vbWH8qaz8yKXWPnhAyH2smmiVBlzw+o2EkTvElI3fBZOgI02x6/eeingVMMZw8wfPupA BXzeA87y1HGdYuTZpSkkysaG2kdDzIXw4q8AE1S/iLaiOZRVLAsDv/3cmUdjAmHfT3gJ 1Enw== X-Gm-Message-State: AOJu0Yw2voHfEEJqbEzyDET7IG33rMS9P/DqpMpFBLPGCrCUaGEBnku2 f7Ul3WlJqTo9c2kwvOzTA1oQ9uZtDo69USmb5K2IRwWHWcduWpQicqfqFkHVaydP X-Gm-Gg: AeBDieuHZ3sCkCHintoPK5qdAVev70gKxZ8SpCObbPehGh6vwx/hFaVXaT/lGIdEmK9 0KFlLi7BPPST/qqJE1TvtOBcGwvjWLkKBIcmGIjGtJYMuLBm0oMEw0CUY4czhbYhha+gARQLXq9 KntlpCY/sSxa/UYzOPnDALujKRsVUBe+0sZKiA9D/AOAZZFLUvKABoWWQ2lZU7P56mPJQux55sz TnnACEI2ohn85xZfiFnZV6anaLAw5uWV0hIRQ1GdGwPBkWDpMfv3Nm/wt/dIamCMZaY73TSkPaT GwciWG17V30Ei5DVxgQfouF+TZf2UmJQwNFve62ZufOoisJ1wHx59y7heerV4/QtJxjLxhAQxPk dhmZEsGB0XrBTBby5ZeQaF4D5jxiaFV5RIh5zOU4LBiTJm/+6mZlIiyla9Iz/mKgHIi26A50SPK AxOJaON7srj8iHs+i4yv6k/R1c X-Received: by 2002:a05:6a00:3397:b0:82f:50cd:e586 with SMTP id d2e1a72fcca58-82f8c821430mr29516939b3a.13.1776938651283; Thu, 23 Apr 2026 03:04:11 -0700 (PDT) Received: from ltu.. ([42.118.25.200]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8e9e0f40sm21540801b3a.17.2026.04.23.03.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 03:04:10 -0700 (PDT) From: "Zk47T" To: openembedded-core@lists.openembedded.org Cc: ross.burton@arm.com, mathieu.dubois-briand@bootlin.com, Nguyen Minh Tien Subject: [PATCH v3 1/3] useradd.bbclass: allow inheriting with only USERADD_DEPENDS set Date: Thu, 23 Apr 2026 17:04:03 +0700 Message-Id: <20260423100405.25255-2-zizuzacker@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260423100405.25255-1-zizuzacker@gmail.com> References: <20260423100405.25255-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 ; Thu, 23 Apr 2026 11:15:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/235756 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 Thu Apr 23 10:04:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zk47T X-Patchwork-Id: 86704 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 B8F86F99373 for ; Thu, 23 Apr 2026 11:15:23 +0000 (UTC) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.15999.1776938654431058054 for ; Thu, 23 Apr 2026 03:04:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=eLrbMDwL; spf=pass (domain: gmail.com, ip: 209.85.210.171, mailfrom: zizuzacker@gmail.com) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-82fa8d6425bso2226932b3a.0 for ; Thu, 23 Apr 2026 03:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776938654; x=1777543454; 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=j3sGudDubg+VJrcwavrV8MC1YA4i+metK1Kym5QjTC0=; b=eLrbMDwLCvV80LslAf0ELFZoLGKpwKVaws+73dkpATESaQ3xmHzt08ZydcRf0HA05O cvBukByTBNkIUFsge8f5AA+JfIPCg/sD6Qy6xm/wdpKHXW3TLu5jLV3rwtC/uzIAiJAj /gCxFUqf584ad6WbRTqhZCerXeAyWDDqsOY8hry9TrRg/PDjm9IEU6xfuAnDmBJMc6Zv 5W5QKphG+B/FRaktQ4P2uCGjdCnS0Cr1JdKWP8hngr+TEdQx+rSrN8YgbibPhiRJEgSs qUiGDhZP8eplsuHJi1w9mfG33kEiq364FwOckWbCIZ7Zci30TtWkVL0CS0sJMP9B9/MF AdMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776938654; x=1777543454; 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=j3sGudDubg+VJrcwavrV8MC1YA4i+metK1Kym5QjTC0=; b=dJbpMtGCGsK+vaxJdbvgpdGSRx2sW55xmm0jRKv00X4u+YgrVIBwm6bz9Rti9a9mt6 C2Y82y3Y95rmfNLnRC5Hr7pdoxjnYHDccqi0rWtU35quS8aPODFv72YfKNalyLMT0kN3 aye+a/WBJMKbd3Dwr3YNyhopovtxZcKUpNeGi5XaMfmKW3OXwSBAJtDbW/A2NLudgNBG wYXf4Q655jmICPJfaRcjoK5hN1Wt4/uKS81qGm81RLc+a+v3kXogHxPovWRibPLHMViB 7M2oGpAVodW2lZqRx0w5/9ya6jpqyrkbpipdGMb3Vhk+guBG6DqukXHuWSri7A0w1nLk PFJA== X-Gm-Message-State: AOJu0YyG8TmRFpx64RYYAOZKc+3waZl5MbfFuHqez0HRkvRx4gmsDcHd DcKyJbKh/EJq37LwP30BszuR9Hz8Z+Ct1EQiL+cVHjO44lTGudEpYsjit4TlugGX X-Gm-Gg: AeBDievqx740W/KueJqTBlEUTiCW8tXsCiJIuKGgwA3ci2ceIIfnBSMT64TySMWm4Ty 0j3MhUPpPm3NUMWs0dlVJqoxf8oC7NJmw9eqcQgHnzIMeRTlbgL/4ryP7XyuBfvpHr6Sixqtcw3 laE8E0WWqpxqcU1O/tgyt+J4R8a/n8B9ngCkYhCDaMG0sTwAke43FuFzkcHacwb7jj/OvtAYZvj y1DUJDYGj0R78V49cXVbhiN1gr3AZAYtw4cWgMttTZTrr2HVDMuDVFikqvzceoUyBA1jwdv+B5Y vgmnU4snizvm2BXRdHVD02ihizGtQ5hq/AzJ1rojWCBlReNV25USTFTX8VMjzgIDvZXM7OEKXDS t0K3Stvlh/ZQ5wXblLMdfowUHeLjuYfzmFRoTkeYqpJpEx/3TRu/j6qqwBKdJDOAgtr/4GpFWaq f1MP+2HVwCsDNiCv5MNQIq2Cfk X-Received: by 2002:a05:6a00:6c8e:b0:82f:7182:693d with SMTP id d2e1a72fcca58-82f8c8fba34mr26402455b3a.30.1776938653475; Thu, 23 Apr 2026 03:04:13 -0700 (PDT) Received: from ltu.. ([42.118.25.200]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8e9e0f40sm21540801b3a.17.2026.04.23.03.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 03:04:13 -0700 (PDT) From: "Zk47T" To: openembedded-core@lists.openembedded.org Cc: ross.burton@arm.com, mathieu.dubois-briand@bootlin.com, Nguyen Minh Tien Subject: [PATCH v3 2/3] meta-selftest: add usegroup-deponly recipe to test USERADD_DEPENDS only Date: Thu, 23 Apr 2026 17:04:04 +0700 Message-Id: <20260423100405.25255-3-zizuzacker@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260423100405.25255-1-zizuzacker@gmail.com> References: <20260423100405.25255-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 ; Thu, 23 Apr 2026 11:15:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/235757 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 | 22 +++++++++++++++++++ 1 file changed, 22 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..22288abb61 --- /dev/null +++ b/meta-selftest/recipes-test/selftest-users/usegroup-deponly.bb @@ -0,0 +1,22 @@ +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" + +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 Thu Apr 23 10:04:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zk47T X-Patchwork-Id: 86703 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 C5507F99375 for ; Thu, 23 Apr 2026 11:15:23 +0000 (UTC) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.16105.1776938656654974369 for ; Thu, 23 Apr 2026 03:04:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=NlhchLgY; spf=pass (domain: gmail.com, ip: 209.85.210.176, mailfrom: zizuzacker@gmail.com) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-82f351ca23cso3306138b3a.2 for ; Thu, 23 Apr 2026 03:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776938656; x=1777543456; 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=NlhchLgYNeg6uIJCf/b/zA3DJ5/pymq86D4NA8XJkQgUDQJPu4xCRbHXrlsfw76yq9 txd6YuzQ+tU/lLUO1yiGwkd1R/PKgapk915AjKb7U4XtOKuYxeOlDVBvxUu+IeUhMZWb AE5p5lS8F5/Gn9nDuIHeUW3cFzmLqzI3mMLdRaIGIaP+ehHe6907mIXiOX96QdVcnxSA vOcOvSoDC3YhUuxAShuoMAsxnKYPhN3BWr8cr30M/+GlfxqNBe975yePHp5wX2yvAv+S mIP2ibiXgNX59bxI81saCtEhOukfuLuCxbhIZ/k7VoAG3EfOhvYZM492+y0dvlxYSkpJ onGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776938656; x=1777543456; 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=rWpClNVKyJlak4kd/hERaq6ryZQEm1x3Mld5a+iT65JWAY6GqKP2CTb8edugsj6T9U lRP9VP6WhrerLqfHt0RVS5nav3zSMy4SJekNKIMjcI2HeU6ZPmeMkxhEYR1gZMDwoWWA olJMCz0PZ2+F9iayuotyGenEiY2REq9/SDgiAvPWovYTwAUtoWd3hjRZ0RYn8DBWL2dr q2KclRALZ9XVO5c0pthjoNYfw1cKO8NFhdRCQkB0ybkxAQ8jRUcsLovSQGzIyrvE49V4 2itHGlK216I8QQsogoNaFR7bYM/zDzt+lvpvUYAJACLqdIwZ39YcsuZJBaE4vOyUbFVR mzNQ== X-Gm-Message-State: AOJu0Yx0tFRUQhOqkTqs0NATY1QdfCmEhWt+6KvNMNX1k15h5HMZU7Ru sm2rFXF3OpAvpWtMk3tyYvg0F9loXQYZ8uE/8lIDKG7oxGKbyFXXfjzrhbritdno X-Gm-Gg: AeBDietRCCid4xg0moT45pg+z5HExWMqbLVqo3KrbNjkCA2i4wD8aLwa41xJVfc7MtE cbefz9jeRSdwY5WMIeymVvEkZDKSDrAwrcquubN1NLC0z5Hzr6k014jGFd+l7mFh6UApbm6sdEy GvJ3ixdcgP/CPa9vqO+oJ+8aFtofxBpDcDJRHS7rXnhGbut0oLasDpL1SkIPnOVRVdyQs0ESDqW OHXePPQLLrc6EGetr9ap9ce4Z8yRjN4hBqqhaHErJSrEMfcs4aqmMpdWILCOxlbTlkzJ5ZkcuY1 LdrlgdFbZuMMA4jaG/iiJEf3wfl8DejOXfWC6fytTmulE0trUDn3QvEo5VuGl54v8TVyGYCcl6W ij1/vUe2pJvTEZ/d1xB5BDqoBORJoh98DLLtLOGU1MZsOtlaqLxK0kquGqiOxIQ90PDMf0D6eeL 7wPS2cO00k47lFYf76S3TOG26C X-Received: by 2002:a05:6a00:a241:b0:82f:72e6:ed4 with SMTP id d2e1a72fcca58-82f8c3f017cmr26450819b3a.0.1776938655690; Thu, 23 Apr 2026 03:04:15 -0700 (PDT) Received: from ltu.. ([42.118.25.200]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8e9e0f40sm21540801b3a.17.2026.04.23.03.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 03:04:15 -0700 (PDT) From: "Zk47T" To: openembedded-core@lists.openembedded.org Cc: ross.burton@arm.com, mathieu.dubois-briand@bootlin.com, Nguyen Minh Tien Subject: [PATCH v3 3/3] oe-selftest: add test for useradd with only USERADD_DEPENDS Date: Thu, 23 Apr 2026 17:04:05 +0700 Message-Id: <20260423100405.25255-4-zizuzacker@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260423100405.25255-1-zizuzacker@gmail.com> References: <20260423100405.25255-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 ; Thu, 23 Apr 2026 11:15:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/235758 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'))