Package: dpkg-dev
Version: 1.17.10
Severity: minor

If you remove a binary file, and then try to build source package with the --include-removal option, the error message is rather unhelpful:

$ apt-get source -qq hello
dpkg-source: info: extracting hello in hello-2.9
dpkg-source: info: unpacking hello_2.9.orig.tar.gz
dpkg-source: info: unpacking hello_2.9-1.debian.tar.xz
dpkg-source: info: applying 99-config-guess-config-sub

$ rm -v hello-2.9/po/pl.gmo
removed ‘hello-2.9/po/pl.gmo’

$ dpkg-source --include-removal -b hello-2.9/
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building hello using existing ./hello_2.9.orig.tar.gz
dpkg-source: error: cannot represent change to ../../../../../../dev/null: 
binary file contents changed
dpkg-source: error: add ../../../../../../dev/null in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: unrepresentable changes to source


-- System Information:
Debian Release: jessie/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

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

Versions of packages dpkg-dev depends on:
ii  base-files    7.3
ii  binutils      2.24.51.20140709-1
ii  bzip2         1.0.6-5
ii  libdpkg-perl  1.17.10
ii  make          4.0-8
ii  patch         2.7.1-5
ii  xz-utils      5.1.1alpha+20120614-2

--
Jakub Wilk


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

Reply via email to