Risk 0/5 · Safe
PKGBUILD
Result #1915
Comment
The change only refactors the check() environment setup: it exports HOME to a temporary directory under the build tree, sets QT_QPA_PLATFORM=offscreen and clears QT_QPA_PLATFORMTHEME for tests, and exports the existing SYNCTHING_PORT and timeout factor before running `ninja check`. This does not introduce network access, privilege escalation, persistence, or packaging-time writes outside the build directory. The added `QT_QPA_PLATFORMTHEME=` is a test-environment tweak consistent with the referenced upstream issue and does not affect the packaged artifact. No security-relevant red flags are present in this diff hunk.
@@ -75,7 +75,12 @@ build() {
check() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
# https://github.com/syncthing/syncthing/issues/8785
- HOME="$(mktemp -p "$PWD" -d testhome.XXX)" QT_QPA_PLATFORM=offscreen SYNCTHING_PORT=$(ephemeral_port) SYNCTHING_TEST_TIMEOUT_FACTOR=3 ninja check
+ export HOME="$(mktemp -p "$PWD" -d testhome.XXX)"
+ # https://github.com/Martchus/syncthingtray/issues/455
+ export QT_QPA_PLATFORM=offscreen QT_QPA_PLATFORMTHEME=
+ export SYNCTHING_PORT=$(ephemeral_port)
+ export SYNCTHING_TEST_TIMEOUT_FACTOR=3
+ ninja check
}
package() {