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; Thu, 23 Oct 2025 17:31:58 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f62.google.com (mail-lf1-f62.google.com [209.85.167.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 59NFVvGC028532 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Oct 2025 17:31:57 +0200 Received: by mail-lf1-f62.google.com with SMTP id 2adb3069b0e04-592f11529c1sf529482e87.2 for ; Thu, 23 Oct 2025 08:31:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1761233512; cv=pass; d=google.com; s=arc-20240605; b=ikDZhoY7CmYyxkQOwrKb/UBJJ17cpKoiemuqUjqdcnQH+vkxAiX2kZHlSDMW4W/V5g vkFr9Fq4uaKnAhymgpfB99VpAu3sOe9DVX788f954xHrPI2daGE2AvVg27eIiZI09Jjn g6z79nlgeMlVBfPsLnik7Re8osX0a9syJvi7BfGdZMhcAd1PH9ls/vMmJ8Q/w7d26leH cH+WJ+zVtftPAZCgOU8fGQ6uzCi+PkDcV1W9JZViPbHJcPK4YYu7b9vGZs0ODQ/1Hhha oKuBqXxpb9HDKUYaV/TRjSxnOYug9RqqXs5jZJlwBiJ8sQs8NnnoI+q1viLZoWdP1x5p kJng== 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:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=nsj80Hy3gqeuqBDGEx5adbayLbRdTgfJ7Z8jK92NAu8=; fh=DI0UxnBjnKbZfzp0x9au8spg1GXR0CUMO06uHT6Mfvg=; b=b86F6ejfNABgkNeQULnx6+omJ8oLmrbpfUwhdw2Ocd5FxcyK5irqigBNGrJoExeD5i y1NH9JMstjgvy+sYUI+ew6h7i4KcPR+KuODINAKVzdIs1YxZuJpBKuSeH0/vMYoe8emJ D/Rq70nQl5ksI48VGYH9czEyTcHlsMtLc3D89AsRX/lakUlYqiMAMT+/R+ARQatklwzw XbSzqC10ZhR3wprFEXyzMj11mMxtnIPo9RWPZRhQUNu/1DxJUStTLSAKlHQkuAaEgIhy LLaFSgMb0lIRXMfvzm9RyElhATVz02bQrBpdo3+yxXs37pFquAcuVqULXMq/DY3qLHqK hVbA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1761233512; x=1761838312; 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:in-reply-to:content-language:references:cc:to :subject:from:user-agent:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=nsj80Hy3gqeuqBDGEx5adbayLbRdTgfJ7Z8jK92NAu8=; b=q/pIwFNjuO1y6yqA0HbKwh1AQivDdwqHeZOs5ZiLFbIf9Rk69TTcfA1AwWHw09Ooj1 H6L8MvuHAv3VGrjO8NMtyyvOLcMXCAcPHuoVy+fqshW4U53ZTBDBlT+EGtZATa6JZ1Yg uo2zKzUPnf0CnzDWMRpcrnYBj29zs/q2pvX5rsDz6VXtZKtcD5NemG5mcRNqXcWYoPSd sP2DGuGSNhc0igzOVTLjMe91cfQSV5jCeer/R1SPmX+Mlqa+74/ew5ThLHTGZrLQzhKT tHoSxcSFAkgci7NNFZOkARaEOrIPGvFl/JXWR8jg8nQkhW9HC3iOixCDVGtFmU07a+Rv WISg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761233512; x=1761838312; 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:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to; bh=nsj80Hy3gqeuqBDGEx5adbayLbRdTgfJ7Z8jK92NAu8=; b=N9VMv/vwaYFUma2SL49G5sxSjnZVjkJuXMxm4TxQUd5uYtl8M5vnD4UpUYc3XmdCHN mdgjXfUx5XDxVrAZha1tyNgcwbTGYzYv7J2psBq6k3ljTemwB3tXGPy83/QuOWj7o2+Q L3FfI7KLrpf4BDltWiltQB/lHySN4TgqyC4oOO+OkQlICgb0mZFprdDmSbBV47djf7vy rn9KK5eFVwJYxJudlMZVU67vChWo4MmiENnBy3rkEQqLfNqmcIIS1FEJJmFF2wufvx5y nFShjlGrqSAc/s9FWQ4Ouxq401GyxNEFwn0a3BNnokfIMZxorK490t8T1Uo1epL4VbFd J26Q== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUIMUuB/EnNpJb29UzI7GXT8igkaVoLdj5T1/KhTIMaiyqlrQMtWsJWvmeCjaPB8jHsFnMh@ilbers.de X-Gm-Message-State: AOJu0Ywudlspr+XZV6jsa+SxKxGKluW+kzC3FQvCVBnoyQ+hyEnYqDgF SA2o+hOy2w3B8T2d/pU8PfGOwYMCh8wfXn7kAOpfL6JJMwdBm2kvwEKi X-Google-Smtp-Source: AGHT+IHqP3fWuyTfHQsGjhjwzi8K3fg/uKi+3SADnye36bgJanpgwm5FvsLc9yP/lUfAQKncBl04YQ== X-Received: by 2002:a05:6512:3ca8:b0:592:f7ee:6dcf with SMTP id 2adb3069b0e04-592f7ee7302mr730716e87.9.1761233511733; Thu, 23 Oct 2025 08:31:51 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Ae8XA+bOcuHyemNj3wkyWVYmcLvhUvb/3XuwpNI1pJWE9yXBEg==" Received: by 2002:a05:6512:3258:b0:564:4dfe:5a4f with SMTP id 2adb3069b0e04-592f54bb7aals216313e87.1.-pod-prod-08-eu; Thu, 23 Oct 2025 08:31:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXSA8rJ4S/5oTIPgcvw+Xj6NvrKjW9oMNLFPAj/sYnyfZ5oSKrYB8zAiqgcp3PglrN7/mOVEHzTxHrv@googlegroups.com X-Received: by 2002:a05:6512:398b:b0:576:fbdc:e3d9 with SMTP id 2adb3069b0e04-591d84f2f98mr7804396e87.14.1761233508566; Thu, 23 Oct 2025 08:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1761233508; cv=none; d=google.com; s=arc-20240605; b=jK0xjfFD0YHUgnLaxJgwSHQf3bZL9V8JGY13l9CyoG/xw1twi7B/A5uZJF2BA9fRLa fFhR2WT5hcoQ6P7g3dPDyQkeRC8hssCj+V+9EB3opd3niwfY2/7ocEyk7rclRK73YlrJ R3fVoses1Sxg15qqWRWz2kndTevXQom3ovZnoWp8F2/pDC3vRco9p4/J1UkecNpWwuSZ XiCrSYfgzhnUVpHvhr/SaxpeOuXnlH/cbH2UMTLvXj2TE+sK00gMpoZcDb4+PpN1Px85 z2vvLC+c5E6FwOsgbpnGnOnSD7Q6LgbcSKSnAGpxqzyn4Xzys4o5QiZOki2sBiDocZa2 ow9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id; bh=sQ4kDAwT3ADRb25tUVLhUCNBfX+idEa7ohNPavs3zV4=; fh=swUMZ89B+DLqgBfWD3rky1Vbw9NEVeJ73VKvz6Vd9Nk=; b=QkqNmbwP/3GSQQAHBq3+epIjMLDD3mo7aodGUi89c3NuXuzxUFm5o6K3Pk9btdZIsB K2Owrajpe8Xq0T/vaKVKl+yLNRFE79PluOTsJZWzrDBgYe/MUYd/bL2hibLDoa3mDgw0 nkl8iA+MDhkYpAAEt2f2b5zDvZRuG2WJkS80M+nslPYzTocO/stTAYvZgeFdITPrk4HF b/mGi89S2PY3uYLX38foZ3jVes400By+2Q39O5ivnI3OT3+fFQuWWIIpFqjDKxNEmghY B85dtNRf2doaoDg6grSdMvT3YQkW3N2zs98V9GQ+4T5NocDFWvo2kn5/pnUpIKy+7Upq wGow==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-592f4d3f104si66891e87.6.2025.10.23.08.31.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Oct 2025 08:31:48 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.24] (dslb-084-061-174-021.084.061.pools.vodafone-ip.de [84.61.174.21]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 59NFVlYK028522 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Oct 2025 17:31:47 +0200 Message-ID: <45cb0358-899a-4192-8728-ea4648114c27@ilbers.de> Date: Thu, 23 Oct 2025 17:31:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Zhihang Wei Subject: Re: [PATCH v2] debianize: add support for DEBIAN_BUILT_USING To: srinuvasan.a@siemens.com, isar-users@googlegroups.com Cc: felix.moessbauer@siemens.com References: <20251010104344.4144183-1-srinuvasan.a@siemens.com> Content-Language: en-US In-Reply-To: <20251010104344.4144183-1-srinuvasan.a@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed 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_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-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@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: Vj4fJY0ieSZN v2 was applied to next, thanks. Best regards, Zhihang On 10/10/25 12:43, srinuvasan.a via isar-users wrote: > From: srinuvasan > > This field is particularly important when creating a derivative of an upstream package (f.e: bmap-tools), > as SBOM tools (such as the proposed debsbom) can detect it and record the original package as a dependency > > Typically, this field declares that a binary package incorporates parts from another source package or binary > With this update, Built-Using can be set directly in debian/control using the DEBIAN_BUILT_USING variable > > Examples: > > A package using the source code from the gcc-4.6-source package: > Built-Using: gcc-4.6 (= 4.6.0-11) > > A package including binaries from grub2 and loadlin: > Built-Using: grub2 (= 1.99-9), loadlin (= 1.6e-1) > > Recipes can now simply define DEBIAN_BUILT_USING to populate this field automatically > > Note: Several upstream packages define this field, for example shim-signed, fwupd, and grub-efi-amd64-bin. > > Signed-off-by: srinuvasan > --- > doc/user_manual.md | 3 +++ > meta/classes/debianize.bbclass | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/doc/user_manual.md b/doc/user_manual.md > index 67f91973..4b5e0843 100644 > --- a/doc/user_manual.md > +++ b/doc/user_manual.md > @@ -1006,6 +1006,9 @@ Other (optional) customization variables include: > - `DEBIAN_PROVIDES` - declare a virtual package to satisfy dependencies > - `DEBIAN_REPLACES` - to replace a package with another > - `DEBIAN_BREAKS` - Packages which break other packages > + - `DEBIAN_BUILT_USING` - Used when a binary package includes parts of other source packages, f.e: by statically linking their libraries or embedding their > + code or data during the build. > + E.x: Built-Using: (= ) > > ### Prebuilt .deb packages from somewhere > > diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass > index 4989c601..9197bc25 100644 > --- a/meta/classes/debianize.bbclass > +++ b/meta/classes/debianize.bbclass > @@ -13,6 +13,7 @@ DEBIAN_PROVIDES ??= "" > DEBIAN_REPLACES ??= "" > DEBIAN_CONFLICTS ??= "" > DEBIAN_BREAKS ??= "" > +DEBIAN_BUILT_USING ??= "" > DEBIAN_MULTI_ARCH ??= "no" > DEBIAN_COMPAT ??= "10" > DEBIAN_CHANGELOG_TIMESTAMP ??= "3600" > @@ -74,6 +75,7 @@ deb_create_control[vardeps] += "DEBIANIZE_BUILD_DEPENDS \ > DEBIAN_PROVIDES \ > DEBIAN_REPLACES \ > DEBIAN_BREAKS \ > + DEBIAN_BUILT_USING \ > DEBIAN_CONFLICTS" > deb_create_control() { > cat << EOF > ${S}/debian/control > @@ -90,6 +92,7 @@ Depends: ${@ deb_list_beautify(d, 'DEBIAN_DEPENDS')} > Provides: ${@ deb_list_beautify(d, 'DEBIAN_PROVIDES')} > Replaces: ${@ deb_list_beautify(d, 'DEBIAN_REPLACES')} > Breaks: ${@ deb_list_beautify(d, 'DEBIAN_BREAKS')} > +Built-Using: ${@ deb_list_beautify(d, 'DEBIAN_BUILT_USING')} > Conflicts: ${@ deb_list_beautify(d, 'DEBIAN_CONFLICTS')} > Multi-Arch: ${DEBIAN_MULTI_ARCH} > Description: ${DESCRIPTION} -- 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/45cb0358-899a-4192-8728-ea4648114c27%40ilbers.de.