kdevelop-plugin-php phpparser.cpp file varies from ASLR
While working on reproducible builds for openSUSE, I found that our kdevelop-plugin-php varies between builds, because the generated phpparser.cpp has variations from ASLR. Old kdevelop5-plugin-php already had the same issue.
Here is part of a sample diff from the buildroot:
/home/abuild/rpmbuild/BUILD/kdev-php-24.08.2/build/parser/phpparser.cpp 2040-11-14 10:40:25.426666662 +0000
@@ -2488,22 +2488,22 @@
yylex();
while (yytoken != Token_EOF
- && yytoken != Token_USE
- && yytoken != Token_CONST
+ && yytoken != Token_ABSTRACT
&& yytoken != Token_FINAL
- && yytoken != Token_STATIC
[...]
This file is written by "/usr/bin/kdev-pg-qt" "--output=php" "--namespace=Php" "--debug-visitor" "/home/abuild/rpmbuild/BUILD/kdev-php-24.08.2/parser/php.g"
It needs proper sorting for stable output order in https://invent.kde.org/kdevelop/kdevelop-pg-qt/-/blame/master/src/kdev-pg-code-gen.cpp?ref_type=heads#L166
Edited by Fabian Vogt