[pbs-devel] [PATCH bullseye proxmox-backup 2/2] d/control: set R-R-R to run binary d/rules targets as root

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Jun 2 12:14:38 CEST 2021


the build still requires root to make helper binaries setuid

Signed-off-by: Fabian Grünbichler <f.gruenbichler at 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 at 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






More information about the pbs-devel mailing list