From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH bullseye proxmox-backup 2/2] d/control: set R-R-R to run binary d/rules targets as root
Date: Wed, 2 Jun 2021 12:14:38 +0200 [thread overview]
Message-ID: <20210602101438.1145922-3-f.gruenbichler@proxmox.com> (raw)
In-Reply-To: <20210602101438.1145922-1-f.gruenbichler@proxmox.com>
the build still requires root to make helper binaries setuid
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
d/control is autogenerated, so if conflicts arise there just ignore that
hunk..
Makefile | 2 ++
debian/control | 7 ++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 2ffd2fb8..5d361ff3 100644
--- a/Makefile
+++ b/Makefile
@@ -92,6 +92,8 @@ build:
sed -e '1,/^$$/ ! d' build/debian/control > build/debian/control.src
cat build/debian/control.src build/debian/control.in > build/debian/control
rm build/debian/control.in build/debian/control.src
+ # not yet settable via debcargo.toml, required for setuid binaries in `make install`
+ sed -i -e 's/^Rules-Requires-Root: no/Rules-Requires-Root: binary-targets/g' build/debian/control
cp build/debian/control debian/control
rm build/Cargo.lock
find build/debian -name "*.hint" -delete
diff --git a/debian/control b/debian/control
index baa2d13f..dfddca90 100644
--- a/debian/control
+++ b/debian/control
@@ -1,8 +1,8 @@
Source: rust-proxmox-backup
Section: admin
Priority: optional
-Build-Depends: debhelper (>= 11),
- dh-cargo (>= 18),
+Build-Depends: debhelper (>= 12),
+ dh-cargo (>= 24),
cargo:native,
rustc:native,
libstd-rust-dev,
@@ -106,10 +106,11 @@ Build-Depends: debhelper (>= 11),
texlive-xetex <!nodoc>,
xindy <!nodoc>
Maintainer: Proxmox Support Team <support@proxmox.com>
-Standards-Version: 4.4.1
+Standards-Version: 4.5.1
Vcs-Git: git://git.proxmox.com/git/proxmox-backup.git
Vcs-Browser: https://git.proxmox.com/?p=proxmox-backup.git;a=summary
Homepage: https://www.proxmox.com
+Rules-Requires-Root: binary-targets
Package: proxmox-backup-server
Architecture: any
--
2.30.2
next prev parent reply other threads:[~2021-06-02 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-02 10:14 [pbs-devel] [PATCH proxmox-backup 0/2] bullseye compat Fabian Grünbichler
2021-06-02 10:14 ` [pbs-devel] [PATCH bullseye proxmox-backup 1/2] update to zstd 0.6 Fabian Grünbichler
2021-06-02 10:14 ` Fabian Grünbichler [this message]
2021-06-14 11:03 ` [pbs-devel] applied: [PATCH proxmox-backup 0/2] bullseye compat Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210602101438.1145922-3-f.gruenbichler@proxmox.com \
--to=f.gruenbichler@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox