From 8d003968ca8776c067fc01628971911f0cbd3c52 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 28 Dec 2024 11:58:58 +0000 Subject: shim: Build without requiring root Closes: #1089432 --- debian/control | 1 + debian/signing-template.generate | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index a5e9d953..715644a9 100644 --- a/debian/control +++ b/debian/control @@ -3,6 +3,7 @@ Section: admin Priority: optional Maintainer: Debian EFI team Uploaders: Steve Langasek , Steve McIntyre <93sam@debian.org> +Rules-Requires-Root: no Standards-Version: 4.6.2 Build-Depends: debhelper-compat (= 12), gnu-efi (>= 3.0u), diff --git a/debian/signing-template.generate b/debian/signing-template.generate index 19a4fbcd..27aa9e58 100755 --- a/debian/signing-template.generate +++ b/debian/signing-template.generate @@ -26,7 +26,7 @@ template='./debian/signing-template' pkg_dir="debian/${pkg_name}/usr/share/code-signing/${pkg_name}" pkg_deb="${pkg_dir}/source-template/debian" -install -o 0 -g 0 -m 0755 -d "${pkg_dir}" +install -m 0755 -d "${pkg_dir}" subst < ./debian/signing-template.json.in > "${pkg_dir}/files.json" find "${template}" -type f -printf '%P\n' | @@ -35,7 +35,7 @@ do src="${template}/${path}" dst=$(echo "${pkg_deb}/${path}" | subst) - install -o 0 -g 0 -m 0755 -d "${dst%/*}" + install -m 0755 -d "${dst%/*}" subst < "${src}" > "${dst%.in}" chmod --reference="${src}" "${dst%.in}" done -- cgit v1.2.3