pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39938: database error in time/devtodo



>Number:         39938
>Category:       pkg
>Synopsis:       database error in time/devtodo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 17 01:25:00 +0000 2008
>Originator:     Eric Auge
>Release:        5.0_BETA
>Organization:
>Environment:
$ uname -a
NetBSD bearcave.no.phear.org 5.0_BETA NetBSD 5.0_BETA (BearCave) #0: Fri Nov 14 
17:20:50 CET 2008  
root%bearcave.no.phear.org@localhost:/usr/obj/sys/arch/i386/compile/BEARCAVE 
i386

>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:
use dev todo.
>Fix:
Apply patch. From http://swapoff.org/ticket/54

--- 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,.]+)|(\"[^\"]*\")|('[^']*')))"




Home | Main Index | Thread Index | Old Index