Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2007 12:37:41 GMT
From:      Jeppe Larsen <jwl@io.dk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/118949: [patch] fix database error in devel/devtodo
Message-ID:  <200712221237.lBMCbf7A039034@www.freebsd.org>
Resent-Message-ID: <200712221240.lBMCe3QZ054927@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         118949
>Category:       ports
>Synopsis:       [patch] fix database error in devel/devtodo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 22 12:40:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jeppe Larsen
>Release:        6.2
>Organization:
>Environment:
FreeBSD apnex.sysctl.dk 6.2-STABLE FreeBSD 6.2-STABLE
>Description:
When running devtodo following error appears:
todo: error, no database loaders for database format or database corrupt (last error was 'couldn't compile rx: repetition-operator operand invalid'


>How-To-Repeat:

>Fix:
Apply patch. Taken from http://swapoff.org/ticket/54

Patch attached with submission follows:

--- util/XML.cc.orig	Mon Dec 10 22:26:55 2007
+++ util/XML.cc	Mon Dec 10 22:27:07 2007
@@ -49,7 +49,7 @@ void XML::init() {
 	// Only initialise scanners once
 	if (!initialised) {
 		// <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-		xmlScan.addPattern(XmlDecl, "<\\?xml.*?>[[:space:]]*");
+		xmlScan.addPattern(XmlDecl, "<\\?xml.*\\?>[[:space:]]*");
 		xmlScan.addPattern(XmlCommentBegin, "<!--");
 		xmlScan.addPattern(XmlBegin, "<[a-zA-Z0-9_-]+"
 			"([[:space:]]+[a-zA-Z_0-9-]+=(([/a-zA-Z_0-9,.]+)|(\"[^\"]*\")|('[^']*')))"


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712221237.lBMCbf7A039034>