Description: Accept letter suffixes when extracting the version for COMPILER.version.
 update_version.sh extracts the package version from the first line of
 debian/changelog using a character class that only matches digits, dots and
 dashes. Versions with a letter suffix, such as the 0.7.5-ok1 used on
 openKylin, do not match, so Compiler/COMPILER.version ends up with an empty
 version string on its second line. That empty string is compiled into the
 compiler metadata, and the Storm engine then aborts the boot with
 "Failed to parse the version string", which also aborts the test suite run
 from debian/rules. Accept any characters between the parentheses instead.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-16

--- storm-lang-0.7.5.orig/update_version.sh
+++ storm-lang-0.7.5/update_version.sh
@@ -1,4 +1,4 @@
 #!/bin/bash
 
-(echo "core.info"; sed -En 's/^.*\(([0-9.\-]*)\).*$/\1+debian/p' debian/changelog | head -n 1) > Compiler/COMPILER.version
+(echo "core.info"; sed -En 's/^[^(]*\(([^)]*)\).*$/\1+debian/p' debian/changelog | head -n 1) > Compiler/COMPILER.version
 
