From patchwork Thu Feb 23 23:29:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 388 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 3FBFEC64ED6 for ; Thu, 23 Feb 2023 23:31:25 +0000 (UTC) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web10.5119.1677195083288952247 for ; Thu, 23 Feb 2023 15:31:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile-fr.20210112.gappssmtp.com header.s=20210112 header.b=HkfCoTuf; spf=pass (domain: smile.fr, ip: 209.85.221.54, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f54.google.com with SMTP id bo30so11702428wrb.0 for ; Thu, 23 Feb 2023 15:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PWayus1P+vcfQf7SJRad7GoSbuNtTAppNdEcARoTdYM=; b=HkfCoTufZ8DnQKPx88gIANn9Y0q2wBMzQdJ9HFIAbvnpOYmNl8srP+DAIVA7PXd6QD IGpaL/P49URGxv76WkMPs7ZWg2OMfbSHYWvNdrOTUR0ESwa7fkbGTPglIAAgCF709hGG GznChYki8wli3S95MZrvaQow3w4X/5iL0O4F6REJMR6M0aiOhLOkPVBhJ8T70Kq/TRe1 cwkdRdgpGzbiQoY6iGl1NZf5LyYtwuJTEpSn5jwvAbwU34+dvXJ2qAJfJ0Msww9MBg84 rKtesLks6h8iV/aTXn7wt/i6rdfpnVLtMDgvv5Ypk4A/K3K7IkED4UWxEXhYQ/SZn+7N cgGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PWayus1P+vcfQf7SJRad7GoSbuNtTAppNdEcARoTdYM=; b=fOew5jgU3TipqnbfYjCZECPYIsTgsc+eKKLQKQEu4qdw3wnzOMNwHyQfyppxvQV/WJ X9K0bMEefuJyCmCOzvg012l6r4bxuHwEj8wnpGSjhGiSBYTZX011cWZyHFfTLkfpo3S2 OJah0wZxiEjztA+CAxgt4Tb9nlFzM+wPVdvYekLhMbPPWnBj6NztxBZGmp2CLLhqPGiv +hRfKs+tVNugsLG0lUY48bEPWdphuaEbi+HyAOOIdvnB7r9YIUwxdwO5ZTRBS2JzGpT1 vpBvdHa8hYPFIT0g6pvdVhmohhefi1oXBvhOiK1epDjvgeOkj6OEqyy2xuowFl/xe6Z6 Av1w== X-Gm-Message-State: AO0yUKWQjxb4oSOjGZDEecX9SrxOdzMtK+lQfFKIiaoXfvzuzlRB9uqJ s2s2OkNNjct23GwTPMv73UJaM6d6driZbOhf X-Google-Smtp-Source: AK7set9puE6+75T5jWNa7QTTkARAnhQVxCTxJrcMHDNTLrEtIJgi/NmUDEaK4oCiLiCC2tOT6J6Inw== X-Received: by 2002:adf:ff8b:0:b0:2c7:a93:f892 with SMTP id j11-20020adfff8b000000b002c70a93f892mr6613779wrr.55.1677195081484; Thu, 23 Feb 2023 15:31:21 -0800 (PST) Received: from P-ASN-ECS-830T8C3.mpl.intranet (89-159-1-53.rev.numericable.fr. [89.159.1.53]) by smtp.gmail.com with ESMTPSA id i18-20020adfe492000000b002c56287bd2csm11899277wrm.114.2023.02.23.15.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 15:31:21 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Cc: richard.purdie@linuxfoundation.org, Yoann Congal , Fawzi KHABER Subject: [RFC PATCH 0/2] Handling of ${PN}-dev RRECOMMENDS non-existent ${PN} Date: Fri, 24 Feb 2023 00:29:39 +0100 Message-Id: <20230223232939.3932270-1-yoann.congal@smile.fr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 23 Feb 2023 23:31:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177640 This series is a work in progress on 2 related bugs : * [YOCTO #6839] Handle dev package with no main package more gracefully * [YOCTO #8222] Elide dependency from -dev package on main package if there are no shared libraries in it An empty package ${PN} is not generated by default. This has been a problem most frequently seen because ${PN}-dev depends on it. This case has been handled by : * Using ALLOW_EMPTY:${PN} = "1" : forcing ${PN} to be created even empty. * DEV_PKG_DEPENDENCY = "" : Implicitly removing the dependency on ${PN} * And finally and globally making the ${PN}-dev -> ${PN} relation a RRECOMMENDS. 2 patches : * insane: Add QA check for RRECOMMENDS on non-existent packages * meta/recipes: Remove empty ${PN}/DEV_PKG_DEPENDENCY workaround First one create a QA check to try to detect the problematic situation. The second removes workarounds setup to hide to problematic case. Together they will prominently show where the problematic cases are. Next step will be to find a generic way to fix the case. Fawzi KHABER (2): insane: Add QA check for RRECOMMENDS on non-existent packages meta/recipes: Remove empty ${PN}/DEV_PKG_DEPENDENCY workarounds meta/classes-global/insane.bbclass | 11 +++++++++++ meta/recipes-connectivity/bind/bind_9.18.11.bb | 1 - meta/recipes-core/musl/bsd-headers.bb | 1 - meta/recipes-core/musl/libssp-nonshared.bb | 1 - meta/recipes-core/newlib/newlib_git.bb | 3 --- meta/recipes-devtools/gcc/libgcc-common.inc | 4 ---- meta/recipes-devtools/python/python3_3.11.2.bb | 1 - meta/recipes-graphics/mesa/libglu_9.0.2.bb | 3 --- meta/recipes-graphics/mesa/mesa.inc | 3 --- .../recipes-graphics/xorg-lib/libpthread-stubs_0.4.bb | 1 - meta/recipes-graphics/xorg-lib/xtrans_1.4.0.bb | 1 - meta/recipes-graphics/xorg-proto/xcb-proto_1.15.2.bb | 1 - meta/recipes-graphics/xorg-proto/xorgproto_2022.2.bb | 3 +-- meta/recipes-graphics/xorg-util/util-macros_1.20.0.bb | 3 +-- .../linux-libc-headers/linux-libc-headers.inc | 1 - .../make-mod-scripts/make-mod-scripts_1.0.bb | 1 - .../argp-standalone/argp-standalone_1.4.1.bb | 1 - 17 files changed, 13 insertions(+), 27 deletions(-)