Debian Bug report logs - #11033
dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: <joost@rulcmc.leidenuniv.nl>

Date: Fri, 4 Jul 1997 16:18:01 UTC

Severity: normal

Done: Anthony Towns <ajt@master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#11033; Package dpkg. (full text, mbox, link).


Acknowledgement sent to <joost@rulcmc.leidenuniv.nl>:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: <joost@rulcmc.leidenuniv.nl>
To: submit@bugs.debian.org
Subject: dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line
Date: Fri, 4 Jul 1997 18:17:30 +0200 (CEST)
Package: dpkg
Version: 1.4.0.17

This is killing me. I cannot build libg++272 any more, and I'm getting
tons of bugreports against other packages that are actually bugs in libg++272.


Full output of dpkg:

rulcmc:~/maintain/libg++/libg++272-2.7.2.5$ dpkg-buildpackage -rsudo
dpkg-buildpackage: source package is libg++272
dpkg-buildpackage: source version is 2.7.2.5-2
dpkg-buildpackage: source version is joost witteveen <joost@rulcmc.leidenuniv.nl>
dpkg-buildpackage: build architecture is i386
 sudo debian/rules clean
make clean
[.. clean stuff removed ..]
 dpkg-source -b libg++272-2.7.2.5
dpkg-source: building libg++272 using existing libg++272_2.7.2.5.orig.tar.gz
/^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.



This also happens when I do "dpkg-source -x (version in incoming).dsc":

$ dpkg-source -x ../libg++272_2.7.2.5-1.dsc
/^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.


So, I'll just start doing the "./debian/rules build; ./debian/rules binary"
song again, and upload just the .deb to master.


-- System Information
Debian Release: 1.3
Kernel Version: Linux rulcmc 2.0.30 #4 Thu Jun 5 11:50:20 CEST 1997 i486 unknown

Versions of the packages dpkg depends on:
libc5	Version: 5.4.23-4
libg++27	Version: 2.7.2.1-9
ncurses3.0	Version: 1.9.9e-1


Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#11033; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Christian Schwarz <schwarz@monet.m.isar.de>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #10 received at 11033@bugs.debian.org (full text, mbox, reply):

From: Christian Schwarz <schwarz@monet.m.isar.de>
To: joost@rulcmc.leidenuniv.nl, 11033@bugs.debian.org
Cc: Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>
Subject: Re: Bug#11033: dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line
Date: Fri, 4 Jul 1997 23:45:33 +0200 (CEST)
On Fri, 4 Jul 1997 joost@rulcmc.leidenuniv.nl wrote:

> Package: dpkg
> Version: 1.4.0.17
> 
> This is killing me. I cannot build libg++272 any more, and I'm getting
> tons of bugreports against other packages that are actually bugs in libg++272.
> 
> 
> Full output of dpkg:
> 
> rulcmc:~/maintain/libg++/libg++272-2.7.2.5$ dpkg-buildpackage -rsudo
> dpkg-buildpackage: source package is libg++272
> dpkg-buildpackage: source version is 2.7.2.5-2
> dpkg-buildpackage: source version is joost witteveen <joost@rulcmc.leidenuniv.nl>
> dpkg-buildpackage: build architecture is i386
>  sudo debian/rules clean
> make clean
> [.. clean stuff removed ..]
>  dpkg-source -b libg++272-2.7.2.5
> dpkg-source: building libg++272 using existing libg++272_2.7.2.5.orig.tar.gz
> /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.

Hey! I ran into the same problem today, as I upgraded from bo to latest
unstable. It is the new perl 5.004 which treats some regexps differently
than before.

I think the problem is simple: if you try to match /^libg++272-2..../ you
would have to escape this plus signs! The double plus (++) does surely
make not much sence as regular expression. I think this is the problem.

As a you solution you might want to try downgrading perl again.


Hope this helps,

Chris
--                 Christian Schwarz
                    schwarz@monet.m.isar.de, schwarz@schwarz-online.com,
Don't know Perl?     schwarz@debian.org, schwarz@mathematik.tu-muenchen.de
      
