[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg-buildpackage, dpatch and wrong permissions...



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frank Küster wrote:
> Claudio Moratti <maxer@knio.it> wrote:
> 
> 
>>On Wednesday 22 February 2006 16:27, Matthijs Mohlmann wrote:
>>
>>>Claudio Moratti wrote:
>>>
>>>>Hi *!
>>
>>[cut]
>>
>>>>I'm not able to find how fix this problem...
>>>>
>>>>suggestions?
>>>>
>>>>Thx a lot ;-)
>>>>
>>>>Claudio
>>>
>>>This is not really a problem. The point is that diff can't see in a diff
>>>file if a file is executable yes or no, before diff didn't shout this
>>>warning. Anyway my build here goes ok and have also some warnings about
>>>"0755 cannot be represented in diff" warnings. But they shouldn't harm
>>>the build.
>>
>>thanks for this explanation!
>>the build process ends correctly, of course, but I'm not able to understand 
>>why debian/patches files have not the rw-r--r-- perm...
>>
>>during the unpack of sources, probably, only debian/* files are chmod-ed... 
>>could be the reason?
> 
> 
> IIRC, dpatch doesn't call "patch -p<foo> -i debian/patches/<patchfile>",
> but instead it executes the file, and if it's just a normal unified
> diff, there's some magic in the header that causes patch to be called
> properly.  Therefore dpatch probably requires that patches be executable
> and just sets the permissions as needed.
> 
> Regards, Frank

If I understand the code of dpatch right then the patch will be chmodded
+x automatically.

Search for "chmod +x" in /usr/bin/dpatch and see what is happening after
that.

That's also the reason why the patches are executable afterwards.

Regards,

Matthijs Mohlmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/K3w2n1ROIkXqbARAhe2AJ4woO9HQaAc3aOIxkustAmQ3apWlACgnxqG
5fp+v7C5306Wj18S6D31Ehk=
=QNlx
-----END PGP SIGNATURE-----



Reply to: