sudo: drop 020-no-owner-change.patch for a make override

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 <alex@shruggie.ro>
pull/30218/head
Alexandru Ardelean 2026-08-09 13:00:37 +03:00 committed by Alexandru Ardelean
parent 3caf694947
commit bfb4cce23a
2 changed files with 5 additions and 12 deletions

View 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

View File

@ -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@