Visit                  PGP-fp: 8F 61 EB 6D CF 23 CA D7  34 05 14 5C C8 DC 22 BA
http://www.perl.com     http://fatman.mathematik.tu-muenchen.de/~schwarz/



Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#11033; Package dpkg. (full text, mbox, link).


Acknowledgement sent to joost@rulcmc.leidenuniv.nl (joost witteveen):
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #15 received at 11033@bugs.debian.org (full text, mbox, reply):

From: joost@rulcmc.leidenuniv.nl (joost witteveen)
To: schwarz@monet.m.isar.de, 11033@bugs.debian.org
Cc: 11033@bugs.debian.org, dpkg-maint@chiark.greenend.org.uk
Subject: Re: Bug#11033: dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line
Date: Tue, 8 Jul 1997 14:32:07 +0200 (CEST)
> > dpkg-source: building libg++272 using existing libg++272_2.7.2.5.orig.tar.gz
> > /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.
> 
> Hey! I ran into the same problem today, as I upgraded from bo to latest
> unstable. It is the new perl 5.004 which treats some regexps differently
> than before.
> 
> I think the problem is simple: if you try to match /^libg++272-2..../ you
> would have to escape this plus signs! The double plus (++) does surely
> make not much sence as regular expression. I think this is the problem.
> 
> As a you solution you might want to try downgrading perl again.

What's your perl version? I've now downgraded to:

rulcmc:~/maintain/libg++/libg++272-2.7.2.5$ dpkg -l perl* 
ii  perl            5.003.07-10    Larry Wall's Practical Extracting and Report
ii  perl-curses     1.01-1         Curses interface for Perl
ii  perl-debug      5.003.07-10    Allow debugging perl scripts (and perl).
ii  perl-suid       5.003.07-10    Runs setuid perl scripts.
ii  perl-tk         b11.02-5       Perl module providing the Tk graphics librar
iU  perlmagick      1.12-1         A perl interface to the libMagick graphics r
ii  perlmenu        4.0-1          Menu and Template (curses-based) UI for Perl
ii  perlsgml        1996Oct09-6    perlSGML is a suite of HTML analysis tools f


And, while trying to buidl libg++, I still get:
[..cleaning..]
 dpkg-source -b libg++272-2.7.2.5
dpkg-source: building libg++272 using existing libg++272_2.7.2.5.orig.tar.gz
/^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.

> Hope this helps,

Wish it did!

-- 
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#11033; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Christian Schwarz <schwarz@monet.m.isar.de>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #20 received at 11033@bugs.debian.org (full text, mbox, reply):

From: Christian Schwarz <schwarz@monet.m.isar.de>
To: joost witteveen <joost@rulcmc.leidenuniv.nl>
Cc: 11033@bugs.debian.org, dpkg-maint@chiark.greenend.org.uk
Subject: Re: Bug#11033: dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line
Date: Wed, 9 Jul 1997 23:18:42 +0200 (CEST)
On Tue, 8 Jul 1997, joost witteveen wrote:

> 
> > > dpkg-source: building libg++272 using existing libg++272_2.7.2.5.orig.tar.gz
> > > /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.
> > 
> > Hey! I ran into the same problem today, as I upgraded from bo to latest
> > unstable. It is the new perl 5.004 which treats some regexps differently
> > than before.
> > 
> > I think the problem is simple: if you try to match /^libg++272-2..../ you
> > would have to escape this plus signs! The double plus (++) does surely
> > make not much sence as regular expression. I think this is the problem.
> > 
> > As a you solution you might want to try downgrading perl again.
> 
> What's your perl version? I've now downgraded to:
> 
> rulcmc:~/maintain/libg++/libg++272-2.7.2.5$ dpkg -l perl* 
> ii  perl            5.003.07-10    Larry Wall's Practical Extracting and Report
> ii  perl-curses     1.01-1         Curses interface for Perl
> ii  perl-debug      5.003.07-10    Allow debugging perl scripts (and perl).
> ii  perl-suid       5.003.07-10    Runs setuid perl scripts.
> ii  perl-tk         b11.02-5       Perl module providing the Tk graphics librar
> iU  perlmagick      1.12-1         A perl interface to the libMagick graphics r
> ii  perlmenu        4.0-1          Menu and Template (curses-based) UI for Perl
> ii  perlsgml        1996Oct09-6    perlSGML is a suite of HTML analysis tools f

