From b6626e0e23ee817383e29fc1f2428bca169a20db Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 30 Jun 2020 02:02:41 -0400 Subject: ob-buildopk: Don't chown data This partially reverts commit 483800ef9ecf5ce98c0f6894e222bf08a68bb617. --- diff --git a/NEWS b/NEWS index 6a1231f..8533dbc 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,13 @@ Utilities: directories. - ob-gencontrol qualifies names in "Package" fields. - ob-buildopk and ob-genchanges qualify names in "*.opk" file names. + * ob-buildopk no longer sets the owner and group of all data files to + 0:0, as done since version 4.1.0. This is not expected to change + file owners or groups in any ProteanOS packages at this time, + because: + - oh-fixperms (used in most packages) also sets owners and groups + - "build" makefile "install" targets are run with (fake) superuser + privileges. libopkbuild: diff --git a/TODO b/TODO index fea7b29..9bae447 100644 --- a/TODO +++ b/TODO @@ -20,9 +20,6 @@ Functional Changes * Someday restore (removed in commit 3cc4e19) and implement `ob_summarize_package_arch()` and `ob_summarize_package_plat()` to queue source packages for build daemons. - * ob-buildopk does this: - find "${binary}.control" "${binary}.data" | xargs chown -h 0:0 - Should it?? Copyright ========= diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index 3370807..d22accc 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -77,7 +77,7 @@ build_opk() # This utility runs with (fake) privileges, so we can chown what we're # about to tar. - find "${binary}.control" "${binary}.data" | xargs chown -h 0:0 + find "${binary}.control" | xargs chown -h 0:0 (cd -- "${binary}.control" && find '.' | LC_ALL=C sort ${sort_r} | \ ${TAR} -cf '../control.tar' --no-recursion -T -) -- cgit v0.9.1