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, 04 Nov 2025 07:44:57 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-il1-f191.google.com (mail-il1-f191.google.com [209.85.166.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5A46istp008175 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 4 Nov 2025 07:44:55 +0100 Received: by mail-il1-f191.google.com with SMTP id e9e14a558f8ab-431d84fdb91sf150706315ab.3 for ; Mon, 03 Nov 2025 22:44:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1762238689; cv=pass; d=google.com; s=arc-20240605; b=gNhdeX0bWp5Che2SkLTvUWn04DclRD6gIRM2+C8IuANmrz2K67Xcog/yrNitNtcQ9o l6XEDEsGqNPPYMHrdR3BFxsWqntJ8gAIuNP7oFav/Ee5afquoVdeuCvxz9qrJvUVzO8T AYKMhkP54kk5xyt4xdeRh6J9vsZTfYgtv89tpRRYh1Poj4iHGE88QzyJ3P/S47TLXK2E v55I9sD0w/u5ScI8d5rJbnY9dKFisz8y7dxp+BcwsAX8jtWjKbDKuuVDELuQfStLWMoB Oog5H1N1VFZJY/QkKeY3xnkaSfYQjnxc8JeYc2nOFcW2TlvcBRx6MXEQ+CEeuWzgvQwr hcqw== 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:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=FnAfz9d6TY29vG473vxmeLtIGUT+wCPQDskVzanIj6s=; fh=X6Hgt7H9H3oE+g+IhlUO6ENq+tkZnlq252XA92+zFVg=; b=WQNvkaKgeS1XzHKzJTgf0fN2ggko2M3QHYJHwkEHj/lm3uVhGcMmM4qUVDdqvRKWEv PDziOir1YPwODxp4GhywRaN3ZyxRhNYN2Jwu9KvNYQ+IKuO+rbz2b2RynGwCIZHX2BH9 +t/V+pJhimw8fI9nO4OLSrrMioLYr8OR8csYzE8bcNbhGpt97h+zTDP4Q5wAc9GiZRvo 9Ru4NVB65za6YppxDHBHA2hHXkJs2uUvHNC9w3mYwWAZMeHeiXgOsg4BVKeuo743m47i BXITFDRyN1h23rSYJAitjsNn06pghLQRotWOpwTDanZKIplV8cxwlvBXvYp3sz8pqDcA lG9Q==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KpXP2UaQ; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::929 as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1762238689; x=1762843489; 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:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:sender:from:to:cc:subject:date:message-id :reply-to; bh=FnAfz9d6TY29vG473vxmeLtIGUT+wCPQDskVzanIj6s=; b=w2q7IQrHKEW7dMnPjigHLEGvxzc1F5GomlKgem4H4FR1pR7MGUbFxnqsYmpjyhFPYk fg7EtuJvdr/FwpbgfDSN58y5vso/ZwG/jKPg+xzBn59lxnG7oMuzYa1nuWnqUep5d+k0 5gEDBtcSdeXdzQVnH6E22iA5pp1Vg6zO7pyLALULzP+7d4zPxqVOrg4cbKeZ3hU4VPS1 8Umcp25QcC98pReHM0n5lF2Hbl+6I2BT6vRKp1RJ7cMVNBi04R6iqt1gLELAfBTGX6K1 FRgmVwZDqSs4z0MKLUrJ3vN1uryLufq7WG6dJwCFkvXp66y5eUD0rooGPH5tX+d5KGAN NiFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762238689; x=1762843489; 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:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FnAfz9d6TY29vG473vxmeLtIGUT+wCPQDskVzanIj6s=; b=BFBBQzAyWC5sIsG0Jiqe+iXsgqJuehAOcc+HXWigh+liE7ORu6yzRJxS6jjX2YT+z7 tt5IU7OJ9LTs1xGUu1BfcmGjxz5W3M5Czq50m3b1v0f/kJFcu3ZVVN0WR1QG4l8vM0py H8uNbFqSgihlYwZSzYczLO4lXQV7WVF0LBi36Dlm4dAWhIgN5s/0fikInAcTOIkNPeCF VoXPlysNq0NtIHyUHV19nolYHv7MGa9ih0kPjQYo5QQcvhh6tElHsVphIIgTFA2sUJa2 UutlKvvPaaQqpj4qT7MSWE8XJmiYm0VaFhLfv88g8I5JXjHTAywUgppwIYoqzFIgeQZt E+/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762238689; x=1762843489; 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=FnAfz9d6TY29vG473vxmeLtIGUT+wCPQDskVzanIj6s=; b=B4LU+XtLHuosjsiqg7DmqGyx/k/v4V9vMc5h1WU/eO832IMOrrMwFKZcNMV4HAVf+g vZNLtPa5Yk7xlStgT3EJgwDqqF3P90nly0HcWVKvhJBU6A5U6zyWB3CygQYr9AZ3ZCQD C5Zu2VVGPRrEUTOu3HhTzqKiTFia4oH7PeuzY6xvg+ybjtjYMewrh6W1trbDroyOEnq6 qQj7lTbr2lpVxTjsNY+hxFsZ0GL06b0X6kq0Aq3+svXVHMDJBNL6wbaEVTkUrQDG4cCT xQW5GvQsvahlGTWYNgL5uRHKaJ+dcTgrZPNQADig1F8KE/U06UM/rWpiD1wnPivSaMj3 DOjw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVpMnKfo3yTpwVbA6p6BgvB5uyp/1NXEQitSar6cQ6t8QGPdxRB6fqeZII8KtZ1v99Pv1qB@ilbers.de X-Gm-Message-State: AOJu0Yw0OPSFCcngXUTeQYQYRxvS2LBfXQcCCHopxCKyMtp2D5BY0Gpi wkz8bALcP2aSjXdB61Meo8OsJLDfhM+vE2IFjacKpBoS9TnY+KLnLVXk X-Google-Smtp-Source: AGHT+IF5NTuHZwNaLQp4eX7vKMzS5uWynlemxxfF+WFUk36y8/6VMrvHuGNTtKHlSmS08Jpmoz59QQ== X-Received: by 2002:a05:6e02:1606:b0:42d:8c07:70d2 with SMTP id e9e14a558f8ab-4330d137141mr213472955ab.11.1762238688890; Mon, 03 Nov 2025 22:44:48 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="Ae8XA+ZXEkgqrRTWMzyf9+NUbvs9bTBRkGgusJLbN46bfAVDjg==" Received: by 2002:a92:c26a:0:b0:433:f64:7345 with SMTP id e9e14a558f8ab-433342ff775ls12183735ab.1.-pod-prod-01-us; Mon, 03 Nov 2025 22:44:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVZvBTG2csD6z9iQ3eXizGDTAZqoNaAkuH6qJ8egwyyA/zOLiCdSi1XT3vi5FEMjCY2+A6p2djP6qhX@googlegroups.com X-Received: by 2002:a05:6e02:17cd:b0:430:c68c:b2b9 with SMTP id e9e14a558f8ab-4330d1dbabcmr222224955ab.22.1762238687895; Mon, 03 Nov 2025 22:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1762238687; cv=none; d=google.com; s=arc-20240605; b=ga27glxjWflUwSmr1oskVAjI5wuVsmmcheSS3vZvshT7Y05jruk+gHwO6i1/UT49R0 sbeKq0ho5/M704lFnT7tA2QtDqPHToVHWV4cFUvhGcmVGqWAXkrPDZKXgBPj94MZRc5A e5kEsP3gINQAUuXMui5N520OaoSeedvvZRqDsw/DMIJ/vp6oqO0pV6UEph24djYKPgj6 o78r1GuuWN6nG5KJoRFjtIzHDWZJaEXBrk/Xn3x79vXcUQKFN4GoqOfiiyJXbrsCGREn DgvLUXddOAK7aL7h0KcobUXl8QHbkoMhW8ZFeIozTfEUM+eT1jwG+4pBSxHCnAPSGLzA cbYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=/7AQcw7udm2AH3hkBvDc83lkmS8+6t/yxCnizsms3Do=; fh=FTIUx/9hIYTEjEXT2zlKGQxDmrnUyNdS7T48LNWQCcY=; b=QzlYpyRJ9YUDCWtdoczOGmmNjUbx9ww2bevURriaWRdLlbY4aI91Ky/St7Hq9erjrw D+IAqphr4G8L91N5OF60hI2wSkIlU3VWi5E29sOdeVUVCbLhtBgpIsqKfiiLqMRowKwB 0cknEfsFXTDyG5Fa4u1PyRZVU5KsSz9bcEvwUCWXSdA+FO52vIyBLy3AGyeUgE4qdRzB 0an/2GdCq9ie93+AaX9eE4U4R6Yylwy4NU8EfRAmzIL6fcmuQPLJqe+uFwrDbNKbfyBX +uwsAwieFO/p4qVCFpnG/YkCwz0xRcMUnc9Yqqwx6Qu974jRcruH75tKS/v3todeiV1+ sAhw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KpXP2UaQ; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::929 as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com. [2607:f8b0:4864:20::929]) by gmr-mx.google.com with ESMTPS id e9e14a558f8ab-43335b32cd2si1597945ab.4.2025.11.03.22.44.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Nov 2025 22:44:47 -0800 (PST) Received-SPF: pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::929 as permitted sender) client-ip=2607:f8b0:4864:20::929; Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-934f0e9d4afso2312907241.1 for ; Mon, 03 Nov 2025 22:44:47 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCX/xPN7nrWxSN1Hem9xuOmM1ZcCDyNp14cgyAUlVvZFTaYV1YVfBNN0o1baTWjpSMBDH0CL+2JXWUH+@googlegroups.com X-Gm-Gg: ASbGncsjUgXau3/wlM0uJIdxi/tFXBJbRsx8CGSEMbA+0xGnArPb/vpdy+/+vNrExyl eys+qiN84tIAi5dPS0Fp6GnywfarXPpyOEWigWEcD28ZFuPYh44tw9EjhDOi8dUN1sky+BN1AdZ yIB3Agx9qfwGXN1Ux9x/SdXjMM6D/YY1OQTSQRT5BGVU4iCK/4mXpV3tNbJEU+mtpx00uF3KOk/ 28CrbN7htI8BAek2fDS5i9BYRKCjQvQhGLyNaIwDK5emA8X79uFp9pHBFRgUzPgCxxFgPy9 X-Received: by 2002:a05:6102:3f90:b0:5db:c951:1fc7 with SMTP id ada2fe7eead31-5dbc95125camr1983299137.8.1762238687072; Mon, 03 Nov 2025 22:44:47 -0800 (PST) MIME-Version: 1.0 References: <20251103110700.234274-1-srinuvasan.a@siemens.com> <20251103145133.235558-1-srinuvasan.a@siemens.com> In-Reply-To: From: Srinuvasan Arjunan Date: Tue, 4 Nov 2025 12:14:35 +0530 X-Gm-Features: AWmQ_blC_ZFxcuyVJv3iofxOdOBOy5-eeQyayJ8yevscHePbJKVbDJrb_9jz4E4 Message-ID: Subject: Re: [PATCH v4] debianize: set appropriate Standards-Version for each debian suite To: Isaac True Cc: srinuvasan.a@siemens.com, isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="000000000000f3d5790642bf2ad1" X-Original-Sender: srinuvasanasv@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KpXP2UaQ; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::929 as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com 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-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,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-TUID: HheIYH4lvjc5 --000000000000f3d5790642bf2ad1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Nov 3, 2025 at 8:26=E2=80=AFPM 'Isaac True' via isar-users < isar-users@googlegroups.com> wrote: > > + if [ -z "${DEBIAN_STANDARDS_VERSION}" ]; then > > + case "${BASE_DISTRO_CODENAME}" in > > + buster) DEBIAN_STANDARDS_VERSION=3D"4.3.0" ;; > > + bullseye) DEBIAN_STANDARDS_VERSION=3D"4.5.1" ;; > > + bookworm) DEBIAN_STANDARDS_VERSION=3D"4.6.2" ;; > > + trixie|sid|*) DEBIAN_STANDARDS_VERSION=3D"4.7.2" = ;; > > + esac > > + fi > > I wonder if it might be better to do this using BitBake variable > overrides, like: > > DEBIAN_STANDARDS_VERSION:buster =3D "4.3.0" > DEBIAN_STANDARDS_VERSION:bullseye =3D "4.5.1" > ... etc > DEBIAN_STANDARDS_VERSION =3D "4.7.2" > > What do you think? > Yes this approach also looks good to me, let me refactor the code. > > Apart from that, this is missing the distro codenames for Ubuntu, > meaning it would use the default 'DEBIAN_STANDARDS_VERSION =3D "4.7.2"' > for all Ubuntu releases, which I'm pretty sure would break older > releases like focal. > > I guess the default should probably be the lowest standards versions > supported by all releases, rather than the newest. > Sure, I will update the default one to the lowest standards, thanks. > > Cheers, > Isaac > > On 03/11/2025 15:51, srinuvasan.a via isar-users wrote: > > From: srinuvasan > > > > The Standards-Version field in debian/control declares the Debian Polic= y > > version that the package complies with. Currently, the custom source > packages > > use a hard-coded Standards-Version: 3.9.6, which is obsolete and does > not align > > with the policies of newer Debian releases > > > > Update the packaging to set the correct Standards-Version dynamically > based on > > the target Debian suite, ensuring compliance with the appropriate Debia= n > Policy > > version for each release. > > > > Debian Policy evolves over time, newer versions may add, remove, or > deprecate > > control fields and packaging behaviors. Using an outdated > Standards-Version > > can miss required or recommended fields, leading to QA or functional > issues. > > > > Examples: > > - Rules-Requires-Root (Policy 4.1.0): declares if root privileges ar= e > needed > > during debian/rules execution, improves reproducibility and > isolation. > > - Homepage (Policy 3.9.3): provides upstream project link for better > metadata. > > > > Older Standards-Version(Policy 3.9.6) may trigger lintian warnings such > as: > > W: source: missing-rules-requires-root-field > > W: source: missing-homepage-field > > > > Keeping Standards-Version current ensures clean builds, QA compliance, > > and future compatibility. > > > > Signed-off-by: srinuvasan > > --- > > RECIPE-API-CHANGELOG.md | 7 +++++++ > > meta/classes/debianize.bbclass | 14 ++++++++++++-- > > 2 files changed, 19 insertions(+), 2 deletions(-) > > > > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md > > index cf04fa5c..9ddb8ae6 100644 > > --- a/RECIPE-API-CHANGELOG.md > > +++ b/RECIPE-API-CHANGELOG.md > > @@ -242,6 +242,13 @@ consumption by imaging classes. > > Additional build dependencies of auto-debianized packages can now be > defined > > by setting DEBIAN_BUILD_DEPENDS. > > > > +### Add DEBIAN_STANDARDS_VERSION as a deb_debianize parameter > > + > > +By default, the Standards-Version field in the debian/control file is > automatically > > +set based on the corresponding Debian suite. > > +If you need to override this default value, you can do so by defining > > +the DEBIAN_STANDARDS_VERSION variable in your recipe. > > + > > ### Separation of ${S} and ${D} in dpkg-raw > > > > ${S} can now be used for checking out sources without being linked > implicitly > > diff --git a/meta/classes/debianize.bbclass > b/meta/classes/debianize.bbclass > > index 1f54e8f9..4caf0ce5 100644 > > --- a/meta/classes/debianize.bbclass > > +++ b/meta/classes/debianize.bbclass > > @@ -80,14 +80,24 @@ deb_create_control[vardeps] +=3D > "DEBIANIZE_BUILD_DEPENDS \ > > DEBIAN_BREAKS \ > > DEBIAN_BUILT_USING \ > > DEBIAN_CONFLICTS \ > > - DEBIAN_RULES_REQUIRES_ROOT" > > + DEBIAN_RULES_REQUIRES_ROOT \ > > + DEBIAN_STANDARDS_VERSION" > > deb_create_control() { > > # Add Source section > > + if [ -z "${DEBIAN_STANDARDS_VERSION}" ]; then > > + case "${BASE_DISTRO_CODENAME}" in > > + buster) DEBIAN_STANDARDS_VERSION=3D"4.3.0" ;; > > + bullseye) DEBIAN_STANDARDS_VERSION=3D"4.5.1" ;; > > + bookworm) DEBIAN_STANDARDS_VERSION=3D"4.6.2" ;; > > + trixie|sid|*) DEBIAN_STANDARDS_VERSION=3D"4.7.2" = ;; > > + esac > > + fi > > + > > cat << EOF > ${S}/debian/control > > Source: ${BPN} > > Section: ${@ deb_list_beautify(d, 'DEBIAN_SECTION')} > > Priority: optional > > -Standards-Version: 3.9.6 > > +Standards-Version: ${DEBIAN_STANDARDS_VERSION} > > Maintainer: ${MAINTAINER} > > Build-Depends: ${@ deb_list_beautify(d, 'DEBIANIZE_BUILD_DEPENDS')} > > EOF > > -- > Isaac True > emlix GmbH, https://www.emlix.com > Fon +49 228 94 77 96 94 > Bachstra=C3=9Fe 6, 53115 Bonn, Germany > Sitz der Gesellschaft: G=C3=B6ttingen, Amtsgericht G=C3=B6ttingen HR B 31= 60 > Gesch=C3=A4ftsfuehrung: Heike Jordan, Dr. Uwe Kracke > Ust-IdNr.: DE 205 198 055 > > emlix - smart embedded open source > > -- > 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 > email to isar-users+unsubscribe@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/isar-users/a4e3ee35-2f88-47e8-af7a-93fd= 2e0aba68%40emlix.com > . > --=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/= CAB2Z2nN7J55GKebLxEUmdeF7xSqK-L_1J8tGVUb7vhOnEYaJyA%40mail.gmail.com. --000000000000f3d5790642bf2ad1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Nov 3, = 2025 at 8:26=E2=80=AFPM 'Isaac True' via isar-users <isar-users@googlegroups.com> wro= te:
=C2=A0> += =C2=A0 =C2=A0 if [ -z "${DEBIAN_STANDARDS_VERSION}" ]; then
=C2=A0> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case "${BASE_DIS= TRO_CODENAME}" in
=C2=A0> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 buster)=C2=A0 =C2=A0DEBIAN_STANDARDS_VERSION=3D"4.3.0" ;;<= br> =C2=A0> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 bullseye) DEBIAN_STANDARDS_VERSION=3D"4.5.1" ;;
=C2=A0> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 bookworm) DEBIAN_STANDARDS_VERSION=3D"4.6.2" ;;
=C2=A0> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 trixie|sid|*) DEBIAN_STANDARDS_VERSION=3D"4.7.2" ;;
=C2=A0> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 esac
=C2=A0> +=C2=A0 =C2=A0 fi