ii  perl            5.004-2        Larry Wall's Practical Extracting and
Report
ii  perl-curses     1.01-1         Curses interface for Perl
ii  perl-tk         400.202-2      Perl module providing the Tk graphics
librar
ii  perlmenu        4.0-1          Menu and Template (curses-based) UI for
Perl

I have the same problem with your package (libg++272_2.7.2.5-1).

On my server running "bo", using

ii  perl            5.003.07-10    Larry Wall's Practical Extracting and
Report
ii  perl-tk         b11.02-5       Perl module providing the Tk graphics
librar

it works without problems.

Hmm. 


Thanks,

Chris

--                  Christian Schwarz
                   schwarz@monet.m.isar.de, schwarz@schwarz-online.com
                  schwarz@debian.org, schwarz@mathematik.tu-muenchen.de
                       
                PGP-fp: 8F 61 EB 6D CF 23 CA D7  34 05 14 5C C8 DC 22 BA
              
 CS Software goes online! Visit our new home page at
 	                                     http://www.schwarz-online.com



Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#11033; Package dpkg. (full text, mbox, link).


Acknowledgement sent to joost@rulcmc.leidenuniv.nl (joost witteveen):
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #25 received at 11033@bugs.debian.org (full text, mbox, reply):

From: joost@rulcmc.leidenuniv.nl (joost witteveen)
To: schwarz@monet.m.isar.de (Christian Schwarz)
Cc: 11033@bugs.debian.org, dpkg-maint@chiark.greenend.org.uk
Subject: Re: Bug#11033: dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line
Date: Thu, 10 Jul 1997 12:16:03 +0200 (CEST)
> On Tue, 8 Jul 1997, joost witteveen wrote:
> 
> > 
> > > > dpkg-source: building libg++272 using existing libg++272_2.7.2.5.orig.tar.gz
> > > > /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.
> > > 
> > > Hey! I ran into the same problem today, as I upgraded from bo to latest
> > > unstable. It is the new perl 5.004 which treats some regexps differently
> > > than before.

> > What's your perl version? I've now downgraded to:
> > 
> > rulcmc:~/maintain/libg++/libg++272-2.7.2.5$ dpkg -l perl* 
> > ii  perl            5.003.07-10    Larry Wall's Practical Extracting and Report
> > ii  perl-tk         b11.02-5       Perl module providing the Tk graphics librar

> 
> ii  perl            5.004-2        Larry Wall's Practical Extracting and
> Report
> ii  perl-curses     1.01-1         Curses interface for Perl
> ii  perl-tk         400.202-2      Perl module providing the Tk graphics
> librar
> ii  perlmenu        4.0-1          Menu and Template (curses-based) UI for
> Perl
> 
> I have the same problem with your package (libg++272_2.7.2.5-1).
> 
> On my server running "bo", using
> 
> ii  perl            5.003.07-10    Larry Wall's Practical Extracting and
> Report
> ii  perl-tk         b11.02-5       Perl module providing the Tk graphics
> librar
> 
> it works without problems.


So, it isn't just the perl or perl-tk versions, cause as you can see, I'm using
excactly those perl versions. It must be some other package, that does not
match "bo/binary-i386/*/{perl,sed,bash}*", cause I downgraded all of those
packages to bo now, and I still get the error). What other package could
that be, then?

Ah well, I just found it's dpkg from unstable that does this. dpkg
from bo is fine (I'm sure I already tried downgrading dpkg, but apparently
I forgot some dpkg components then).

Thanks for helping me at least be able to make a full libg++272 release,
and hopefully helping Klee find the error in dpkg-source.


(from the diff -u dpkg-source_1.4.0.8 dpkg-source_1.4.0.17, note that
the first line that differs here in the patch is that line 771. Now to
anybody who speaks perl it shouldnt be very hard to fix this, should it?)

@@ -737,10 +767,14 @@
     }
     close(TAR); $? && subprocerr("tar -t");
     &reapgzip;
