[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [buildsystem] [Bug 357371] New: In emerge\portage\dev-util\cmake\cmake.py, the regular expression fa
From: Jordan Bray via KDE Bugzilla <bugzilla_noreply () kde ! org>
Date: 2015-12-31 16:10:49
Message-ID: bug-357371-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic