From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7281163473512300544 X-Received: by 2002:adf:f552:0:b0:319:8dcf:5c10 with SMTP id j18-20020adff552000000b003198dcf5c10mr4056669wrp.6.1695277978460; Wed, 20 Sep 2023 23:32:58 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:3c81:b0:405:8e:cdfc with SMTP id bg1-20020a05600c3c8100b00405008ecdfcls179069wmb.1.-pod-prod-09-eu; Wed, 20 Sep 2023 23:32:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbaLnOBM679dvhO/SKBQgDJGQ46q3AFmuoNq5Ui8dXJSzEeURvy91JAerdSAHj0l/xpo1O X-Received: by 2002:a05:600c:214c:b0:3f9:255e:ee3b with SMTP id v12-20020a05600c214c00b003f9255eee3bmr4147568wml.30.1695277976841; Wed, 20 Sep 2023 23:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695277976; cv=none; d=google.com; s=arc-20160816; b=IYw15KMWVGVtgqPwGLbhrmjyym/9iXJdehi+sXTltGLS5EP36KbhXfNk6uYkoqQ8hY TMbRb+cME+4FPoiTkkIQg9haiNDFsgavhvwi8GJOjNdne6mHJLCAdEYlnmw4DRYVSRNX i0sfr00PlWyUyDTT9nz3i6Jw6k/GJsM7AnBFY1/1kC5jCn6kRxsE31wmnS8gokl/LEvM bBaXRI51hXaYgDkaws1wEYVLRBKS0XaFjDP9dgjEmptOYORm52lK+xGXb8Qxs8M014+l AAWr+Ei+Uuy6i7ZrjZ+cYDyagLKyamTUSAlBxKZmybVKKlwI2PnckIoZRV3sPQp6SU9V P/1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=uqDeTJMv3+t59a1+gicawII58L7c5jXpyXFaVOSH5Hg=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=EDkVfwbsHz6ldSiXWdz/ZqXc52r4sXxya3/zSAhB2+Iry0vhOxNQKQ793WvoKpfXzF Jph4jdZ5xv6cbnIvbsbWA8OlOIAkQRtCrv8n/m+icX5oa8OH2tVkL7Buj+lkkxz6mGl9 CLRBiP1HKxzQ4+xV0BsBxyY72x1/qRDDp+vVSWjJcl1ZOBsrC1ucLrYIdizILSmRPy/l Ej7h2KSwkx8t4J7lZyUHQ6+AJTueRMpwK4czbirdLkK37/otkEJqFeL9DizBege3utXE 33VwdRdm3dNoUtRBoNjQ6Xrcrdp1KeilWj1d/hKsLuKel5LbWuLQB77JRuDSnoCGTQFk dv3g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id o27-20020a05600c511b00b003fc39e1582fsi315644wms.1.2023.09.20.23.32.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Sep 2023 23:32:56 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from localhost.localdomain (r154-240-38-77-broadband.btv.lv [77.38.240.154] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 38L6Wt0g025667 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Sep 2023 08:32:56 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH 0/3] Introduce Debian dependencies and provides helper Date: Thu, 21 Sep 2023 09:32:44 +0300 Message-Id: <20230921063247.3114251-1-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: rVdblLYfyO15 Package information from debian/control file is not available when bitbake prepares dependency tree on beginning of the build operation. So developers should manually set at least DEPENDS and PROVIDES values. This helper script can do the following: 1. Scan for all recipes and add missed PROVIDES values. 2. Scan for target dependencies and add missed DEPENDS values. Missed values are added as bbappend files near the original recipes. Usage: $ ../scripts/explore.py [ all | deps | provides ] mc:qemuamd64-bullseye:isar-image-base It supposed to be executed inside build dir and requires python3-apt package to be installed. Running PROVIDES scanning also requires COMPATIBLE_MACHINE to be used in machine-specific recipes, so there will be no way to build them for incompatible target. This patchset should be placed on top of: [PATCH 0/5] Separate prebuild activities Anton Mikanovich (3): conf: Enable bbappends isar: Add dependency explorer isar: Add provides explorer meta-isar/conf/layer.conf | 2 +- meta-test/conf/layer.conf | 2 +- meta/conf/layer.conf | 2 +- scripts/explore.py | 264 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 267 insertions(+), 3 deletions(-) create mode 100755 scripts/explore.py -- 2.34.1