From: Debian Rakudo Maintainers <pkg-rakudo-devel@lists.alioth.debian.org>
Date: Fri, 4 Oct 2024 02:19:22 +0000
Subject: Fix compiler id

Bug: https://github.com/rakudo/rakudo/issues/5099
Bug-Debian: https://bugs.debian.org/1027686
Author: dod@debian.org

Replace compiler id with a hard coded string. This string will be changed
at build time.

This should make compiler-id independant of arch and build directory.
===================================================================
---
 src/core.c/Compiler.rakumod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core.c/Compiler.rakumod b/src/core.c/Compiler.rakumod
index e9b2c50..8a8810e 100644
--- a/src/core.c/Compiler.rakumod
+++ b/src/core.c/Compiler.rakumod
@@ -3,7 +3,7 @@ class Compiler does Systemic {
     my constant $config =
       nqp::gethllsym('default','SysConfig').rakudo-build-config;
     my constant $compilation-id = nqp::box_s(
-      nqp::sha1($*W.handle.Str ~ nqp::atkey($config,'source-digest')),Str
+      nqp::sha1("%%Debian-compiler-id%%"),Str
     );
     my constant $backend = $compiler.backend;
     my constant $name    = $backend.name;