+
+    @filesinarchive = map { s/^$epfx/$wpfx/; $_ } @filesinarchive;
+    %dirincluded = map { s/^$epfx/$wpfx/; $_=>1 } (keys %dirincluded);
+    %notfileobject = map { s/^$epfx/$wpfx/; $_=>1 } keys %notfileobject;
 }
 
 sub extracttar {
-    my ($tarfileread,$dirchdir) = @_;
+    my ($tarfileread,$dirchdir,$newtopdir) = @_;
     &forkgzipread("$tarfileread");
     defined($c2= fork) || &syserr("fork for cpio -i");
     if (!$c2) {




-- 
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#11033; Package dpkg. (full text, mbox, link).


Acknowledgement sent to joost@rulcmc.leidenuniv.nl (joost witteveen):
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #30 received at 11033@bugs.debian.org (full text, mbox, reply):

From: joost@rulcmc.leidenuniv.nl (joost witteveen)
To: schwarz@monet.m.isar.de, 11033@bugs.debian.org
Cc: 11033@bugs.debian.org, dpkg-maint@chiark.greenend.org.uk
Subject: Re: Bug#11033: dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line
Date: Thu, 10 Jul 1997 22:20:25 +0200 (CEST)
Dpkg maintainers, please fix this bug with this patch from
Joey Hess:

--- /usr/bin/dpkg-source        Tue May 20 22:23:53 1997
+++ dpkg-source Fri Jul  4 14:50:52 1997
@@ -768,6 +768,7 @@
     close(TAR); $? && subprocerr("tar -t");
     &reapgzip;
 
+    $epfx=quotemeta($epfx);
     @filesinarchive = map { s/^$epfx/$wpfx/; $_ } @filesinarchive;
     %dirincluded = map { s/^$epfx/$wpfx/; $_=>1 } (keys %dirincluded);
     %notfileobject = map { s/^$epfx/$wpfx/; $_=>1 } keys %notfileobject;




This patch has now been lightly tested by me, and seem to work.

I'd very much appreciate if dpkg 1.4.0.19 includes this.




-- 
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


Bug reopened, originator not changed. Request was from jdassen@wi.leidenuniv.nl to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#11033; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Juan Cespedes <cespedes@debian.org>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #37 received at 11033@bugs.debian.org (full text, mbox, reply):

From: Juan Cespedes <cespedes@debian.org>
To: joost@rulcmc.leidenuniv.nl
Cc: 11033@bugs.debian.org
Subject: Re: dpkg: /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line
Date: Sun, 5 Apr 1998 13:43:49 +0200
	I think this bug is fixed.  Can you confirm it, so that it can
be closed?  Thanks.

From:  <joost@rulcmc.leidenuniv.nl>
> Package: dpkg
> Version: 1.4.0.17
> 
> This is killing me. I cannot build libg++272 any more, and I'm getting
> tons of bugreports against other packages that are actually bugs in libg++272.
> 
> 
> Full output of dpkg:
> 
> rulcmc:~/maintain/libg++/libg++272-2.7.2.5$ dpkg-buildpackage -rsudo
> dpkg-buildpackage: source package is libg++272
> dpkg-buildpackage: source version is 2.7.2.5-2
> dpkg-buildpackage: source version is joost witteveen <joost@rulcmc.leidenuniv.nl>
> dpkg-buildpackage: build architecture is i386
>  sudo debian/rules clean
> make clean
> [.. clean stuff removed ..]
>  dpkg-source -b libg++272-2.7.2.5
> dpkg-source: building libg++272 using existing libg++272_2.7.2.5.orig.tar.gz
> /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.
> 
> 
> 
> This also happens when I do "dpkg-source -x (version in incoming).dsc":
> 
> $ dpkg-source -x ../libg++272_2.7.2.5-1.dsc
> /^libg++272-2.7.2.5.orig/: nested *?+ in regexp at /usr/bin/dpkg-source line 771.


-- 
Juan Cespedes


Bug reassigned from package `dpkg' to `dpkg-iwj'. Request was from Wichert Akkerman <wichert@cs.leidenuniv.nl> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug closed, ack sent to submitter - they'd better know why ! Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 24 15:02:13 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.