Goal: I want to create a modified Debian source package, namely the official rrdtool package + "some changes". One of these changes is the addition of an executable script.
I have this recipe for patching packages that I've used for many years:
dget http://bla/bla/bla.dsc
cd bla-1.0
(hack hack hack...)
dpkg-source -b .
That works if the patches don't chmod any files, but with a patch that introduces an executable file, following the recipe above produces this message:
dpkg-source: warning: executable mode 0755 of 'foobar' will not be represented in diff
And sure enough, when I unpack my new source package foobar
exists but is not executable.
As I understand it, quilt handles patches based on GNU diff+patch. GNU diff+patch don't handle file permissions. Hmm...
So how do I introduce an executable script into a source package maintained by quilt?
Googling has not been helpful. It seems others have asked, but without replies.
I'm aware that I could simply make my modifications to the *.orig.tar.gz
archive, but I'd like to avoid that if at all possible. I'm just amazed that this has been so difficult...