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

Bug#4545: dpkg-gencontrol gets it wrong with certain package names



Package: dpkg-dev
Version: 1.4.0

I believe this bug will also affect ncurses3.0 when it gets packaged
with the new packaging standard (perhaps all or most shared lib
packages).

Here is the beginning of my changlog file for slang:
slang (slang-0.99.34-1) unstable; urgency=low

 * upgrade to latest upstream source

I also tried several variations on the naming theme.  Did I confuse myself
or does dpkg-parsechangelog not support our shared lib naming scheme yet?
I've just rescanned the policy and programmer's manual and I think at
minimum we have a documentation error.

$ dpkg-gencontrol -Pdebian/tmp-lib -pslang0.99.34
parsechangelog/debian: error: unrecognised line, at changelog line 3
dpkg-gencontrol: error: syntax error in parsed version of changelog at line 0: empty file

I think my formatting is correct.  I /may/ have tracked the problem
down to /usr/lib/dpkg/parsechangelog/debian whose regular expression on
line 54:
    if (m/^(\w[-+0-9a-z.]+) \(([^\(\) \t]+)\)((\s+[-0-9a-z]+)+)\;/i) {
fails to match my slang version number.  [I doubt this analysis, but won't
have time to further investigate until much later today.]

Here is my debian/control (abbreviated descriptions):
Source: slang
Section: devel
Priority: optional
Maintainer: Chris Fearnley <cjf@netaxs.com>
Standards-Version: 2.1.1.0

Package: slang0.99.34
Architecture: any
Depends: ${shlibs:Depends}
Description: A C programming library for user interfaces - shared library
 S-Lang is a C programmer's library that includes routines for the
 rapid development of sophisticated, user friendly, multi-platform
 applications.

Package: slang0.99.34-dev
Architecture: any 
Provides: slang-dev
Replaces: slang-devel
Conflicts: slang-devel, slang-dev
Depends: ${shlibs:Depends} 
Description: A C programming library for user interfaces - development kit
 S-Lang is a C programmer's library that includes routines for the rapid
 development of sophisticated, user friendly, multi-platform applications.

-- 
Christopher J. Fearnley            |    Linux/Internet Consulting
cjf@netaxs.com                     |    UNIX SIG Leader at PACS
http://www.netaxs.com/~cjf         |    (Philadelphia Area Computer Society)
ftp://ftp.netaxs.com/people/cjf    |    Design Science Revolutionary
"Dare to be Naive" -- Bucky Fuller |    Explorer in Universe



Reply to: