Skip to contentSkip to conversation

package/webkitgtk: also disable internal ccache in the build step

PATCH Applied Thomas Devoogdt 3 participants 7 messages Oct 1 – Oct 16

lore
Share & tools
lore
#0 lore raw

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
index a2ceb516ae5..14be8c0cbaa 100644
@@ -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
#1 lore raw

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
index 1f5f4aa5e64..c424a3c4b92 100644
@@ -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
Acked-by on v1 2/2
#2 lore raw

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 have WK_USE_CCACHE set. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.

Quoted 8 lines

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.

Quoted 18 lines
---
 package/wpewebkit/wpewebkit.mk | 1 +
 1 file changed, 1 insertion(+)
package/wpewebkit/wpewebkit.mk +1 -0
index 1f5f4aa5e64..c424a3c4b92 100644
@@ -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

#3 lore raw

Re: [Buildroot] [PATCH 2/2] package/wpewebkit: also disable internal ccache in the build step

In reply to Thomas Devoogdt

In 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 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.

Quoted 4 lines

Pass WK_USE_CCACHE=NO to the build step too.

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
index 1f5f4aa5e64..c424a3c4b92 100644

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

Acked-by on v1 1/2
#4 lore raw
In reply to Thomas Devoogdt

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 have WK_USE_CCACHE set. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.

Quoted 8 lines

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.

Quoted 18 lines
---
 package/webkitgtk/webkitgtk.mk | 1 +
 1 file changed, 1 insertion(+)
package/webkitgtk/webkitgtk.mk +1 -0
index a2ceb516ae5..14be8c0cbaa 100644
@@ -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

#5 lore raw
In reply to Thomas Devoogdt
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 have WK_USE_CCACHE set. WebKit's WebKitCCache.cmake then sets ccache as compiler launcher again.

Quoted 8 lines

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.

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
index a2ceb516ae5..14be8c0cbaa 100644
@@ -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

#6 lore raw
In reply to Thomas Devoogdt

In 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 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.

Quoted 4 lines

Pass WK_USE_CCACHE=NO to the build step too.

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
index a2ceb516ae5..14be8c0cbaa 100644

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