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, 19 Aug 2025 15:27:50 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-qt1-f190.google.com (mail-qt1-f190.google.com [209.85.160.190]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 57JDRngV023966 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Aug 2025 15:27:49 +0200 Received: by mail-qt1-f190.google.com with SMTP id d75a77b69052e-4b109c7ad98sf194719201cf.3 for ; Tue, 19 Aug 2025 06:27:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1755610063; cv=pass; d=google.com; s=arc-20240605; b=CGa+/YbkgYTVjmuXGfvP9n/19RDpbIe0cR+sM9vAYAtjz7xnO6WigNdmJDBWjqdxy4 mmCZficZ5edXkgfSgIbB9RodktqA+K6DdMnpn9dkBjozpaC4R4mQJELKb/5qAvXNIuUZ vobHPR6ynTMMdW3Yh4HU0RD6/4Q/JibP+l2b410RSAkLpGWpqbSwWm4e59NGgV6XsXX5 9S5mEB500F33HHvX5o4ecqG8YdMPYlRsj9RONtb8mYGRMUPuM0x8H9Dk0+9vbXIo8G5H 8E8+yTNp1ts6krWgC70OT4aJROuw6duknH8mX6LkXtOUaDKHriZTwdsOpKjhBU9rh4Se aX+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:content-transfer-encoding :in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=DXQcQvn2UgovRcef6GLEXEpMyMx6PQvEla/ooGdVoLk=; fh=HcOxi+6NXdrxoVRMQinUB/3ICLh+heloV2OpvkVVMCM=; b=jD9z0ZTh5vC7HVAjo6fQligwLq4od1lF5JSUxn1iynpQoPApCX+xO7blvqoVQa10c5 xQUTz+F124udepADW8/qmWQYVzl1ZReJRumnIvd2xQ37MLAcqg2+xLGh4Hgqy462o7Q/ prDKXqXWJe9XOjN0TWXA/NMWss0evwf4r4F1F8aN/uygJc8Zmpx25Qbq0c+CF7YgI14Z 7yvBWpH7U2TTl6+0ia3xSD8AHtvZHfjE9XmMcp3n+LRBL+gkdGQAmZS6HutsBT6CN/2R uEZfWx04uAAapSfqwwzTZjSLuuqJgTdmasq89LO4vEosB8yf2441mgCvXxjlKI0Csje1 TB5Q==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of itrue@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=itrue@emlix.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1755610063; x=1756214863; 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:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=DXQcQvn2UgovRcef6GLEXEpMyMx6PQvEla/ooGdVoLk=; b=BFRrVSUQTNvz/sZVIaDp4410aXEvV66ywlHKObvB32IyRFhh4TJk4V5R9duKmVRGPE UNuU+PqJaKRY41s70cpUnnr98PunfMdObELL4jF1XO7WieFpIpgp40tCwvN+V+AN0PWg BY5MICLaD0160IAOUlY25p3AbFNPDKKtK1s8ocwMbn3cC67nSMbtNruyYpQIk4iRs/ku UqRutpKq5VKNzSv/l9LD8n1I7BdSYN9Bpjyv7XeNhO07RHhDtsJYTYqHFWjEv++Zcvpz PShVJyV7XYy4CgQwGzwXrQdwMnoEh2rq5yC3eWb8z3eNYN1TN+UzEo1tcFG4SpK5vqwh TBmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755610063; x=1756214863; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-beenthere:x-gm-message-state:sender:from:to:cc:subject :date:message-id:reply-to; bh=DXQcQvn2UgovRcef6GLEXEpMyMx6PQvEla/ooGdVoLk=; b=RfAqdtk7q2DG9yHSSg/63l4bYUnWZnoOHI4HcvQHBBLTU3rG6zVy+qmX5sQ9ESTWyW fjGvfwpyuNOSAf/4jN89Xt+PtvA9g8f9tvkloDwrfCpypG/NSYZ0/ihIWcB0Y3fa9IaA 3MmVBAJ8sro3Xeo61tzBRniWNxIleOgPcAVyF31IXwd6OkjkqcBmfgVnyD7J7fRovlAA QfYbihhU+YNSRisBv3+vRO348tnKWeSUR4ZNJjgyJpt0f/xjdEF9FKrsIFdtCNCjetT3 Lvwx4MbfSEJRkukmQofKem2QTuFhPCCc7l2xIyFLtanHCDpr7wX7ETgJc+aNVuLRyMsl 2JBA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVJV0Oc5DJtOs2NkNOO3TG8efyCQmBYX+Yp67D5nVvsK9yLrLAKs9aAk01I31T73KS267Fd@ilbers.de X-Gm-Message-State: AOJu0YxngLo3fc88J/z90aszfVQMARIm9T8yY5dEA+iGDgcuHjjHNPhG u0ogKufikMKRDawP0sxOxp1wM9d2ZI0kG6keaXm4Fw9u6x5HBJpPaA4R X-Google-Smtp-Source: AGHT+IEph43IvP3OhJBsrwa5i1JyEIRHtEJ+F0dWOazORozoNd8wVGQRmBmmk07os1tASGOwUALq3g== X-Received: by 2002:a05:622a:48c:b0:4af:f25d:e2b0 with SMTP id d75a77b69052e-4b286c35a57mr27992451cf.8.1755610063391; Tue, 19 Aug 2025 06:27:43 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=AZMbMZepgEtVyQ1RTPtn7BhsU2YBUGXoPa9Bra570abSfWZE/A== Received: by 2002:ac8:5981:0:b0:4b0:889b:bc70 with SMTP id d75a77b69052e-4b10abd7b5bls79528021cf.2.-pod-prod-04-us; Tue, 19 Aug 2025 06:27:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVXH+BHs5WvFSDZJG6wuYpnCDYc5XeKPy/02814/4SBme8TOWOiArG5AzLRwxN9udc8Fj75n1lSb8+g@googlegroups.com X-Received: by 2002:a05:620a:371a:b0:7e8:1cff:72fa with SMTP id af79cd13be357-7e9f3397900mr295773485a.59.1755610062711; Tue, 19 Aug 2025 06:27:42 -0700 (PDT) Received: by 2002:a05:6504:604d:b0:2b1:9db7:3101 with SMTP id a1c4a302cd1d6-2c0a295c95fmsc7a; Fri, 15 Aug 2025 06:09:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWrP302Po+PvR1f+7qENocpS3Mr4BX/zgNplvxjHd+tGyttHBztG75uX7AfQBSd6XRh5ELjbFSm9SfQ@googlegroups.com X-Received: by 2002:a05:6512:3b09:b0:55b:574c:6c01 with SMTP id 2adb3069b0e04-55ceeb8e4admr552139e87.29.1755263359572; Fri, 15 Aug 2025 06:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1755263359; cv=none; d=google.com; s=arc-20240605; b=iPQV1STxPT3wVW0mAzY11iCt+NGAFE5Tx+YxI56+I4pHlI1Y4VEqNiZXUju6Q9aA5C zj72JfwiLVPD50c+2awxOn2+jwJe7cnhwPdEArNG85q4/3z1Cpqg//TaYjALqwT/XX5Z YnvQ4nV33eATP0Nj4OrpvXFEVPd31MOhHD+rJYQbZkTt/wa+nS019XKlyeq+5CONT9w0 inlXS2WkvlNcKHVEqxGfwzWXW7OfGiGb51GC+8xwBB9H3esuQOIjiqame2xaVPc/G4/e IOPj66WzcHwLbKmMxrPgCea23k0JkQa3fGgy9W7Vh4f7L/IjfmXrrKfd7PZcL34jg8BO wZww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=zHvK75fGCGIvtAjrOUi5Q5xyMkodmblzAGgzNVvlehk=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=e54Om7XsR9RphdCcs2BPXID0YtTgEE+I9dwqVR0U9EXxC3SkNjNuaUci6GTsktwXV+ hZ3pxtHfT4jk2rZ6EygDLJNVBpR/gy9BX8Nz5PThOBGpBBSo6Dsq0vgwL3IVXHtW/fyv p7U3v2WPTaVSuU0vZF+aXDz142I9tE37JX1RGwJjmPMKWEu5kNZHAMiZAbweYJE2jzsI WOQobusUSF8wxceT11KBPYU1s8+yBJsM8mA2N1dJ7S0AH/lTs7Ew9/QdX8uUlrlGLrCq 1dt/U/fsqOA7O3GERiHokYysGMp6+7yWH46F30tjjoDLrQdZIPGX+pwfOit5rrvtyKUu Ek0g==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of itrue@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=itrue@emlix.com Received: from mx1.emlix.com (mx1.emlix.com. [178.63.209.131]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-55cef3bebd4si26260e87.8.2025.08.15.06.09.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Aug 2025 06:09:19 -0700 (PDT) Received-SPF: pass (google.com: domain of itrue@emlix.com designates 178.63.209.131 as permitted sender) client-ip=178.63.209.131; Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id C66725F8CB; Fri, 15 Aug 2025 15:09:18 +0200 (CEST) Message-ID: <13722340-f9b2-4bb0-ae49-90156c7e7087@emlix.com> Date: Fri, 15 Aug 2025 15:09:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] debianize: set Rules-Requires-Root in debian/control To: Jan Kiszka , isar-users@googlegroups.com References: <20250814143405.204360-2-itrue@emlix.com> Content-Language: en-US From: Isaac True In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Original-Sender: itrue@emlix.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of itrue@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=itrue@emlix.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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-TUID: CkbSJmUTo9kd > > Hmm, but the Policy says it's default-no anyway: > >=20 https://www.debian.org/doc/debian-policy/ch-controlfields.html#rules-requir= es-root > > Did that default change recently? According to the deb-src-control man page=20 (https://www.man7.org/linux/man-pages/man5/deb-src-control.5.html) this=20 only became the default with dpkg >=3D 1.22.13, which is relatively=20 recent. Anything with a dpkg version earlier than that (which includes=20 Ubuntu Jammy and Noble) uses `binary-targets` as the default, which=20 calls fakeroot. > This is a change that first of all requires an entry in > RECIPE-API-CHANGELOG.md. But you also need to explain if this is fine > down to buster (we still support building for it, yes, it's ELTS). And > you need to ensure that it will not change anything for existing layers > - which is in conflict with the expressed intention of this change. Understood. Would you prefer that it doesn't add the field by default in=20 order to maintain backwards-compatibility, and instead only add the=20 field when the value is set? Cheers, Isaac On 15/08/25 15:01, Jan Kiszka wrote: > On 14.08.25 16:34, Isaac True wrote: >> Setting "Rules-Requires-Root: no" in the debian/control file avoids >> unnecessarily calling fakeroot in the build environment. Packages which >> require root can override the new "DEBIAN_RULES_REQUIRES_ROOT" variable >> with the desired value. >=20 > Hmm, but the Policy says it's default-no anyway: >=20 > https://www.debian.org/doc/debian-policy/ch-controlfields.html#rules-requ= ires-root >=20 > Did that default change recently? >=20 >> >> This is specifically useful when using dpkg-raw, as it no longer needs >> fakeroot to create the packages. This provides a considerable speedup in >> some environments (e.g. systems with very high open file descriptor >> limits and specific versions of fakeroot). >> >> Signed-off-by: Isaac True >> --- >> meta/classes/debianize.bbclass | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbc= lass >> index 4989c601..eeebea69 100644 >> --- a/meta/classes/debianize.bbclass >> +++ b/meta/classes/debianize.bbclass >> @@ -16,6 +16,7 @@ DEBIAN_BREAKS ??=3D "" >> DEBIAN_MULTI_ARCH ??=3D "no" >> DEBIAN_COMPAT ??=3D "10" >> DEBIAN_CHANGELOG_TIMESTAMP ??=3D "3600" >> +DEBIAN_RULES_REQUIRES_ROOT ??=3D "no" >> DESCRIPTION ??=3D "must not be empty" >> MAINTAINER ??=3D "Unknown maintainer " >> =20 >> @@ -74,7 +75,8 @@ deb_create_control[vardeps] +=3D "DEBIANIZE_BUILD_DEPE= NDS \ >> DEBIAN_PROVIDES \ >> DEBIAN_REPLACES \ >> DEBIAN_BREAKS \ >> - DEBIAN_CONFLICTS" >> + DEBIAN_CONFLICTS \ >> + DEBIAN_RULES_REQUIRES_ROOT" >> deb_create_control() { >> cat << EOF > ${S}/debian/control >> Source: ${BPN} >> @@ -83,6 +85,7 @@ Priority: optional >> Standards-Version: 3.9.6 >> Maintainer: ${MAINTAINER} >> Build-Depends: ${@ deb_list_beautify(d, 'DEBIANIZE_BUILD_DEPENDS')} >> +Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT} >> =20 >> Package: ${BPN} >> Architecture: ${DPKG_ARCH} >> >=20 > This is a change that first of all requires an entry in > RECIPE-API-CHANGELOG.md. But you also need to explain if this is fine > down to buster (we still support building for it, yes, it's ELTS). And > you need to ensure that it will not change anything for existing layers > - which is in conflict with the expressed intention of this change. >=20 > Jan >=20 --=20 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 --=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/= 13722340-f9b2-4bb0-ae49-90156c7e7087%40emlix.com.