]> git.99rst.org Git - openwrt-packages.git/commitdiff
sudo: drop 020-no-owner-change.patch for a make override
authorAlexandru Ardelean <redacted>
Sun, 9 Aug 2026 10:00:37 +0000 (13:00 +0300)
committerAlexandru Ardelean <redacted>
Mon, 10 Aug 2026 17:17:56 +0000 (20:17 +0300)
The patch blanked INSTALL_OWNER in Makefile.in so the staged install does
not chown to install_uid/install_gid, which fails when building as an
unprivileged user. sudo already supports this: the top-level install rule
recurses with "INSTALL_OWNER=$(INSTALL_OWNER)" into every sub-make, and
sudo's own "package" target does "make install INSTALL_OWNER=" for exactly
this fakeroot case. Pass INSTALL_OWNER= via MAKE_INSTALL_FLAGS instead of
carrying a patch.

Signed-off-by: Alexandru Ardelean <redacted>
admin/sudo/Makefile
admin/sudo/patches/020-no-owner-change.patch [deleted file]

index 07e9a8d69e08a43439aa8a8341c4929132c701a9..13a5eb106d3384ba98a9ba2adecbd14ef0a95b64 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=sudo
 PKG_REALVERSION:=1.9.17p2
 PKG_VERSION:=$(subst p,_p,$(PKG_REALVERSION))
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_REALVERSION).tar.gz
 PKG_SOURCE_URL:=https://www.sudo.ws/dist
@@ -29,6 +29,10 @@ PKG_BUILD_FLAGS:=no-mips16
 
 include $(INCLUDE_DIR)/package.mk
 
+# Skip the install-time chown, which fails during the unprivileged staged
+# install; sudo propagates INSTALL_OWNER into every sub-make.
+MAKE_INSTALL_FLAGS += INSTALL_OWNER=
+
 define Package/sudo
   SECTION:=admin
   CATEGORY:=Administration
diff --git a/admin/sudo/patches/020-no-owner-change.patch b/admin/sudo/patches/020-no-owner-change.patch
deleted file mode 100644 (file)
index 1bd3006..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -75,7 +75,7 @@ EGREP = @EGREP@
- SED = @SED@
- INSTALL = $(SHELL) $(scriptdir)/install-sh -c
--INSTALL_OWNER = -o $(install_uid) -g $(install_gid)
-+INSTALL_OWNER =
- ECHO_N = @ECHO_N@
- ECHO_C = @ECHO_C@
git clone https://git.99rst.org/PROJECT