summaryrefslogtreecommitdiffstats
path: root/bugscan.rb
blob: 2bbba0f60a1299275bff8a067be0e07aa70934a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Regexes to match against the build log
# Update https://wiki.mageia.org/en/Autobuild_errors when a new tag is added
$bug_matches = {
    "com\\.sun\\.tools\\.javac\\.Main is not on the classpath" => "err_javacmissing", # e.g. gnu-getopt
    "Unable to find a javac compiler" => "err_javacmissing", # e.g. fmj
    "role: org\\.apache\\.maven\\.Maven" => "err_maven", # e.g. XmlSchema
    "required file './depcomp' not found" => "err_depcomp", # e.g. admesh
    "depcomp: No such file or directory" => "err_depcomp", # e.g. asteroids3D
    "aclocal-1.\\d+: command not found" => "err_oldautoconf", # e.g. argtable2
    "Empty %files file.*\\.debugfiles.list" => "err_debuglist", # e.g. kon2
    "Empty %files file.*\\.lang" => "err_findlang",
    "Installed \\(but unpackaged\\) file\\(s\\) found" => "err_unpackagedfile", # e.g. flvtool2
    "SyntaxError: Missing parentheses in call to 'print'." => "err_python3", # e.g. pyzy
    "ERROR: ambiguous python shebang" => "err_python3", # e.g. scid
    "%py2_build" => "err_python3", # e.g. obapps
    "python2: No such file or directory" => "err_python3", # e.g. python-pyexcelerator
    "libtool: compile: unable to infer tagged configuration" => "err_libtool", # e.g. mcal
    "XMvn was unable to resolve artifact" => "err_javadep", # e.g. mnemonicsetter
    "\\[ERROR\\] *Cannot satisfy dependency:" => "err_javadep", # e.g. eclipse-cdt
    "unresolved dependency: .*: not found" => "err_javadep", # e.g. sbt
    "-unsafe-string is not available." => "err_ocamlunsafestring", # e.g. mp3packer
    "scalar and rank-1" => "err_fortranscalarandrank",
    "ISO C\\+\\+17 does not allow dynamic exception specifications" => "err_dynamicexception", # e.g. advancecomp
    "contains a standard  '/usr/lib" => "err_rpath", # e.g. gnokii
    "'check-rpaths' detected a broken RPATH OR RUNPATH" => "err_rpath", # e.g. lame
    "Failed to load XMvn configuration" => "err_wmvnconfig", # e.g. junitperf
    "did you forget to '#include" => "err_stdheaders", # e.g. lnav
    "format not a string literal and no format arguments" => "err_literalformat", # e.g. bcunit
    "multiple definition of .*enum fsconfig_command" => "err_mountcompat",
    "redefinition of .*struct mount_attr" => "err_mountcompat",
    "error: File not found:.*.egg-info" => "err_egginfomissing", # e.g. sword

# The following have more specific matches above
    "^    File not found:" => "err_packagedfilemissing",
    "multiple definition of" => "err_multipledefinition",
}