]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Disable makepkg PKGBUILD linting using the newly added environment variable
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 15 Sep 2024 08:25:06 +0000 (10:25 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 15 Sep 2024 10:44:15 +0000 (12:44 +0200)
mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot

index 81864448c581222b323e24f8bcbe23699c8624c2..cafbafee668723be4252a0f0aa730a09c46023ab 100755 (executable)
@@ -58,9 +58,6 @@ OPTIONS=(
 )
 EOF
 
-# Linting the PKGBUILD takes multiple seconds every build so avoid that by nuking all the linting functions.
-rm /usr/share/makepkg/lint_pkgbuild/*
-
 TS="${SOURCE_DATE_EPOCH:-$(date +%s)}"
 
 sed --in-place "pkg/$PKG_SUBDIR/PKGBUILD" \
@@ -68,9 +65,11 @@ sed --in-place "pkg/$PKG_SUBDIR/PKGBUILD" \
     --expression "s/^pkgrel=.*/pkgrel=$(date "+%Y%m%d%H%M%S" --date "@$TS")/"
 
 # We get around makepkg's root check by setting EUID to something else.
+# Linting the PKGBUILD takes multiple seconds every build so avoid that by nuking all the linting functions.
 # shellcheck disable=SC2046
 env --chdir="pkg/$PKG_SUBDIR" \
     EUID=123 \
+    MAKEPKG_LINT_PKGBUILD=0 \
     makepkg \
     --noextract \
     --noprepare \