From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7111687409920638976 X-Received: by 2002:ac5:cb6f:0:b0:36c:424b:6d79 with SMTP id l15-20020ac5cb6f000000b0036c424b6d79mr2999941vkn.14.1655818757465; Tue, 21 Jun 2022 06:39:17 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a67:844:0:b0:34b:c6a1:884d with SMTP id 65-20020a670844000000b0034bc6a1884dls2529898vsi.4.gmail; Tue, 21 Jun 2022 06:39:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vHPOiTO6DDRW271/hDRR5ZBjd3uP4NrSkEKn6fahKx6eHYx2LnRibMrjVuxOcIdydpqa+R X-Received: by 2002:a67:f95a:0:b0:354:43c5:822d with SMTP id u26-20020a67f95a000000b0035443c5822dmr2571316vsq.67.1655818756843; Tue, 21 Jun 2022 06:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655818756; cv=none; d=google.com; s=arc-20160816; b=aINZNJN+sH64R1HlUe1Sehhwql7TaUbmqkY+6nceovbvdBdTw08r9y/IHe4Kobe5TZ RAXVbIVyYbKjNArfgz57LMZp5bQAuFjujaiBvfY1R9BAQnZmCdGK8dyMcWN8pwnqWTqZ tq0WXnMPbMPBJHAWA+VxjAruVUsjErtyqQTf4JpCzev6RSG41PT1nA4PvbqpMBw41tcY V7CqZhgjD7sXNfJQ6e/P3bT6bJg3KkICrgieMC2bmwbcpEZQVu2HApZatHVPbgzUCMrP ZdaJ641L+5U6JG30yn+aE/gpeJOSWpIjdkrARr05XfaL7IW9BpfwCx6jdCkgNswDF0Gw NLwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=JSKvnjVJM6b0uvpD5TemmSaV5cniLCHCvkQh8V40io4=; b=NkOqbHT/CekUmQLek/AFmf24RO1Noy1QZGYl3SNo0Ciw0zh+j5TJV2HMNh3jGnb0Wz GDUt5zTe/0kpydqj0HOUEkW5/W5d8aDrtpGj0mnB9PMM2fCugVJELXiOFSQ/c9WmHFF9 Ni0tGOIFfmf9/zZDIDLAL5qE7mb6wXd0GlIw4treWuF4Iq81RdsT3hA0xDzl5kSzwnM1 nWss4sQHG4pvB87oJs4zSvh/dOmIEx+KK9Karq4UbEFN+2ppsN2PEYCwC2miCD35OoQq O8fxgU++VTKwyWkrBf/A9zW3DJ5hL44dqrBjQFIPPNn8ltfCZCgOPw81t6BVVoWA9ztw vpNA== 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 b12-20020a05610222ec00b0032cddd78670si646794vsh.2.2022.06.21.06.39.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Jun 2022 06:39:16 -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 (mm-222-67-120-178.brest.dynamic.pppoe.byfly.by [178.120.67.222]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 25LDd50c031134 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jun 2022 15:39:06 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: adriaan.schmidt@siemens.com, Anton Mikanovich Subject: [PATCH v1 00/11] Migrate to Bitbake 2.0 Date: Tue, 21 Jun 2022 16:38:45 +0300 Message-Id: <20220621133856.4673-1-amikan@ilbers.de> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-0.5 required=5.0 tests=ALL_TRUSTED,URI_NOVOWEL 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: 528pv/eLBb6n This is the first version of the patchset to migrate Isar on Bitbake 2.0 branch. It is still non-buildable because of 'metadata is not deterministic' issue on all the tasks caused by BB_CURRENTTASK value changed from '' to 'taskname'. scripts/contrib/convert-overrides.py is the script for overrides update and it needs some testing on downstream layers. Usage: $ ./scripts/contrib/convert-overrides.py meta-customlayer Anton Mikanovich (11): meta: change deprecated parse calls scripts/contrib: Add override conversion script scripts/contrib: configure override conversion script dpkg-base: fix conflicting variable names meta-isar: set default branch names meta: remove non recommended syntax bitbake: Update to Bitbake 2.0.1 doc: require zstd tool meta: update bitbake variables meta: mark network access required tasks meta: update overrides syntax bitbake/README | 21 +- bitbake/bin/bitbake | 4 +- bitbake/bin/bitbake-diffsigs | 5 +- bitbake/bin/bitbake-getvar | 50 ++ bitbake/bin/bitbake-hashclient | 2 + bitbake/bin/bitbake-hashserv | 2 + bitbake/bin/bitbake-layers | 2 + bitbake/bin/bitbake-prserv | 6 +- bitbake/bin/bitbake-selftest | 3 + bitbake/bin/bitbake-server | 3 +- bitbake/bin/bitbake-worker | 21 +- bitbake/bin/git-make-shallow | 2 + bitbake/bin/toaster | 6 +- bitbake/bin/toaster-eventreplay | 2 + bitbake/conf/bitbake.conf | 6 +- bitbake/contrib/hashserv/Dockerfile | 6 +- bitbake/contrib/prserv/Dockerfile | 62 ++ bitbake/contrib/vim/plugin/newbbappend.vim | 2 +- bitbake/contrib/vim/syntax/bitbake.vim | 11 +- bitbake/doc/Makefile | 2 +- bitbake/doc/README | 6 +- .../bitbake-user-manual-execution.rst | 112 ++-- .../bitbake-user-manual-fetching.rst | 151 +++-- .../bitbake-user-manual-hello.rst | 60 +- .../bitbake-user-manual-intro.rst | 64 +- .../bitbake-user-manual-metadata.rst | 446 +++++++------- .../bitbake-user-manual-ref-variables.rst | 583 ++++++++++-------- bitbake/doc/releases.rst | 84 ++- bitbake/lib/bb/__init__.py | 19 +- bitbake/lib/bb/asyncrpc/__init__.py | 31 + bitbake/lib/bb/asyncrpc/client.py | 172 ++++++ bitbake/lib/bb/asyncrpc/serv.py | 286 +++++++++ bitbake/lib/bb/build.py | 90 +-- bitbake/lib/bb/cache.py | 35 +- bitbake/lib/bb/checksum.py | 22 +- bitbake/lib/bb/codeparser.py | 20 +- bitbake/lib/bb/command.py | 36 +- bitbake/lib/bb/compress/_pipecompress.py | 194 ++++++ bitbake/lib/bb/compress/lz4.py | 17 + bitbake/lib/bb/compress/zstd.py | 28 + bitbake/lib/bb/cooker.py | 293 +++++---- bitbake/lib/bb/cookerdata.py | 47 +- bitbake/lib/bb/daemonize.py | 42 +- bitbake/lib/bb/data.py | 57 +- bitbake/lib/bb/data_smart.py | 213 ++++--- bitbake/lib/bb/event.py | 6 +- bitbake/lib/bb/fetch2/README | 57 ++ bitbake/lib/bb/fetch2/__init__.py | 136 ++-- bitbake/lib/bb/fetch2/crate.py | 136 ++++ bitbake/lib/bb/fetch2/git.py | 54 +- bitbake/lib/bb/fetch2/gitsm.py | 20 +- bitbake/lib/bb/fetch2/npm.py | 50 +- bitbake/lib/bb/fetch2/npmsw.py | 33 +- bitbake/lib/bb/fetch2/osc.py | 2 +- bitbake/lib/bb/fetch2/s3.py | 41 +- bitbake/lib/bb/fetch2/ssh.py | 49 +- bitbake/lib/bb/fetch2/svn.py | 10 +- bitbake/lib/bb/fetch2/wget.py | 161 +++-- bitbake/lib/bb/main.py | 9 +- bitbake/lib/bb/monitordisk.py | 17 +- bitbake/lib/bb/msg.py | 32 +- bitbake/lib/bb/parse/__init__.py | 2 + bitbake/lib/bb/parse/ast.py | 14 +- bitbake/lib/bb/parse/parse_py/BBHandler.py | 3 - bitbake/lib/bb/parse/parse_py/ConfHandler.py | 5 +- bitbake/lib/bb/persist_data.py | 54 +- bitbake/lib/bb/process.py | 2 +- bitbake/lib/bb/progress.py | 9 +- bitbake/lib/bb/providers.py | 14 +- bitbake/lib/bb/runqueue.py | 179 +++--- bitbake/lib/bb/server/process.py | 44 +- bitbake/lib/bb/server/xmlrpcserver.py | 1 + bitbake/lib/bb/siggen.py | 182 ++++-- bitbake/lib/bb/taskdata.py | 14 +- bitbake/lib/bb/tests/codeparser.py | 28 +- bitbake/lib/bb/tests/compression.py | 98 +++ bitbake/lib/bb/tests/data.py | 95 +-- .../debian/pool/main/m/minicom/index.html | 59 ++ bitbake/lib/bb/tests/fetch.py | 529 ++++++++++------ bitbake/lib/bb/tests/parse.py | 20 +- .../bb/tests/runqueue-tests/conf/bitbake.conf | 2 +- bitbake/lib/bb/tests/runqueue.py | 52 +- bitbake/lib/bb/tests/utils.py | 20 +- bitbake/lib/bb/tinfoil.py | 12 +- bitbake/lib/bb/ui/buildinfohelper.py | 83 +-- bitbake/lib/bb/ui/knotty.py | 100 +-- bitbake/lib/bb/ui/taskexp.py | 5 + bitbake/lib/bb/ui/uievent.py | 6 +- bitbake/lib/bb/ui/uihelper.py | 4 +- bitbake/lib/bb/utils.py | 118 +++- bitbake/lib/bblayers/action.py | 2 +- bitbake/lib/bblayers/layerindex.py | 16 +- bitbake/lib/bblayers/query.py | 8 +- bitbake/lib/codegen.py | 6 + bitbake/lib/hashserv/__init__.py | 66 +- bitbake/lib/hashserv/client.py | 152 +---- bitbake/lib/hashserv/server.py | 549 ++++++++--------- bitbake/lib/hashserv/tests.py | 161 ++++- bitbake/lib/layerindexlib/__init__.py | 9 +- bitbake/lib/layerindexlib/cooker.py | 2 +- bitbake/lib/layerindexlib/restapi.py | 4 +- bitbake/lib/layerindexlib/tests/restapi.py | 2 +- bitbake/lib/ply/yacc.py | 7 +- bitbake/lib/prserv/client.py | 48 ++ bitbake/lib/prserv/db.py | 65 +- bitbake/lib/prserv/serv.py | 540 ++++++---------- bitbake/lib/pyinotify.py | 44 +- .../bldcontrol/localhostbecontroller.py | 4 +- .../management/commands/runbuilds.py | 83 ++- .../migrations/0008_models_bigautofield.py | 48 ++ .../lib/toaster/orm/fixtures/gen_fixtures.py | 445 +++++++++++++ bitbake/lib/toaster/orm/fixtures/oe-core.xml | 48 +- bitbake/lib/toaster/orm/fixtures/poky.xml | 118 ++-- bitbake/lib/toaster/orm/fixtures/settings.xml | 2 +- .../orm/management/commands/lsupdates.py | 14 +- .../migrations/0020_models_bigautofield.py | 173 ++++++ bitbake/lib/toaster/orm/models.py | 5 +- .../toaster/toastergui/templates/base.html | 2 +- .../toastergui/templates/configvars.html | 2 +- .../toaster/toastergui/templates/landing.html | 6 +- .../templates/landing_not_managed.html | 34 - .../toastergui/templates/layerdetails.html | 2 +- .../templates/package_detail_base.html | 2 +- .../toaster/toastergui/templates/project.html | 2 +- .../templates/project_specific.html | 2 +- .../toastergui/templates/projectconf.html | 34 +- bitbake/lib/toaster/toastergui/views.py | 22 +- .../management/commands/buildimport.py | 2 +- bitbake/lib/toaster/toastermain/settings.py | 3 + bitbake/toaster-requirements.txt | 2 +- doc/user_manual.md | 1 + meta-isar/classes/rpi-sdimg.bbclass | 4 +- meta-isar/classes/ubi-ubifs-img.bbclass | 6 +- meta-isar/conf/distro/raspios-bullseye.conf | 8 +- meta-isar/conf/distro/ubuntu-focal.conf | 4 +- meta-isar/conf/local.conf.sample | 8 +- meta-isar/conf/machine/de0-nano-soc.conf | 4 +- meta-isar/conf/machine/hikey.conf | 2 +- meta-isar/conf/machine/phyboard-mira.conf | 2 +- meta-isar/conf/machine/qemuamd64.conf | 6 +- meta-isar/conf/machine/qemuarm64.conf | 2 +- meta-isar/conf/machine/qemuriscv64.conf | 2 +- meta-isar/conf/machine/stm32mp15x.conf | 4 +- .../conf/multiconfig/qemuamd64-bullseye.conf | 2 +- meta-isar/recipes-app/cowsay/cowsay_git.bb | 2 +- .../recipes-app/hello-isar/hello-isar.bb | 4 +- meta-isar/recipes-app/libhello/libhello.bb | 4 +- .../bootconfig-rpi/bootconfig-rpi.bb | 6 +- .../optee-os/optee-os-stm32mp15x_3.11.0.bb | 2 +- .../linux/linux-cip_4.4.166-cip29.bb | 2 +- .../linux/linux-mainline_5.4.70.bb | 4 +- .../linux/linux-phy_5.10.76-phy4.bb | 2 +- meta/classes/base.bbclass | 1 + meta/classes/dpkg-base.bbclass | 9 +- meta/classes/dpkg-gbp.bbclass | 4 +- meta/classes/dpkg-prebuilt.bbclass | 2 +- meta/classes/dpkg.bbclass | 1 + meta/classes/image-locales-extension.bbclass | 2 + meta/classes/image-tools-extension.bbclass | 1 + meta/classes/image.bbclass | 22 +- meta/classes/imagetypes.bbclass | 22 +- meta/classes/imagetypes_container.bbclass | 2 +- meta/classes/imagetypes_vm.bbclass | 8 +- meta/classes/imagetypes_wic.bbclass | 2 +- meta/classes/rootfs.bbclass | 3 + meta/classes/sdk.bbclass | 34 +- meta/conf/bitbake.conf | 31 +- meta/conf/distro/debian-common.conf | 12 +- meta/conf/distro/debian-stretch.conf | 4 +- meta/lib/oe/sstatesig.py | 2 +- meta/recipes-bsp/barebox/barebox.inc | 2 +- .../libubootenv/libubootenv_0.3-3.bb | 2 +- meta/recipes-bsp/optee-os/optee-os-custom.inc | 2 +- .../trusted-firmware-a-custom.inc | 2 +- meta/recipes-bsp/u-boot/u-boot-custom.inc | 2 +- .../isar-bootstrap/isar-bootstrap.inc | 13 +- .../buildchroot/buildchroot-host.bb | 2 +- .../buildchroot/buildchroot.inc | 6 +- meta/recipes-kernel/kselftest/kselftest.inc | 6 +- meta/recipes-kernel/linux-module/module.inc | 2 +- meta/recipes-kernel/linux/linux-custom.inc | 10 +- scripts/contrib/convert-overrides.py | 142 +++++ scripts/isar-buildenv-internal | 4 +- 183 files changed, 6036 insertions(+), 3031 deletions(-) create mode 100755 bitbake/bin/bitbake-getvar create mode 100644 bitbake/contrib/prserv/Dockerfile create mode 100644 bitbake/lib/bb/asyncrpc/__init__.py create mode 100644 bitbake/lib/bb/asyncrpc/client.py create mode 100644 bitbake/lib/bb/asyncrpc/serv.py create mode 100644 bitbake/lib/bb/compress/_pipecompress.py create mode 100644 bitbake/lib/bb/compress/lz4.py create mode 100644 bitbake/lib/bb/compress/zstd.py create mode 100644 bitbake/lib/bb/fetch2/README create mode 100644 bitbake/lib/bb/fetch2/crate.py create mode 100644 bitbake/lib/bb/tests/compression.py create mode 100644 bitbake/lib/bb/tests/fetch-testdata/debian/pool/main/m/minicom/index.html create mode 100644 bitbake/lib/prserv/client.py create mode 100644 bitbake/lib/toaster/bldcontrol/migrations/0008_models_bigautofield.py create mode 100755 bitbake/lib/toaster/orm/fixtures/gen_fixtures.py create mode 100644 bitbake/lib/toaster/orm/migrations/0020_models_bigautofield.py delete mode 100644 bitbake/lib/toaster/toastergui/templates/landing_not_managed.html create mode 100644 scripts/contrib/convert-overrides.py -- 2.17.1