From 10ffc93325c45d75528591a063b1f16e5b089b62 Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Thu, 26 Jun 2025 11:46:50 +0800 Subject: [PATCH] build: Do not generate 'CODEOWNERS' when cross-compiling. Fixes: guix/guix#812 * Makefile.am (CODEOWNERS): wrap it with in_git_p and !CROSS_COMPILING. Change-Id: I65389947d3065d470739ca1a12398551be2178c1 --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 8b33734f38a6b8c076b5513920baf2ea9db75c0d..0c3c233e60f71b018170ae700404c93215bf1141 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1322,12 +1322,15 @@ download-po: .PHONY: download-po # Regenerate 'CODEOWNERS' when 'teams.scm' is modified so we don't forget. +if in_git_p +if !CROSS_COMPILING CODEOWNERS: etc/teams.scm scripts/guix ./etc/teams.scm codeowners > "$@.tmp" mv "$@.tmp" "$@" BUILT_SOURCES += CODEOWNERS - +endif +endif ## -------------- ## ## Silent rules. ## ## -------------- ##