All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/pkg-meson.mk: fix ccache auto-detection avoidance
@ 2021-02-02 20:42 Yann E. MORIN
  2021-02-04 16:52 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Yann E. MORIN @ 2021-02-02 20:42 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=548b8c541285cedc390c4c95bd9d80dbad7d2a73
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Commit f4a61d1ae23e (package/pkg-meson.mk avoid host ccache detection)
forced the host C and C++ compilers so that meson does not try to
autodetect ccache, and instead relies on what we provide.

However, this incorrectly used single-expansion of variables in a
package infra.

For traditional builds, this is OK, because the value does not change
across packages.

However, for builds with per-package directories, this value only refers
to the generic path, which ill not exist until the end of the build when
all packages are aggregated in the host-finalize step.

Fix that by postponing the variable evaluation like all the others.

Reported-by: Xogium on IRC
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
 package/pkg-meson.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk
index de0e6e8ea3..aafb441fae 100644
--- a/package/pkg-meson.mk
+++ b/package/pkg-meson.mk
@@ -82,8 +82,8 @@ define $(2)_CONFIGURE_CMDS
 	    package/meson/cross-compilation.conf.in \
 	    > $$($$(PKG)_SRCDIR)/build/cross-compilation.conf
 	PATH=$$(BR_PATH) \
-	CC_FOR_BUILD="$(HOSTCC)" \
-	CXX_FOR_BUILD="$(HOSTCC)" \
+	CC_FOR_BUILD="$$(HOSTCC)" \
+	CXX_FOR_BUILD="$$(HOSTCC)" \
 	$$($$(PKG)_CONF_ENV) \
 	$$(MESON) \
 		--prefix=/usr \

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [git commit] package/pkg-meson.mk: fix ccache auto-detection avoidance
  2021-02-02 20:42 [Buildroot] [git commit] package/pkg-meson.mk: fix ccache auto-detection avoidance Yann E. MORIN
@ 2021-02-04 16:52 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2021-02-04 16:52 UTC (permalink / raw)
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > commit: https://git.buildroot.net/buildroot/commit/?id=548b8c541285cedc390c4c95bd9d80dbad7d2a73
 > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

 > Commit f4a61d1ae23e (package/pkg-meson.mk avoid host ccache detection)
 > forced the host C and C++ compilers so that meson does not try to
 > autodetect ccache, and instead relies on what we provide.

 > However, this incorrectly used single-expansion of variables in a
 > package infra.

 > For traditional builds, this is OK, because the value does not change
 > across packages.

 > However, for builds with per-package directories, this value only refers
 > to the generic path, which ill not exist until the end of the build when
 > all packages are aggregated in the host-finalize step.

 > Fix that by postponing the variable evaluation like all the others.

 > Reported-by: Xogium on IRC
 > Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>

Committed to 2020.02.x and 2020.11.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-04 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 20:42 [Buildroot] [git commit] package/pkg-meson.mk: fix ccache auto-detection avoidance Yann E. MORIN
2021-02-04 16:52 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.