commit fe3ac9a198f2d49b1bccd59e46662071204da9d5
parent f74e0d5841e5ba642640c98ea53969d8a5170bb7
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 30 Oct 2026 02:08:07 +0530
parent f74e0d5841e5ba642640c98ea53969d8a5170bb7
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 30 Oct 2026 02:08:07 +0530
Normalize Debian package permissions despite restrictive CI umask
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/scripts/build-deb.sh b/scripts/build-deb.sh @@ -2,6 +2,8 @@ # Opt-in Debian packaging using the existing recipe build and native dpkg-deb. # No sudo, APT, signing key, or live installation is used during a build. set -eu +# Package defaults must not inherit the CI account's private-directory umask. +umask 022 self=$(CDPATH= cd -- "$(dirname "$0")" && pwd) . "$self/functions.sh" [ "$#" = 4 ] || die 'usage: build-deb.sh APKBUILD OUT TARGET KEEP'
diff --git a/tests/deb-backend.sh b/tests/deb-backend.sh @@ -1,5 +1,7 @@ #!/bin/sh set -eu +# minci uses a restrictive umask; Debian control/payload defaults must stay public. +umask 027 root=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd) if [ "$(uname -s)" != Linux ] || ! command -v dpkg-deb >/dev/null 2>&1; then echo 'SKIP: real Debian backend checks require Linux and dpkg-deb'; exit 0
: nply/foundationpkgs