package/webkitgtk: also disable internal ccache in the build step
PATCH 1/2 package/webkitgtk: also disable internal ccache in the build step
WK_USE_CCACHE=NO is only passed to the configure step (WEBKITGTK_CONF_ENV). During the build step, ninja can run cmake again (e.g. when a cmake input such as toolchainfile.cmake changed), and that run does not have WK_USE_CCACHE set. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.
That outer ccache runs without the CCACHE_BASEDIR that the toolchain wrapper sets for its own ccache call, so the cache keys and manifests contain absolute paths, and the entries only match in the same checkout directory.
Pass WK_USE_CCACHE=NO to the build step too.
--- package/webkitgtk/webkitgtk.mk | 1 + 1 file changed, 1 insertion(+)
package/webkitgtk/webkitgtk.mk +1 -0
@@ -22,6 +22,7 @@ WEBKITGTK_CMAKE_BACKEND = ninja # Buildroot adds support for ccache through its # toolchain-wrapper, so tell webkitgtk not to mess with it. WEBKITGTK_CONF_ENV = WK_USE_CCACHE=NO +WEBKITGTK_BUILD_ENV = WK_USE_CCACHE=NO WEBKITGTK_CONF_OPTS = \ -DENABLE_API_TESTS=OFF \
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/wpewebkit: also disable internal ccache in the build step
WK_USE_CCACHE=NO is only passed to the configure step (WPEWEBKIT_CONF_ENV). During the build step, ninja can run cmake again (e.g. when a cmake input such as toolchainfile.cmake changed), and that run does not have WK_USE_CCACHE set. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.
That outer ccache runs without the CCACHE_BASEDIR that the toolchain wrapper sets for its own ccache call, so the cache keys and manifests contain absolute paths, and the entries only match in the same checkout directory.
Pass WK_USE_CCACHE=NO to the build step too.
--- package/wpewebkit/wpewebkit.mk | 1 + 1 file changed, 1 insertion(+)
package/wpewebkit/wpewebkit.mk +1 -0
@@ -24,6 +24,7 @@ WPEWEBKIT_CMAKE_BACKEND = ninja # Buildroot adds support for ccache through its # toolchain-wrapper, so tell wpewebkit not to mess with it. WPEWEBKIT_CONF_ENV = WK_USE_CCACHE=NO +WPEWEBKIT_BUILD_ENV = WK_USE_CCACHE=NO WPEWEBKIT_CONF_OPTS = \ -DPORT=WPE \
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/wpewebkit: also disable internal ccache in the build step
Hi Thomas, all,
Thanks for the fix.
Quoted 6 lines · On Thu, 01 Oct 2026 09:54:27 +0200 Thomas Devoogdt <[email protected]> wrote:
WK_USE_CCACHE=NO is only passed to the configure step (
WPEWEBKIT_CONF_ENV). During the build step, ninja can run cmake again (e.g. when a cmake input such as toolchainfile.cmake changed), and that run does not haveWK_USE_CCACHEset. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.
Quoted 8 lines
That outer ccache runs without the
CCACHE_BASEDIRthat the toolchain wrapper sets for its own ccache call, so the cache keys and manifests contain absolute paths, and the entries only match in the same checkout directory.Pass WK_USE_CCACHE=NO to the build step too.
Signed-off-by Thomas Devoogdt <[email protected]>
Quoted 18 lines
--- package/wpewebkit/wpewebkit.mk | 1 + 1 file changed, 1 insertion(+)package/wpewebkit/wpewebkit.mk +1
-0@@ -24,6 +24,7 @@ WPEWEBKIT_CMAKE_BACKEND = ninja # Buildroot adds support for ccache through its # toolchain-wrapper, so tell wpewebkit not to mess with it. WPEWEBKIT_CONF_ENV = WK_USE_CCACHE=NO +WPEWEBKIT_BUILD_ENV = WK_USE_CCACHE=NO WPEWEBKIT_CONF_OPTS = \ -DPORT=WPE \Signature · 1 line
2.43.0
Cheers,
—Adrián
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedRe: [Buildroot] [PATCH 2/2] package/wpewebkit: also disable internal ccache in the build step
In reply to Thomas DevoogdtIn reply of:
Quoted 11 lines
WK_USE_CCACHE=NO is only passed to the configure step (
WPEWEBKIT_CONF_ENV). During the build step, ninja can run cmake again (e.g. when a cmake input such as toolchainfile.cmake changed), and that run does not haveWK_USE_CCACHEset. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.That outer ccache runs without the
CCACHE_BASEDIRthat the toolchain wrapper sets for its own ccache call, so the cache keys and manifests contain absolute paths, and the entries only match in the same checkout directory.
Quoted 4 lines
Pass WK_USE_CCACHE=NO to the build step too.
Signed-off-by Thomas Devoogdt <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 9 lines
--- package/wpewebkit/wpewebkit.mk | 1 + 1 file changed, 1 insertion(+)package/wpewebkit/wpewebkit.mk +0
-0
package/wpewebkit/wpewebkit.mk WPEWEBKIT_CMAKE_BACKEND = ninja · line 30
Quoted 7 lines
package/wpewebkit/wpewebkit.mk +1
-0@@ -24,6 +24,7 @@ WPEWEBKIT_CMAKE_BACKEND = ninja # Buildroot adds support for ccache through its # toolchain-wrapper, so tell wpewebkit not to mess with it. WPEWEBKIT_CONF_ENV = WK_USE_CCACHE=NO +WPEWEBKIT_BUILD_ENV = WK_USE_CCACHE=NO WPEWEBKIT_CONF_OPTS = \ -DPORT=WPE \
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Thomas, all,
Thanks for the fix.
Quoted 6 lines · On Thu, 01 Oct 2026 09:54:26 +0200 Thomas Devoogdt <[email protected]> wrote:
WK_USE_CCACHE=NO is only passed to the configure step (
WEBKITGTK_CONF_ENV). During the build step, ninja can run cmake again (e.g. when a cmake input such as toolchainfile.cmake changed), and that run does not haveWK_USE_CCACHEset. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.
Quoted 8 lines
That outer ccache runs without the
CCACHE_BASEDIRthat the toolchain wrapper sets for its own ccache call, so the cache keys and manifests contain absolute paths, and the entries only match in the same checkout directory.Pass WK_USE_CCACHE=NO to the build step too.
Signed-off-by Thomas Devoogdt <[email protected]>
Quoted 18 lines
--- package/webkitgtk/webkitgtk.mk | 1 + 1 file changed, 1 insertion(+)package/webkitgtk/webkitgtk.mk +1
-0@@ -22,6 +22,7 @@ WEBKITGTK_CMAKE_BACKEND = ninja # Buildroot adds support for ccache through its # toolchain-wrapper, so tell webkitgtk not to mess with it. WEBKITGTK_CONF_ENV = WK_USE_CCACHE=NO +WEBKITGTK_BUILD_ENV = WK_USE_CCACHE=NO WEBKITGTK_CONF_OPTS = \ -DENABLE_API_TESTS=OFF \Signature · 1 line
2.43.0
Cheers,
—Adrián
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines · Thomas Devoogdt
WK_USE_CCACHE=NO is only passed to the configure step (
WEBKITGTK_CONF_ENV). During the build step, ninja can run cmake again (e.g. when a cmake input such as toolchainfile.cmake changed), and that run does not haveWK_USE_CCACHEset. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.
Quoted 8 lines
That outer ccache runs without the
CCACHE_BASEDIRthat the toolchain wrapper sets for its own ccache call, so the cache keys and manifests contain absolute paths, and the entries only match in the same checkout directory.Pass WK_USE_CCACHE=NO to the build step too.
Signed-off-by Thomas Devoogdt <[email protected]>
Applied both to master, thanks!
Small nitpick for the future: your Signed-off-by doesn't match the From address.
I understand why... but we want them to be the same. The easiest solution is to simply add your private address in a second signed-off-by line.
Regards,
Arnout
Quoted 18 lines
--- package/webkitgtk/webkitgtk.mk | 1 + 1 file changed, 1 insertion(+)package/webkitgtk/webkitgtk.mk +1
-0@@ -22,6 +22,7 @@ WEBKITGTK_CMAKE_BACKEND = ninja # Buildroot adds support for ccache through its # toolchain-wrapper, so tell webkitgtk not to mess with it. WEBKITGTK_CONF_ENV = WK_USE_CCACHE=NO +WEBKITGTK_BUILD_ENV = WK_USE_CCACHE=NO WEBKITGTK_CONF_OPTS = \ -DENABLE_API_TESTS=OFF \Signature · 1 line
2.43.0
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 11 lines
WK_USE_CCACHE=NO is only passed to the configure step (
WEBKITGTK_CONF_ENV). During the build step, ninja can run cmake again (e.g. when a cmake input such as toolchainfile.cmake changed), and that run does not haveWK_USE_CCACHEset. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.That outer ccache runs without the
CCACHE_BASEDIRthat the toolchain wrapper sets for its own ccache call, so the cache keys and manifests contain absolute paths, and the entries only match in the same checkout directory.
Quoted 4 lines
Pass WK_USE_CCACHE=NO to the build step too.
Signed-off-by Thomas Devoogdt <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 9 lines
--- package/webkitgtk/webkitgtk.mk | 1 + 1 file changed, 1 insertion(+)package/webkitgtk/webkitgtk.mk +0
-0
package/webkitgtk/webkitgtk.mk WEBKITGTK_CMAKE_BACKEND = ninja · line 28
Quoted 7 lines
package/webkitgtk/webkitgtk.mk +1
-0@@ -22,6 +22,7 @@ WEBKITGTK_CMAKE_BACKEND = ninja # Buildroot adds support for ccache through its # toolchain-wrapper, so tell webkitgtk not to mess with it. WEBKITGTK_CONF_ENV = WK_USE_CCACHE=NO +WEBKITGTK_BUILD_ENV = WK_USE_CCACHE=NO WEBKITGTK_CONF_OPTS = \ -DENABLE_API_TESTS=OFF \
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot