From patchwork Fri Dec 1 05:51:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1870474 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4ShN6F3YyBz24DQ for ; Fri, 1 Dec 2023 17:13:24 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1r8wlu-0001yL-Rj; Fri, 01 Dec 2023 06:13:07 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1r8wRC-00058s-CP for kernel-team@lists.ubuntu.com; Fri, 01 Dec 2023 05:51:43 +0000 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 64E943FB5A for ; Fri, 1 Dec 2023 05:51:40 +0000 (UTC) Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-3b8628c8706so224896b6e.1 for ; Thu, 30 Nov 2023 21:51:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701409899; x=1702014699; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L+aZk2nBre8BTmj6BSIE+3zQtwIC3QySD3Qg81mz4Jc=; b=WdTz34rUxALlMo8sZTkvehuI18/TP4emQqamsr7aHW4UDMODwgnqi7q/jHZAEi+RRz 1/J5W4hShUXW/Sane0k3X/+DaQUVlXZMFu3FO9+IpTmp0w13Fm258oHWvrraxezOo44U EJGsA4vsIqe1l+1BpoW3wjKBcr98QfAA/Kg0QdJvdPrIWendkYH//rRgsCTPo9vSjS16 tUROJDYyM7V2ZqwV4YLN2+cK7EW+qr5ZgncoVBDc28Bk3gJpvcRHdxJ6IoMNVQP7Ff5W tjR1prU0+VQseZziPv9/+7U+R1/2iAzLFur0oY3wok9SWNYg/43+0vxSghKTF4tliMA6 BOtg== X-Gm-Message-State: AOJu0YxpdiqERQ+vFNQSuQ+p6p1+Dfh7a2dnkG9RN3Tqi4PPcQrNWfOq gtjwFAiyPi/iWWcSzvryHvwYiHw/yqCniugkpqjI4wE3iWWVgP/g6np+KPwoJZ7CMThDFNtXZPt ll+c9GRi3R9xlLUlAgT8ue3DIWWpUwWzeC2QjOEwL2r0tjLGnJw== X-Received: by 2002:a05:6808:11c9:b0:3b5:84b0:6be6 with SMTP id p9-20020a05680811c900b003b584b06be6mr2133644oiv.47.1701409899214; Thu, 30 Nov 2023 21:51:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5DOW0FXtH5Gs9L766xPlBp7353wHy6+NTx0IvSVc2i6dT2iz+xkj5KHYZOh4dBS+Pm3tzYw== X-Received: by 2002:a05:6808:11c9:b0:3b5:84b0:6be6 with SMTP id p9-20020a05680811c900b003b584b06be6mr2133636oiv.47.1701409899025; Thu, 30 Nov 2023 21:51:39 -0800 (PST) Received: from zoe.. ([2001:f74:8f00:c00:6aff::1001]) by smtp.gmail.com with ESMTPSA id u30-20020a056a00099e00b006cb7feae74fsm2151188pfg.164.2023.11.30.21.51.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:51:38 -0800 (PST) From: Masahiro Yamada To: kernel-team@lists.ubuntu.com Subject: [m/unstable PATCH 1/2] UBUNTU: SAUCE: Enable rootless builds Date: Fri, 1 Dec 2023 14:51:31 +0900 Message-Id: <20231201055132.1203555-2-masahiro.yamada@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231201055132.1203555-1-masahiro.yamada@canonical.com> References: <20231201055132.1203555-1-masahiro.yamada@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Let the build driver (e.g. dpkg-buildpackage) know this can be built without root privilege. DEB_RULES_REQUIRES_ROOT will be set to "no" instead of "binary-targets". Signed-off-by: Masahiro Yamada --- debian.master/control.stub.in | 1 + 1 file changed, 1 insertion(+) diff --git a/debian.master/control.stub.in b/debian.master/control.stub.in index e2a0b55538d4..4813966b5076 100644 --- a/debian.master/control.stub.in +++ b/debian.master/control.stub.in @@ -2,6 +2,7 @@ Source: SRCPKGNAME Section: devel Priority: optional Maintainer: Ubuntu Kernel Team +Rules-Requires-Root: no Standards-Version: 3.9.4.0 Build-Depends: debhelper-compat (= 10), From patchwork Fri Dec 1 05:51:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1870473 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4ShN6F3WtTz1ySh for ; Fri, 1 Dec 2023 17:13:24 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1r8wlx-0001ym-P8; Fri, 01 Dec 2023 06:13:09 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1r8wRF-00058z-CI for kernel-team@lists.ubuntu.com; Fri, 01 Dec 2023 05:51:45 +0000 Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 090523F65A for ; Fri, 1 Dec 2023 05:51:42 +0000 (UTC) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-6cde5cf72a0so2016175b3a.3 for ; Thu, 30 Nov 2023 21:51:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701409900; x=1702014700; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NRx2d1gGoMXxjw53GDdKuwQILWV8JJi7uU1+ORd+kBM=; b=loKQeacyKZjRh54JZ/xloRTVZpvtCl+F+HOIVfRjPDvlhw1UIlrw2RWDdq0IUMNDPA nb69ItTsdG+HeiRggJoObyglWht0B2EFfa/eT0WoS4Qw9ff7j7Tz/1l7A9N+qtQYg3lD YKrgqTOH4A2sucuIj+i9VtfDlOdnrxK5dMSax/hN6ygmP2ty+DpfBwMECkf+OpJQqmUu ZrRiZhLo0hMorbYHideXqahwjgdDgkP1r8G/WiahuU4V8EVCSXhBphN8tCJu611Fsd/O YNLpKqDMN/+hfU+z/N0YgZiOIAo/Cfjnffa21bMYA7jz7DhaVcpqC60x5lhOtcrMfj72 2gyw== X-Gm-Message-State: AOJu0YzcikqHX+2feNgEYeVdiWDguTat2BCs/xBI+R0ePdJRloHJ5kI8 odkt5TvxROpMjpQ/aEexH+k/XtYCy7JDKh0XpZ+20FsmJRjDn4HgmUpC/JeiQjs+sxym3lVvxdQ alnNovSx0nySenp2EufWevH6jFCvmlbwJqYo3xMsyba0SkUgwng== X-Received: by 2002:a05:6a00:3a0b:b0:6cb:bb92:1ce6 with SMTP id fj11-20020a056a003a0b00b006cbbb921ce6mr29472479pfb.18.1701409900490; Thu, 30 Nov 2023 21:51:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnf/pe76T3VzUWQfdPC3DyiB+RS84gkm8fp8sokUQkRr8mSIygqHfYQ0IF+vSyNMajDdw8gw== X-Received: by 2002:a05:6a00:3a0b:b0:6cb:bb92:1ce6 with SMTP id fj11-20020a056a003a0b00b006cbbb921ce6mr29472469pfb.18.1701409900157; Thu, 30 Nov 2023 21:51:40 -0800 (PST) Received: from zoe.. ([2001:f74:8f00:c00:6aff::1001]) by smtp.gmail.com with ESMTPSA id u30-20020a056a00099e00b006cb7feae74fsm2151188pfg.164.2023.11.30.21.51.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:51:39 -0800 (PST) From: Masahiro Yamada To: kernel-team@lists.ubuntu.com Subject: [m/unstable PATCH 2/2] UBUNTU: SAUCE: Allow to run debian/rules without (fake)root Date: Fri, 1 Dec 2023 14:51:32 +0900 Message-Id: <20231201055132.1203555-3-masahiro.yamada@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231201055132.1203555-1-masahiro.yamada@canonical.com> References: <20231201055132.1203555-1-masahiro.yamada@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" While DEB_RULES_REQUIRES_ROOT is set by build drivers like dpkg-buildpackage, we often run debian/rules directly. Typing "fakeroot debian/rules ..." can be tedious, so we introduced a shorthand alias fdr="fakeroot debian/rules" By setting DEB_RULES_REQUIRES_ROOT=no, debhelpers will function as intended even when debian/rules is directly executed without fakeroot. Signed-off-by: Masahiro Yamada --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index b78aff60ce24..787f412dba0c 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,9 @@ # (this increases performance and avoids hard-to-debug behaviour) MAKEFLAGS += -rR +# Allow to run debian/rules directly without root +export DEB_RULES_REQUIRES_ROOT := no + .NOTPARALLEL: DEBIAN=$(shell awk -F= '($$1 == "DEBIAN") { print $$2 }'