Package: dpkg-dev
Version: 1.14.25
Severity: normal
File: /usr/bin/dpkg-gencontrol

I've the following stanza (snippet) in a debian/control of mine:

    Package: ocaml-source
    Architecture: all
    Depends:
     ${misc:Depends}
    Provides: ocaml-source-${F:OCamlABI}

I agree that is ugly :), but I expect to be able to write substvar
stems wherever I would put verbatim dependency strings. ... which is
not the case when ${misc:Depends} is empty above:

   z...@usha:~/pkg-ocaml-maint/packages/git/ocaml$ cat 
debian/ocaml-source.substvars 
   F:OCamlABI=3.11.0
   misc:Depends=
   z...@usha:~/pkg-ocaml-maint/packages/git/ocaml$ DH_VERBOSE=1 fakeroot 
dh_gencontrol -pocaml-source
           dpkg-gencontrol -pocaml-source -ldebian/changelog 
-Tdebian/ocaml-source.substvars -Pdebian/ocaml-source
   dpkg-gencontrol: warning: can't parse dependency 
    
   dpkg-gencontrol: error: error occurred while parsing 
    
   dh_gencontrol: dpkg-gencontrol returned exit code 255
   z...@usha:~/pkg-ocaml-maint/packages/git/ocaml$ cat > 
debian/ocaml-source.substvars
   F:OCamlABI=3.11.0
   misc:Depends=foo-bar-baz
   z...@usha:~/pkg-ocaml-maint/packages/git/ocaml$ DH_VERBOSE=1 fakeroot 
dh_gencontrol -pocaml-source
           dpkg-gencontrol -pocaml-source -ldebian/changelog 
-Tdebian/ocaml-source.substvars -Pdebian/ocaml-source
           chmod 644 debian/ocaml-source/DEBIAN/control
           chown 0:0 debian/ocaml-source/DEBIAN/control

According to some tests, the problem seems to manifest only when the
field value get completely empty as the result of substitution.

Cheers.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils                      2.19.1-1   The GNU assembler, linker and bina
ii  dpkg-dev                      1.14.25    Debian package development tools
ii  file                          5.00-1     Determines file type using "magic"
ii  html2text                     1.3.2a-13  advanced HTML to text converter
ii  man-db                        2.5.5-1    on-line manual pager
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 
ii  po-debconf                    1.0.16     tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make                       0.48       tool that converts source archives

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to