Package: dpkg-dev
Version: 1.16.1.2
Severity: normal

The example on the deb-substvars(5) manpage shows a Description header
with ${Description}, an empty line, and more text, and the resulting
substituted control file shows that empty line too. However, it doesn't
actually work that way. The empty line gets removed.

Here is a shell script doing the substitution from the manpage example,
to show what it actually outputs.

---

rm -rf debian
mkdir debian
# dpkg-gencontrol wants a tmp dir and changelog file
mkdir debian/tmp
debchange --create --package x-test -v 1 "Test"

# Description header taken straight from example in deb-substvars(5)
echo 'Source: x-test

Package: x-test
Architecture: all
Description: foo application
 ${Description}
 .
 More text.' > debian/control
echo 'Description=foo is bar.${Newline}foo is great.' > debian/substvars

# Generate control file, output into stdout
dpkg-gencontrol -O

---

Note that I didn't test if this affects only Description (if it affects
other fields, the bug title is wrong).

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

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg-dev depends on:
ii  base-files    6.5
ii  binutils      2.22-5
ii  bzip2         1.0.6-1
ii  libdpkg-perl  1.16.1.2
ii  make          3.81-8.1
ii  patch         2.6.1-3
ii  xz-utils      5.1.1alpha+20110809-3

Versions of packages dpkg-dev recommends:
pn  build-essential          11.5
pn  fakeroot                 1.18.2-1
pn  gcc [c-compiler]         4:4.6.2-4
pn  gcc-4.5 [c-compiler]     4.5.3-12
pn  gcc-4.6 [c-compiler]     4.6.2-12
pn  gnupg                    1.4.11-3
pn  gpgv                     1.4.11-3
pn  libalgorithm-merge-perl  <none>

Versions of packages dpkg-dev suggests:
ii  debian-keyring  2011.12.01

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to