hidapi: fix the patch renaming a file
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 25 May 2016 09:42:30 +0000 (11:42 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 25 May 2016 20:57:59 +0000 (22:57 +0200)
commitae2355a07f2ade3e8afd83da8185e740f3015a70
tree69aed7311b874c8af5ce196e18d6a2f4b1e4db75
parentda4264210f14259961352b9be39a4e1b10e6ed28
hidapi: fix the patch renaming a file

The patch
0001-hidtest-dont-use-a-C-source-file-since-it-s-pure-C.patch in the
hidapi package needs to rename a file from .cpp to .c to avoid a
dependency on C++. This renaming currently uses the Git-way of
describing renames in patches. While this is interpreted properly by
recent enough versions of the 'patch' tool, it is ignored and not
understood by older versions of 'patch'. Due to this, with these older
versions of 'patch', the file is not renamed, and it causes a build
failure.

We fix this by not using the Git-like way of describing rename, but
rather using the old-style way of doing renames. It makes the patch
longer, but compatible with older versions of 'patch'.

Fixes:

  http://autobuild.buildroot.org/results/d7509d9fdf8f86332a023358a740975f535eafef/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/hidapi/0001-hidtest-dont-use-a-C-source-file-since-it-s-pure-C.patch