From kde-bugs-dist Thu Dec 31 16:10:49 2015 From: Jordan Bray via KDE Bugzilla Date: Thu, 31 Dec 2015 16:10:49 +0000 To: kde-bugs-dist Subject: [buildsystem] [Bug 357371] New: In emerge\portage\dev-util\cmake\cmake.py, the regular expression fa Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=145157826006736 https://bugs.kde.org/show_bug.cgi?id=357371 Bug ID: 357371 Summary: In emerge\portage\dev-util\cmake\cmake.py, the regular expression fails to grab the nightly cmake version, resulting in index out of range exception Product: buildsystem Version: unspecified Platform: MS Windows OS: MS Windows Status: UNCONFIRMED Severity: crash Priority: NOR Component: KDE4 (cmake) Assignee: neundorf@kde.org Reporter: jordanbray@gmail.com In emerge\portage\dev-util\cmake\cmake.py, the funciton setTargets(self) attempts to grab the latest nightly version of cmake. I'm not sure when, as I was able to successfully run emerge for a while before it broke on me. However, at some port, the setTargets will be called, and it will crash on line 15. The offending line is: nightlyVer = utils.getNightlyVersionsFromUrl(nightlyUrl + "?C=M;O=D", "\d.\d.\d\d\d\d\d\d\d\d-[0-9A-Za-z]{7}") Which, as far as I can tell, grabs the list of cmake versions as an HTML document, then extracts the version info with the above regular expression. However, as you can see from the current latest version (3.4.20151120-g20f70), it does not work because of the {7} at the end. I switched mine over to a {6-7} and that seems to have resolved the issue. I'm not sure if they recently changed the format of the versions, or if this function just isn't called that much. I would commit it myself, but I'm not sure how or where... Thanks. Reproducible: Sometimes Steps to Reproduce: 1. Run emerge (anything) while building on windows. It does not matter if the package exists or not. Actual Results: List Index Out Of Range Exception Expected Results: Compile a package -- You are receiving this mail because: You are watching all bug changes.