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; Mon, 15 Sep 2025 18:00:31 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f55.google.com (mail-qv1-f55.google.com [209.85.219.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 58FG0SxX012257 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 15 Sep 2025 18:00:29 +0200 Received: by mail-qv1-f55.google.com with SMTP id 6a1803df08f44-782fb2a5e9asf12666146d6.3 for ; Mon, 15 Sep 2025 09:00:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757952023; cv=pass; d=google.com; s=arc-20240605; b=iH/+hAQzZgNlGVwxLNt/KqEPyMkAnFtPni/Vxz3VzMRLdKJRSPaY2JOMARU5oCaU4a Cft/UI/NijVcORmT0C/TI15PgnA9cHjRrwQRl/YgWBYnaMzk7q3gWIDefPCxqiEmDEtK 7f1/YwOtkJZCOZamm1CSTK7l2weknGPFPVRZxxIRwRyy3dSHD5r2dRjGUIOIJc7V0mHw eRBNJ9mkcxI8RyJe8ddVYQW+NRIXnU4vCEhGlNAvAUVGry0mvgOOLyhgpM9NLgjY+2dE ggO4+xpi885zDkwUKtI36un7hRR8C8K59Vtl38iFuv9aWl/SQJD8ta/TVY+EGxKePPFn Q1FA== 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=+p8FpybyNlhx4OXC3dWaozd8+98sIEkqw0QY6bHbSKk=; fh=8jt4SrbPzCUKiTDO5+s8elhEI+eF4NxtzWUnWmLtO+Q=; b=klmip7K5B4QxBhF1LJruHqgBDMjKozSwQ1rBO8WejkgsUP3JgqyX76YiDqIRpFkqRF NQqxWGNxyRIKxdr6uSNs8TJ1QnOtfdW2WWee7I7A6SBFykafPdCqA32lbhENJt4aciFn /+e7El4FlDFX9hFPZ7QNUCpNjhTmnF5kYZE+a0wcjcRKLvmyVAH5B3/1X1DThyfEzRmG 06M4fQhmAPhBJ/MXQ7qDr+B8GDZVTd22DLIPzjzvQwsTCx/Mek4ZDLx1j7sQSDUkpzHv O+L/BUnUYYE2UcWJTX4ZZ6qAHnzI4ogyottw181W3r3M4u0lGyjhKMdKRTtCu24zNH9s oB0w==; 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=1757952023; x=1758556823; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=+p8FpybyNlhx4OXC3dWaozd8+98sIEkqw0QY6bHbSKk=; b=aBEq1env3vDE0Y6Xu6Z1Co+fAZpK4Y6LE6C5kXViYNvnA0bf+LXtZJi8Zh1Qbyuovv ILvUF77M4hPSjRuRf9VF9zXFiQg7i1evztNaVaVCtTZCw5quxrSAmH8AY3Qq6UDNpp3+ I48hLDdYBsnoCs7z4b+LrczRCWi70qtt9qbEnJHdb8JT3K2t9T2Fw33DCU3r2YuQ/mHk V3H7aUaj5sLhsyEDvHaIWJyJ+1WwnVsHjB+i0nScszes7sLBpp2M9JCvbN1wO9qF0Sy3 AmZNkOjJ5Zry62wSE3scsArXCUCyk1Jf+doFTsz4KzMTdGPcokxo18VDyiCFgNsZTji5 sY6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757952023; x=1758556823; 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:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=+p8FpybyNlhx4OXC3dWaozd8+98sIEkqw0QY6bHbSKk=; b=GifdlIFfgYDt3iHUPH0sg70NA4i8sRl5PikUtLKQ8bLuW46yseMrpvo2i5sWH7adyU HTqSrOKRoxoOu/3Tyo9ZjMPdFtSrZ0a74MfCezcxN5nt0j/fIhlNs3AQCBU/CihZeXiX uA+mbv/wXxqN1XEILe0IFA91uRnw8IyE6DaeW+0BthKFUPTmBjYqSNVKDPp32C6mzbZq Ezv+4j3l8mDKanXUNTYQhXntPa5pDu1PwoTvQZ28Q6imu0VdqL0QHf1nBlqydI97FxgL ixT7lytYs88BGbvTzaD2Zxdvo6zQ5uNDzA3l1M3NRQ60J1XKeQR7wlhdjRso5JGWHi6F gwIQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXjaO+4rVhhhgy+CX8GFoXKqpYKF4OG9T8fl8X1jnvDuLQ2zKU5ovc83LJe8B6ohKx1C8uk@ilbers.de X-Gm-Message-State: AOJu0Yyk/owMcXXOL+3tEtHj1fw0izj87OzEvnf549FCTQ7+sniz8slx 3e2D6V+mK3obLaVr66Y8S0VuQxFQuYS/QwxNHOs1t6N6SdYX9XCNvUZW X-Google-Smtp-Source: AGHT+IHIVehhlrrb7OmTrMOHbYPh8ya9aszC8oZC5eSzf21q0FlDrjpLkRdnUo7gHKKvRWyU6T+8DQ== X-Received: by 2002:a05:6214:2b0e:b0:71d:478f:e0cd with SMTP id 6a1803df08f44-767bc9e64fdmr143901216d6.26.1757952022255; Mon, 15 Sep 2025 09:00:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARHlJd7Geop2+s8BeDjwoAy3lrJ6O8fXqWa52IWW3eXVz+oZ7w== Received: by 2002:a05:6214:ac1:b0:70d:9340:3384 with SMTP id 6a1803df08f44-762e48bd695ls66957016d6.2.-pod-prod-08-us; Mon, 15 Sep 2025 09:00:21 -0700 (PDT) X-Received: by 2002:a05:620a:ac07:b0:823:51b0:3a75 with SMTP id af79cd13be357-82400758717mr1868046285a.39.1757952021676; Mon, 15 Sep 2025 09:00:21 -0700 (PDT) Received: by 2002:a05:600c:c16f:b0:45f:2aac:40be with SMTP id 5b1f17b1804b1-45f316eaac5ms5e9; Mon, 15 Sep 2025 07:52:52 -0700 (PDT) X-Received: by 2002:a05:6000:616:b0:3eb:b80c:cea0 with SMTP id ffacd0b85a97d-3ebb80cd132mr1332009f8f.4.1757947970475; Mon, 15 Sep 2025 07:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757947970; cv=none; d=google.com; s=arc-20240605; b=jFr+M/560cmbPFb5EXsWq91J+c5U2T/Fuz/xKpxY+Wo3R0a5tp7mzywFBO95wVc5q8 gnVpsdlknASiYv9DkIVpCbfanNdE+1SLojtRFajNr35ijCxcXGrCTueL3G5fDsSkmJAi 8omAcwvODz5qO8oEjFnYCw7yhpDOp7Cui76+N25dtZR1SiK6qwAKCNoVd29bKI3gBp/n XguRAr7r1qnVZnHil0zInkTBdTqyB4K4kCzQkwpiSfHBa0LjxOGUZf+0SEjfq6nAJMgN umJwji4kDBfRA4PAEuOEYE/MHKv3dPuIMOE8dQA0QEPRlwebngvAyAP4PamauGSrzZWB UMyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=rp2ZBhPiwKsH4tUztgOdoeg2IkffoAh+nJQuQkKM9SM=; fh=vRrjvjDC0Nm912rKb+hserwyuGVHai4IaHlHCTH5jzE=; b=c5YXIg8hxWjPI3QvKilr7fpZERsqmaOyv+U8+2k/o7qIUacoIVcEijWT1L62qqi5ct uprOA0/8uwSCe/GDFHG8ZobFIhSqPAPPcrk+i/k7RZSW+9VVpPWGgthj9NmVvhMM66zu m/iZjx4BjB0U/p91pBrmwl0gvW39lMUlK4vrQ40fnsjNyxGPMAQHcJJy7HIICJoo03Ao Upx9f7DazcE7Fdcp9KFWI1qsWRTb1UjRIjLNYSIrmarXFo2QNeSRUpUVEwi9zvhyUmda vg9mBfpGG35KyOVLxon7Upz6GCYLWFg0JhyFwnHMy5j/bp4i9arubO47QGCl2hOZeWsE dZUA==; 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 5b1f17b1804b1-45f278da733si386885e9.0.2025.09.15.07.52.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 07:52:50 -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 047A45FDC1 for ; Mon, 15 Sep 2025 16:52:49 +0200 (CEST) From: Isaac True To: isar-users@googlegroups.com Cc: Isaac True Subject: [PATCH v2] debianize: allow setting Rules-Requires-Root Date: Mon, 15 Sep 2025 16:49:26 +0200 Message-ID: <20250915144925.274032-2-itrue@emlix.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250814143405.204360-2-itrue@emlix.com> References: <20250814143405.204360-2-itrue@emlix.com> MIME-Version: 1.0 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 Content-Type: text/plain; charset="UTF-8" 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_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: xKaOhZTV/KFq Add a new variable "DEBIAN_RULES_REQUIRES_ROOT" which can be used to control the value of the "Rules-Requires-Root" parameter in the debian/control file. If this variable has no value (the default behaviour), nothing is added. Otherwise, it appends "Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT}" to the Source section of the debian/control file. This can be useful when using dpkg-raw, as setting this value to "no" skips calling `fakeroot` during the package build process, which can provide 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 --- Changes in v2: - Add information to RECIPE-API-CHANGELOG.md - Only add Rules-Requires-Root if the DEBIAN_RULES_REQUIRES_ROOT variable has been set RECIPE-API-CHANGELOG.md | 8 ++++++++ meta/classes/debianize.bbclass | 17 ++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index 8468717d..f0b94c2f 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -727,3 +727,11 @@ Changes in next This was never documented and never had practical relevance. `oci-archive` is the useful OCI image format that can be imported, e.g., by podman. + +### Allow setting Rules-Requires-Root + +Recipes based on the `debianize` class can now set the +`DEBIAN_RULES_REQUIRES_ROOT` variable to control the value of the +`Rules-Requires-Root` setting in the `debian/control` file. If this variable is +unset (the default), `Rules-Requires-Root` will not be added. Otherwise, +`Rules-Requires-Root` will be added and set to the value of the variable. diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass index 4989c601..acc5a1ba 100644 --- a/meta/classes/debianize.bbclass +++ b/meta/classes/debianize.bbclass @@ -16,6 +16,7 @@ DEBIAN_BREAKS ??= "" DEBIAN_MULTI_ARCH ??= "no" DEBIAN_COMPAT ??= "10" DEBIAN_CHANGELOG_TIMESTAMP ??= "3600" +DEBIAN_RULES_REQUIRES_ROOT ??= "" DESCRIPTION ??= "must not be empty" MAINTAINER ??= "Unknown maintainer " @@ -74,8 +75,10 @@ deb_create_control[vardeps] += "DEBIANIZE_BUILD_DEPENDS \ DEBIAN_PROVIDES \ DEBIAN_REPLACES \ DEBIAN_BREAKS \ - DEBIAN_CONFLICTS" + DEBIAN_CONFLICTS \ + DEBIAN_RULES_REQUIRES_ROOT" deb_create_control() { + # Add Source section cat << EOF > ${S}/debian/control Source: ${BPN} Section: misc @@ -83,6 +86,18 @@ Priority: optional Standards-Version: 3.9.6 Maintainer: ${MAINTAINER} Build-Depends: ${@ deb_list_beautify(d, 'DEBIANIZE_BUILD_DEPENDS')} +EOF + + # If a value has been set, add the value of DEBIAN_RULES_REQUIRES_ROOT to + # the control file. + if [ -n "${DEBIAN_RULES_REQUIRES_ROOT}" ]; then + echo "Rules-Requires-Root: ${DEBIAN_RULES_REQUIRES_ROOT}" >> \ + ${S}/debian/control + fi + + # Add Package section proceeded by an empty line to separate it from the + # previous section. + cat << EOF >> ${S}/debian/control Package: ${BPN} Architecture: ${DPKG_ARCH} -- 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/20250915144925.274032-2-itrue%40emlix.com.