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:58:14 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f62.google.com (mail-oo1-f62.google.com [209.85.161.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52PGwCdw028666 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 25 Mar 2025 17:58:13 +0100 Received: by mail-oo1-f62.google.com with SMTP id 006d021491bc7-601e231e8d3sf2449900eaf.0 for ; Tue, 25 Mar 2025 09:58:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742921886; cv=pass; d=google.com; s=arc-20240605; b=iljuDE3GMlK7QicIXCILjDJiEEN8MDfBFdnPkrDJxBiKfVjoBb96DeyJtKN7tFXmkq cry2kogRQ6s1Lir3NJfdJNJrZvaITcSLa6DvhJAYfBrAXN/rA5DiYEbCM8KVcWigYoM6 kfCTt9byr6ghrc2wDkg02wSbO7RDHKFlaTjEcYiPkZ9I4S+WfUj51Nb0tmvOJtdOJiNo jj/+BCwE5xbvh6+949nYf9M/DEUJS/XHzO1eq8SF27cty+Z5PSahOgTH3xIV1VyeS2m/ X/OZy8NuPA2l95OR34WEGMEnJTLOzy+/lbXpR4QtHGCIoUSCaIuBIYzlmMWtmqDFaaxl ey/w== 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:to :from:subject:message-id:sender:dkim-signature; bh=wadZWaomakqs4bxCxAenAi6pFXmJE8Sqbjdg5lS/lF4=; fh=fXIYFkoN65XwpAmGy4jtjGHeYDnL7f5hSGf7wf6daxc=; b=WobXQeT+jglCPFHizxhRM1BSc/sA6LAk9fxD9zjf9ZXXrBuVG4qzp9G8krnryRbaIL PsjTZhwCxhSAu02tdPcvuRuc/B/KWmGlCXnZVBZJQLPxYvdsYClQi2MC1RqBI7uI5WFY N49mJCm1HEA5+3kqtaobj+BZrzQWTwliUL3pCYtV5BnDrQQp9aQ1mpifjJxJgNQw5RUx akh8tHYEsTcIRxNOJ2u/vacLeINHct+XLCOGxBVybs3p5DHHCSEbSwg5TVfU+Tf5YYgi NrCk1oO/CWd+oU5HGTlzkwDcMo+rBZLYHzYwn9fGTLogZaC37XfvZakuFoHwWDcoyDE9 W0Jg==; 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=1742921886; x=1743526686; 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:to:from:subject:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=wadZWaomakqs4bxCxAenAi6pFXmJE8Sqbjdg5lS/lF4=; b=Oz2trRnpf+irBwpfxgzz2nm4hdCuU2j8Cnr/pW2MPhAz3eB8fxL19i9zA4mTXkGo2O 8n9i898fp+qmSEnRRK0UzeM+ThBk6mUbqwnwxIDgBWif/UZnWxm1k1vCbRbAN6EOyKlO nIdLsjvs5HTQ9b2cFNsTOUC2ThEbdjrlyP8jnE2dqbDn8xw3lKrQI1OYueHy9x631D9j R9IGbYmZndv1PDXW4+7InNI8/QZBW1OeCJCViyBAa6YwXZKZR6VqI4rBo4soHBNCaQli TTylylJr+Ua+E0LnxbOzkBUIv597cq+I4PsFM7wo/MpmAJfw1lx59LzLv2fU0H6Pkmt6 tFlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742921886; x=1743526686; 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:to:from:subject:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=wadZWaomakqs4bxCxAenAi6pFXmJE8Sqbjdg5lS/lF4=; b=HU92YfoBt7Jc/Yh8u11jdTPLilO06/cXPFstl7GL9Hl1Hap4n6MGBJWxfYgq1eKEJt b1qIfpiCGATk78FeSs3TuR2DFaUNf6Pz/I/CxsvbFySZ+ntzRv/K0rEueEh07lW08bT4 jeZGlbnW7GDE+kxl8Ap9oJeLmkMiTaYbpTpL9Vr6M6wHq9lbAl71exrU+dFHm6kwlep3 SNiFomid7QmA1zAo1uc7XrdqD6dTvskSS/m2beHeVUKMyqXy7OTAizn1UQSlfB72gHjK 9hLrKgHj1V9XUiqS6QtNB6ycsbDiHBVfOAUsyk/ezMJmSmSVGK/232qwMdAK9gvsxysl JeOw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVz51I80dKFKxsPPUaBlYKzV9+7xe5EifWMKzn/9xbYP1b4BZJGF918EDzgjbkgyAg/5z+S@ilbers.de X-Gm-Message-State: AOJu0YyxBb7RF0bv90gSSEyV6EY1zZIQjLhXn50LihExEH/zHeHBxWjg cXq9zJrGABpaey+ww7g0QDp9hK6nA9API4B1yvaq354U0UfB9tAM X-Google-Smtp-Source: AGHT+IF0klFd+9+fQjVnccH+pLbXc4Iyu0qLi4YG84pQ1kHKglSyRbBc3O9K/gF9Vf25V3cf64krWA== X-Received: by 2002:a05:6870:44cb:b0:28c:8476:dd76 with SMTP id 586e51a60fabf-2c78044070bmr12312647fac.29.1742921886211; Tue, 25 Mar 2025 09:58:06 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAJNsm1geW5rdnSZjrSRCMVKGi84nYY1YbHWlnTROJ9kNQ== Received: by 2002:a05:6870:828a:b0:29e:3d45:93e6 with SMTP id 586e51a60fabf-2c7608ab667ls2582539fac.1.-pod-prod-03-us; Tue, 25 Mar 2025 09:58:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWslG3zq9fB+NnfjtD/SkqgZrZY/2OWkPJTC94r/q8ctpqIY0xlGbqqVxqhf7c1KYv98Mj1RrNmF8Ab@googlegroups.com X-Received: by 2002:a05:6870:f70f:b0:2c1:4d78:57b8 with SMTP id 586e51a60fabf-2c78043942fmr11253732fac.28.1742921885117; Tue, 25 Mar 2025 09:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742921885; cv=none; d=google.com; s=arc-20240605; b=Jy9efMyb+cMhak/+PoQN1+63vVaAC4KYPItFt0V6YxGI9/ObX2+qiVS1J1K6+bDOFO YjAQ9ieXD4h9lIrvAjIJjMdYtbqYv0LWJRiEO1EWOt8jYuMvZFrqA139n+uy0cTzyPOv F3Fz2dimpOdyBD2AU44rospqFzt3c30zbnIDw4pab2LCQOr+ibxyPaC6vDy/7INZYKPw 81hLnlVrUzdPchE94bZV0xSbQzY3YDUf5amB1iisvXsohhrEEYm2rWSBylXnONYnKc1+ KHV2YepCYYMQA2oOjvdoAtU/snbsl08wicirxwJCtOlhljbNyzcjXva2o9QDkFJBEXbg DDOg== 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:to:from:subject:message-id; bh=YlEAJa7iDLBRF0ItTNoSiMZs+Tql1c81ni610ZZMENw=; fh=ez+yYIN2+t1/A1KtVD1essDQ6+anTTnZTbSXjuK9WaU=; b=ZPWdq/FibxLjd+S01DdZaaAsjPy856RemhZPWu8Uv7OCBo852j/f4qBcYfvcjm5TBJ 6hPUYQPLtbt+NFnako40LFO5o08+fSgyYrAVhxXNNaBBfDmQAPcaxjZvQqizpifsSV6a 4+jaDF8lt257IWMRZLhpl4lQqWjaMS02mQrdhCxK7mgbSfy1W5dHVVF0AVPnCEfVSJxr 1hhqlZKnEZganUHYQkSPAo/5N5/jxUnmmTmXNyt/EY6L1BNd4+qllra/D7GJof6rr52u T5nk0SF2QHwXT8++qh2A02j4NIE6Tj30we5E4zRsRCjtSsj1NGe9SCP67m5OM5Z4N8Qq rQTg==; 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 586e51a60fabf-2c77efafc0csi528479fac.4.2025.03.25.09.58.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Mar 2025 09:58:05 -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 52PGw0wf028653 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Mar 2025 17:58:02 +0100 Message-ID: Subject: Re: [PATCH 1/1] isar-apt: support further optional fields in Release From: Uladzimir Bely To: Felix Moessbauer , isar-users@googlegroups.com Date: Tue, 25 Mar 2025 19:58:00 +0300 In-Reply-To: <20250319091347.9181-1-felix.moessbauer@siemens.com> References: <20250319091347.9181-1-felix.moessbauer@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: yjhUMUUvmGds On Wed, 2025-03-19 at 10:13 +0100, 'Felix Moessbauer' via isar-users wrote: > The isar-apt repository is a proper apt repository which can be > distributed as-is. A common use-case for that is to build packages > which > are then used in a standard Debian by adding the repository to the > apt > sources. In this case, it is desired to fill some of the optional > fields > in Release to enable fine-grained pinnings. >=20 > We extend the repo_create function to allow appending arbitrary > fields > to the Release file. To make that easy to use, we introduce the > ISAR_APT_OPT_FIELD bitbake var map. As the do_cache_config task now > depends on user-input, we also ensure it is rebuild when changed. >=20 > Signed-off-by: Felix Moessbauer > --- > =C2=A0RECIPE-API-CHANGELOG.md=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 5 +++++ > =C2=A0meta/classes/repository.bbclass=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 10 ++++++++++ > =C2=A0meta/recipes-devtools/isar-apt/isar-apt.bb |=C2=A0 6 +++++- > =C2=A03 files changed, 20 insertions(+), 1 deletion(-) >=20 > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md > index 64c0f34a..2801a177 100644 > --- a/RECIPE-API-CHANGELOG.md > +++ b/RECIPE-API-CHANGELOG.md > @@ -714,3 +714,8 @@ For example, If `KERNEL_NAME` is configured as > `foo` for arm64, now > =C2=A0`linux-libc-dev-foo` and `linux-libc-dev-arm64-cross-foo` package > will be > =C2=A0generated. This will help to have multiple versions of linux-libc- > dev packages > =C2=A0available for respective bsps in apt feeds. > + > +### ISAR APT Repository > + > +Optional fields of the isar-apt repo can be controlled by adding to > the > +`ISAR_APT_OPT_FIELD` map. Example: > `ISAR_APT_OPT_FIELD[Origin]=3D"isar"`. > diff --git a/meta/classes/repository.bbclass > b/meta/classes/repository.bbclass > index bc5852a5..8fbceed6 100644 > --- a/meta/classes/repository.bbclass > +++ b/meta/classes/repository.bbclass > @@ -4,12 +4,19 @@ > =C2=A0# > =C2=A0# SPDX-License-Identifier: MIT > =C2=A0 > +def repo_expand_opt_fields(d, var): > +=C2=A0=C2=A0=C2=A0 f =3D d.getVarFlags(var) > +=C2=A0=C2=A0=C2=A0 if not f: > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return '' > +=C2=A0=C2=A0=C2=A0 return '\n'.join('{}: {}'.format(k, v) for k, v in f.= items()) > + > =C2=A0repo_create() { > =C2=A0=C2=A0=C2=A0=C2=A0 local dir=3D"$1" > =C2=A0=C2=A0=C2=A0=C2=A0 local dbdir=3D"$2" > =C2=A0=C2=A0=C2=A0=C2=A0 local codename=3D"$3" > =C2=A0=C2=A0=C2=A0=C2=A0 local distros_in=3D"$4" > =C2=A0=C2=A0=C2=A0=C2=A0 local keyfiles=3D"$5" > +=C2=A0=C2=A0=C2=A0 local conf_append=3D"$6" > =C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0 if [ -n "${GNUPGHOME}" ]; then > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 export GNUPGHOME=3D"${GN= UPGHOME}" > @@ -27,6 +34,9 @@ repo_create() { > =C2=A0 =C2=A0=C2=A0=C2=A0 done > =C2=A0 =C2=A0=C2=A0=C2=A0 echo "SignWith: ${option}" >> > "${dir}"/conf/distributions > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fi > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if [ -n "${conf_append}" ]; t= hen > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo = "${conf_append}" >> "${dir}"/conf/distributions > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fi > =C2=A0=C2=A0=C2=A0=C2=A0 fi > =C2=A0=C2=A0=C2=A0=C2=A0 if [ ! -d "${dbdir}" ]; then > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 reprepro -b "${dir}" --d= bdir "${dbdir}" export "${codename}" > diff --git a/meta/recipes-devtools/isar-apt/isar-apt.bb > b/meta/recipes-devtools/isar-apt/isar-apt.bb > index 187784f9..cda7de89 100644 > --- a/meta/recipes-devtools/isar-apt/isar-apt.bb > +++ b/meta/recipes-devtools/isar-apt/isar-apt.bb > @@ -9,6 +9,8 @@ inherit repository > =C2=A0SRC_URI =3D "file://distributions.in" > =C2=A0 > =C2=A0do_cache_config[lockfiles] =3D "${REPO_ISAR_DIR}/isar.lock" > +do_cache_config[vardeps] +=3D "ISAR_APT_OPT_FIELD" > +do_cache_config[cleandirs] +=3D "${REPO_ISAR_DIR}/${DISTRO}/conf" > =C2=A0 > =C2=A0# Generate reprepro config for current distro if it doesn't exist. > Once it's > =C2=A0# generated, this task should do nothing. > @@ -16,7 +18,9 @@ do_cache_config() { > =C2=A0=C2=A0=C2=A0=C2=A0 repo_create "${REPO_ISAR_DIR}"/"${DISTRO}" \ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "${REPO_ISAR_DB_DIR}"/"$= {DISTRO}" \ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "${DEBDISTRONAME}" \ > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "${WORKDIR}/distributions.in" > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "${WORKDIR}/distributions.in"= \ > +=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 "${@ repo_expand_opt_fields(d= , 'ISAR_APT_OPT_FIELD')}" > =C2=A0} > =C2=A0 > =C2=A0addtask cache_config after do_unpack before do_build > --=20 > 2.49.0 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/= fc30da30ce43b1d226b89f23d06fd9261426ae97.camel%40ilbers.de.