Package: maint-guide Version: 1.2.14 Severity: normal *** Please type your report below this line ***
I wanted to create a debian package of a program that had no icon and desktop file upstream. So I created both and build my package according to the steps given in the Debian New Maintainers' Guide. Unfortunately, dpkg-buildpackage -rfakeroot failed with the following error message: dpkg-source: cannot represent change to debian/icon.png: binary file contents changed (I actually used <program name>.png for the icon instead of just "icon.png", but you get the idea...) I mailed Josip Rodin about the problem and he told me the following: > It doesn't actually work like that, you would have to put it in the source > tarball, which would in turn either make your package falsely "native" or > taint the original tarball, so this would all be evil and wrong :) > > You can do two things: submit the binary file for inclusion upstream ASAP, > and in the meantime you could probably get by with put an uuencoded version > in the debian/ directory, and then uudecode/uuencode it during the build > process (in the build and clean rules, respectively). Upstream is not reacting but I really want to build the package! So here is what I did: 1) sudo apt-get install sharutils 2) uuencode -m icon.png icon.png > icon.png.uue 3) added the following line to the install target of debian/rules uudecode -o debian/icon.png debian/icon.png.uue 4) added the following line to the clean target of debian/rules rm -f debian/icon.png I think this is important and helpful information that should be added to "Chapter 3 - Modifying the source". Thanks -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash maint-guide depends on no packages. maint-guide recommends no packages. Versions of packages maint-guide suggests: pn debian-policy <none> (no description available) pn developers-reference <none> (no description available) pn devscripts <none> (no description available) pn dh-make <none> (no description available) pn doc-base <none> (no description available) pn dupload | dput <none> (no description available) pn fakeroot <none> (no description available) pn linda <none> (no description available) pn lintian <none> (no description available) pn pbuilder <none> (no description available) -- 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