Subject: pkg/12996: linkpkgsrc -i problems (w. libsigc++)
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 05/21/2001 09:19:46
>Number:         12996
>Category:       pkg
>Synopsis:       linkpkgsrc -i problems (w. libsigc++)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 21 09:19:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Release:        -current Mon May 21 09:15:09 PDT 2001
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:
	
System: NetBSD capsicum.wsrcc.com 1.5V NetBSD 1.5V (WSRCC_ATHLON) #14: Sat May 19 19:16:58 PDT 2001 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/src/sys/arch/i386/compile/WSRCC_ATHLON i386
Architecture: i386
Machine: i386
>Description:
	linkpkgsrc -i has problems with libsigc++ .  It appears that the 
	'+' char is not escaped correctly in the regexp.

    $ lintpkgsrc -i
    Scanning pkgsrc Makefiles: 2102 packages                         
    Version mismatch: 'analog' 4.16 vs 5.0
    Version mismatch: 'bind' 9.1.1 vs 4.9.8,8.2.4,9.1.2,9.2.0s20010214
    Version mismatch: 'dgpsip' 1.29 vs 1.28
    Version mismatch: 'f2c' 20001205nb3 vs 20001205nb4
    Version mismatch: 'festival' 1.4.1 vs 1.4.0
    Version mismatch: 'fetchmail' 5.7.7 vs 5.8.3
    Version mismatch: 'gnome-core' 1.4.0.2 vs 1.4.0.3
    Version mismatch: 'gnome-vfs' 1.0 vs 1.0.1
    Version mismatch: 'gnupg' 1.0.4nb3 vs 1.0.5
    Version mismatch: 'gogo' 2.35 vs 2.39.1
    Unknown package: 'ispell' version 3.1.20
    Version mismatch: 'libiconv' 1.5 vs 1.6.1
    /^libsigc++-1\.0\.1$/: nested *?+ in regexp at /usr/pkg/bin/lintpkgsrc line 606.

>How-To-Repeat:
	install libsigc++
	lintpkgsrc -i
>Fix:
	This appears to work.  I didn't spend too much time to figure out
	if this was really the right place to put this fix in.

--- /home/wolfgang/bin/lintpkgsrc       Mon May 21 09:11:28 2001
+++ /usr/pkg/bin/lintpkgsrc     Mon May 21 08:50:46 2001
@@ -501,8 +501,6 @@
            { $regex .= '.*'; }
        elsif ($_ eq '?')
            { $regex .= '.'; }
+       elsif ($_ eq '+')
+           { $regex .= '\\+'; }
        elsif ($_ eq '\\')
            { $regex .= $_ . shift @chars; }
        elsif ($_ eq '.' || $_ eq '|' )


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