I wonder if it might be better to do this using BitBake variable
overrides, like:

DEBIAN_STANDARDS_VERSION:buster =3D "4.3.0"
DEBIAN_STANDARDS_VERSION:bullseye =3D "4.5.1"
... etc
DEBIAN_STANDARDS_VERSION =3D "4.7.2"

What do you think?

=C2=A0 =C2=A0Yes thi= s approach also looks good to me, let me refactor the code.=C2=A0

Apart from that, this is missing the distro codenames for Ubuntu,
meaning it would use the default 'DEBIAN_STANDARDS_VERSION =3D "4.= 7.2"'
for all Ubuntu releases, which I'm pretty sure would break older
releases like focal.

I guess the default should probably be the lowest standards versions
supported by all releases, rather than the newest.
=C2=A0 =C2=A0 Sure, I will update the default one to the lowest= standards, thanks.=C2=A0

Cheers,
Isaac

On 03/11/2025 15:51, srinuvasan.a via isar-users wrote:
> From: srinuvasan <srinuvasan.a@siemens.com>
>
> The Standards-Version field in debian/control declares the Debian Poli= cy
> version that the package complies with. Currently, the custom source p= ackages
> use a hard-coded Standards-Version: 3.9.6, which is obsolete and does = not align
> with the policies of newer Debian releases
>
> Update the packaging to set the correct Standards-Version dynamically = based on
> the target Debian suite, ensuring compliance with the appropriate Debi= an Policy
> version for each release.
>
> Debian Policy evolves over time, newer versions may add, remove, or de= precate
> control fields and packaging behaviors. Using an outdated Standards-Ve= rsion
> can miss required or recommended fields, leading to QA or functional i= ssues.
>
> Examples:
>=C2=A0 =C2=A0 - Rules-Requires-Root (Policy 4.1.0): declares if root pr= ivileges are needed
>=C2=A0 =C2=A0 =C2=A0 during debian/rules execution, improves reproducib= ility and isolation.
>=C2=A0 =C2=A0 - Homepage (Policy 3.9.3): provides upstream project link= for better metadata.
>
> Older Standards-Version(Policy 3.9.6) may trigger lintian warnings suc= h as:
>=C2=A0 =C2=A0 W: source: missing-rules-requires-root-field
>=C2=A0 =C2=A0 W: source: missing-homepage-field
>
> Keeping Standards-Version current ensures clean builds, QA compliance,=
> and future compatibility.
>
> Signed-off-by: srinuvasan <srinuvasan.a@siemens.com>
> ---
>=C2=A0 =C2=A0RECIPE-API-CHANGELOG.md=C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0= 7 +++++++
>=C2=A0 =C2=A0meta/classes/debianize.bbclass | 14 ++++++++++++--
>=C2=A0 =C2=A02 files changed, 19 insertions(+), 2 deletions(-)
>
> diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
> index cf04fa5c..9ddb8ae6 100644
> --- a/RECIPE-API-CHANGELOG.md
> +++ b/RECIPE-API-CHANGELOG.md
> @@ -242,6 +242,13 @@ consumption by imaging classes.
>=C2=A0 =C2=A0Additional build dependencies of auto-debianized packages = can now be defined
>=C2=A0 =C2=A0by setting DEBIAN_BUILD_DEPENDS.
>=C2=A0 =C2=A0
> +### Add DEBIAN_STANDARDS_VERSION as a deb_debianize parameter
> +
> +By default, the Standards-Version field in the debian/control file is= automatically
> +set based on the corresponding Debian suite.
> +If you need to override this default value, you can do so by defining=
> +the DEBIAN_STANDARDS_VERSION variable in your recipe.
> +
>=C2=A0 =C2=A0### Separation of ${S} and ${D} in dpkg-raw
>=C2=A0 =C2=A0
>=C2=A0 =C2=A0${S} can now be used for checking out sources without bein= g linked implicitly
> diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.b= bclass
> index 1f54e8f9..4caf0ce5 100644
> --- a/meta/classes/debianize.bbclass
> +++ b/meta/classes/debianize.bbclass
> @@ -80,14 +80,24 @@ deb_create_control[vardeps] +=3D "DEBIANIZE_B= UILD_DEPENDS \
>=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=A0DEBIAN_BREAKS \
>=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=A0DEBIAN_BUILT_USING \=
>=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=A0DEBIAN_CONFLICTS \ > -=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 DEBIAN_RULES_REQUIRES_ROOT"=
> +=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 DEBIAN_RULES_REQUIRES_ROOT \
> +=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 DEBIAN_STANDARDS_VERSION" >=C2=A0 =C2=A0deb_create_control() {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0# Add Source section
> +=C2=A0 =C2=A0 =C2=A0if [ -z "${DEBIAN_STANDARDS_VERSION}" ]= ; then
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case "${BASE_DIS= TRO_CODENAME}" in
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0buster)=C2=A0 =C2=A0DEBIAN_STANDARDS_VERSION=3D"4.3.0" ;;<= br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0bullseye) DEBIAN_STANDARDS_VERSION=3D"4.5.1" ;;
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0bookworm) DEBIAN_STANDARDS_VERSION=3D"4.6.2" ;;
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0trixie|sid|*) DEBIAN_STANDARDS_VERSION=3D"4.7.2" ;;
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0esac
> +=C2=A0 =C2=A0 =C2=A0fi
> +
>=C2=A0 =C2=A0 =C2=A0 =C2=A0cat << EOF > ${S}/debian/control >=C2=A0 =C2=A0Source: ${BPN}
>=C2=A0 =C2=A0Section: ${@ deb_list_beautify(d, 'DEBIAN_SECTION'= )}
>=C2=A0 =C2=A0Priority: optional
> -Standards-Version: 3.9.6
> +Standards-Version: ${DEBIAN_STANDARDS_VERSION}
>=C2=A0 =C2=A0Maintainer: ${MAINTAINER}
>=C2=A0 =C2=A0Build-Depends: ${@ deb_list_beautify(d, 'DEBIANIZE_BUI= LD_DEPENDS')}
>=C2=A0 =C2=A0EOF

--
Isaac True
emlix GmbH, https://www.emlix.com
Fon +49 228 94 77 96 94
Bachstra=C3=9Fe 6, 53115 Bonn, Germany
Sitz der Gesellschaft: G=C3=B6ttingen, Amtsgericht G=C3=B6ttingen HR B 3160=
Gesch=C3=A4ftsfuehrung: Heike Jordan, Dr. Uwe Kracke
Ust-IdNr.: DE 205 198 055

emlix - smart embedded open source

--
You received this message because you are subscribed to the Google Groups &= quot;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/a4e3ee3= 5-2f88-47e8-af7a-93fd2e0aba68%40emlix.com.

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/ms= gid/isar-users/CAB2Z2nN7J55GKebLxEUmdeF7xSqK-L_1J8tGVUb7vhOnEYaJyA%40mail.g= mail.com.
--000000000000f3d5790642bf2ad1--