From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 25 Mar 2025 17:56:10 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f60.google.com (mail-pj1-f60.google.com [209.85.216.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52PGu8Kk028232 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 25 Mar 2025 17:56:09 +0100 Received: by mail-pj1-f60.google.com with SMTP id 98e67ed59e1d1-2fec3e38c2dsf15552217a91.2 for ; Tue, 25 Mar 2025 09:56:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742921763; cv=pass; d=google.com; s=arc-20240605; b=dqgSntTbn4KNhYbI71v0UHOlxPR1dS3pVzpv4nIJUB+q6JmBYgV7SA+SF6NLmhTDKa Mc6CYS76Nikb32W7iKPMc1+VJiYxBudvaMpv6SSAKtp5UeLWh2J/4c/PrLPb/zC+AqTt tajVASZhsjlMFfl0lbw5UnmZ3sdRM6qs7fESWhO3oOQt96AIaUBCnSJXselc4r9nWbbW B6Hqn4o3L2ukwUXvhPP6+lsv+hJ2GYbqAA35R0jGTA5HTDgoLNr4q2DqO9cN/K1vfVhe 1dL3qhAn5aOb71co3aHzTDsX7imes2dEl+/6ZLtAsWZyB8CAAP1hWgw5XCsbCJJ/jBEf 4fsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id:sender:dkim-signature; bh=tkbxJziBaLwCCz9zo+G2BvSHiV0g/zYpOxmWKluv/3g=; fh=NM9vp+IPjUnf5hFddwjwn/MTctdBkbWyqeUqFPiK1hY=; b=kkvoAbOw9t38D0Oy3HT3+6b0hd4d/JrGoELi2eMyXii60/kGXTu5yqvvmnHbdX8fD7 dWqEQKPZ3pc1mdFWlGN70+JlOFKoePuvb5WI12kMXFdm1B4d65jSDPYgOCsStEuymGoM puMfUm1Wt4+kNJenXbFA9eajrtB7mY6HLeMwE73n7iuh5oDZgpicYp4VRe41qDOIXgsY TpgReG0m9zJpXfaLnACVu4ijh5FkhOJsHqiJ3oplv+YuiqrqIwc/9QbCZjJXuC2iY4Vv NozPzVJVoeBz1jUMBTG0Nml0dPY9XCe4RxkUKCqzA9AMTGclM2iS6CnJ5gXYs/TnHWFq aNlg==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1742921763; x=1743526563; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :autocrypt:references:in-reply-to:date:cc:to:from:subject:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=tkbxJziBaLwCCz9zo+G2BvSHiV0g/zYpOxmWKluv/3g=; b=oGdmAux3QvVv544goqG4JJkkbsAteCUlZh30qj1Tj4jD0SaFgbQFXbMEBxw6sdzPzD Yh+xuHqCa1OymPygYu029JjecUtwGLS3wm3T//F5YJTQc3emoDas+vlewFwS1oVjlxZn qMpQOdCRsfRaNm+Bd5nNXzyWjxJbrGVQlHv/ri1RKbD1BsRaTero+KNVxhuswERIOaSy qUlHqLz69FIEddjD9nlaVPWMtHivbXu1XOWmKOb462dpI8ODGuOwCZ6k8z2W5t3attp1 xZ0stQGwbhrpokNrmQHqawzmYrClbPIh0cJ16x8o8jGNkHJhakLJxBQ70Jmr6m/gZhTQ 78gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742921763; x=1743526563; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=tkbxJziBaLwCCz9zo+G2BvSHiV0g/zYpOxmWKluv/3g=; b=oTX/sK276lanho6jFroMdyXqF1xB+6V+kbKCBiyiNu8JHjGLYX8+RivtgbtxtAhW9b 4xz8zePGTw1O/YCRVl8s8puYu+/OQO/0ooP8FWHJGtVB+dSRCSH/z5xx4hJdepkqjA0e 3IWhRuDgRj56xEra+2qYUhI4xjQYACP6usexufbAMFJXzb8CeMqr95t0hTfb+Sc8LdwN Tfy/g8O44WnoUHtyq47OeeoAWk9c2zqf/DysRzrVH03SPiJx3Lm853nSZF+YAg+DOwl0 HBIHl+Srbt6zZYImnNLDbu/eLsaNAiyTR+VYsnYmlZ/Mpwh/u8/bd0wJMaStCc1ToIBJ hKrQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWxTwik+GU33FxefxLYNxagJ1i2dnSalboiW0oIOzcdHPIOltYbCwhblrtMwYAYq3PIJKup@ilbers.de X-Gm-Message-State: AOJu0YyaGz2L2u6LJyXMlUnoIdCsdZA7pJmvZCc1n6A2E6jMMa2m62EA n9/Y17UWY20ZtDzbYcjEmbB0goPgbwC98gZ2hUlh3cCQhVCRs8ux X-Google-Smtp-Source: AGHT+IFONja/y5sH1TxWCP7MF5ef0iiLtox9K3fVuaikXp4Xg6e/pqsXRKojhFFMhL5WWjcJchoObQ== X-Received: by 2002:a17:90b:4c12:b0:2ee:f687:6acb with SMTP id 98e67ed59e1d1-3030fe8f388mr24828504a91.13.1742921762129; Tue, 25 Mar 2025 09:56:02 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAI7+Ol0bHvvasPHLFF31r5eqjMN6Fhh9YGfEzYpMfcjSA== Received: by 2002:a17:90b:4b91:b0:2e2:840e:d4a7 with SMTP id 98e67ed59e1d1-301d48620b1ls2009257a91.1.-pod-prod-06-us; Tue, 25 Mar 2025 09:56:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTMPoGr1jDL78bZOF/uVjNuhpwoidnv2692X3/omQYbh+Oou7UW34ma+3f3fhzrwyr0TqFLSLB7Gv+@googlegroups.com X-Received: by 2002:a17:90b:3886:b0:2ee:74a1:fba2 with SMTP id 98e67ed59e1d1-3030fea9334mr26435225a91.20.1742921760179; Tue, 25 Mar 2025 09:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742921760; cv=none; d=google.com; s=arc-20240605; b=Y27I945RcdPgJUT8hK0xmtxNvII2Hm+BqA6Q3vxPoDwIW1W8BTmVqlbUo8tNCYgKl3 8QrRqCsguGYmAzx6JgVQ4ad7XycFvNu8X4LTY9Y652sglLxZCM3YgRL0QzbKiZceA3RB tV9bOntYDz53X6HuZ+GFwgPX1wPgf89pL1086UUGHrgcYtGA7nhb9jTO8Ft9ct5zDlVJ /BkeCOCtMi9Mw7VjPkEKQ1xYRJRyY2k8w41Ztz1yIUfwEOqsCmP8iiv4Al/8F6R3nTel ZD9eV5cWjZNZ4UX3Ibwgl2JVg0dnQP3V/+FlpucaGQEXzjSdSldHKhIWxtBSRk7sjaR4 Uj7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id; bh=JnSF6UxTsUzK8KdKlYkoyMptfUa1CYdbMyH3rHy1OhU=; fh=AlHr7666demrqpVbfJx/Y70mAVenEard4Sk9Ml2VoGw=; b=a1nyduL+tf0Frm6wx6+pbLXnwsglBwdLJC9GibW8ANqTWTUg3/T+npw/lOzitK5YYT ITY4SOPsCpx4AYKTUkeb9Kz6mo8XeKMlQ7vbKcXT0va5ftnXW6uJAGcWCFsr46uVuOAa Y5ZQHY77yHimxan9ZhJD1hsg+n3YGsOMOc7gVfTPTFLRxcvZ0mdS+Hvz9THUIzplv6uZ qqRVlm6/eRCEyi3DVIMVsaQEk2BQHWVffv/11sbf2GzjkZO6xCbaz6Vp/RSv3t1ZVvDt VBXwJ91GmIpYhE2UMcwdVHTxrr0U+eWioNsG5TpPi3+cABchr7Q1w3QFdl4ChkHur8wu fvoQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-3036bbe9c8esi163887a91.0.2025.03.25.09.55.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Mar 2025 09:55:59 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [IPv6:::1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 52PGttH3028222 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Mar 2025 17:55:57 +0100 Message-ID: Subject: Re: [PATCH 0/3] Add 'customization' package support From: Uladzimir Bely To: chris.larson@siemens.com, isar-users@googlegroups.com Cc: Cedric Hombourger Date: Tue, 25 Mar 2025 19:55:55 +0300 In-Reply-To: <20250311210939.4090-1-chris.larson@siemens.com> References: <20250311210939.4090-1-chris.larson@siemens.com> Autocrypt: addr=ubely@ilbers.de; prefer-encrypt=mutual; keydata=mQENBGO2eUkBCACtT+T3OrPVSExBmqfgXT3lp9XcdxRzjYp26wezkgYjjBXaf36bxtaAf S471VoQtpar0RVeFfW7WDDdfX9ZclSj36zBQe+RVSJzoNoNQfjOXWuSHb5Z+cpAFtqBY4muxK4+ia IlLJd6CN3ejOsLHATtCeHHq8wi0z2T+KdLQO+wQRgo2hjj0Lp9pGTrKJry50HP/o7Vbdu14dOx2xq r8+wPc6SQbBIrcqaa4MqCQC00vQG7eXvo+k2MOw59FDdpMH0KR9mHgp3u/s4I+4YRBArukt9G9xz/ rsEFmxAIBC6N/a6Hzwg4puc91n7ABDsPg8Vp+X3MDraujN0dvR6OKVNtABEBAAG0IFVsYWR6aW1pc iBCZWx5IDx1YmVseUBpbGJlcnMuZGU+iQFOBBMBCAA4FiEEJqPNVhVGyk12Eh+PAUQYBM/2FkoFAm O2eUkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQAUQYBM/2FkprlAgAmuna8Hm9EyoEtTl DBGDg6Zm4ZLp5ffvZBE946h92jepDrteoxsJ7pSzJVC2HmDLa4iZUao7lLLbDsUj5x45/iLJcqBZK k3YnAxP2r6a+kI+1VVQY1pxdG1nlJAbdNzoojm/qmezNPSrqni61KVMQKsXBCWhIjSXDSM9CsBj21 a+9qaVqfxovJGTn9lgrZO+xzKQNMKZeOouJlscVuFj21P0ww3/YENiU/nMeTSuYypO76mDtAd08Jo nc3yuHa9MJGei5ixN3wT+IrGR2aL2hdw2M6NgH7sYbL2Zi4ugD6RXHJai1Bh2yvFSVqSQ+M6QOInT 4ud7wslm1XRB065dXtA== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.0 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE, SPF_PASS 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-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: bcpHl5yoX+Lx On Tue, 2025-03-11 at 14:09 -0700, chris.larson via isar-users wrote: > From: Christopher Larson >=20 > A number of downstream layers have customization dpkg-raw recipes > making use of > template variables to support build-time settings: add the > infrastructure to > Isar to help uniformization of such recipes. Settings are often > specific to a > DISTRO, MACHINE or IMAGE: provide a mechanism to decorate (prefix or > suffix) > packages being constructed and pulled into the image. This helps use > of > customization packages in multiconfig builds but also with the > deployment of > binary package feeds for projects supporting multiple variants. >=20 > To create a customization package, a recipe must inherit the > `dpkg-customization` bbclass. By default, images will inherit the > `image-customizations` class, which will install the package for any > customizations listed in `CUSTOMIZATIONS`. >=20 > To add variables to the customization package names, beyond the > default DISTRO > and MACHINE, add them to `CUSTOMIZATION_VARS` as variable references > (`${DISTRO}`, `${MACHINE}`). By default, these variables are appended > to the > package name, but if they should be prefixed, add them to > `CUSTOMIZATION_VARS_PREFIXED`. By default, the `DISTRO` and `MACHINE` > variables > are used, and the `DISTRO` is prefixed, while the `MACHINE` is > suffixed. >=20 > To enable support for per-image changes, and per-image customization > packages, > add the image name to `CUSTOMIZATION_FOR_IMAGES`. In the > customization package > recipe, the `IMAGE` variable will be set to the image name, and the > package name > will be decorated with the image name. The `IMAGE` will also be added > to the > `OVERRIDES`, allowing for variable definitions like this in the > customization > recipe: >=20 > =C2=A0=C2=A0=C2=A0 HOSTNAME:isar-image-ci =3D "isar-ci" >=20 > When `CUSTOMIZATION_FOR_IMAGES` is defined, `${IMAGE}` will be > implicitly added > to `CUSTOMIZATION_VARS`, and the package will be decorated with the > image name. >=20 > An example `hostname` customization recipe/package is provided, as is > an > initial unit test to verify the functionality of this customization. >=20 > Christopher Larson (3): > =C2=A0 classes: add 'customization' package support > =C2=A0 hostname-customization: add initial customization package > =C2=A0 testsuite: add 'customizations' test >=20 > =C2=A0meta/classes/customization-base.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 | 21 +++++++++++ > =C2=A0meta/classes/dpkg-customization.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 | 37 > +++++++++++++++++++ > =C2=A0meta/classes/image-customizations.bbclass=C2=A0=C2=A0=C2=A0=C2=A0 |= 30 +++++++++++++++ > =C2=A0meta/classes/image.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= |=C2=A0 1 + > =C2=A0.../customizations/hostname-customization.bb=C2=A0 | 11 ++++++ > =C2=A0.../hostname-customization/postinst.tmpl=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 |=C2=A0 5 +++ > =C2=A0testsuite/cibuilder.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 |=C2=A0 9 +++++ > =C2=A0testsuite/citest.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 21 +++++++++++ > =C2=A08 files changed, 135 insertions(+) > =C2=A0create mode 100644 meta/classes/customization-base.bbclass > =C2=A0create mode 100644 meta/classes/dpkg-customization.bbclass > =C2=A0create mode 100644 meta/classes/image-customizations.bbclass > =C2=A0create mode 100644 meta/recipes-support/customizations/hostname- > customization.bb > =C2=A0create mode 100644 meta/recipes-support/customizations/hostname- > customization/postinst.tmpl >=20 > --=20 > 2.47.2 Applied to next, thanks. --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= c803fd2222c402dc168d6ca016f14692a1b8494f.camel%40ilbers.de.