]> code.ossystems Code Review - openembedded-core.git/commit
patch: Extend to native/nativesdk and depend upon
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Feb 2020 22:20:35 +0000 (22:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Feb 2020 13:34:08 +0000 (13:34 +0000)
commitfd3bd61a6fe5190c575dc968f3a0be9c1cbf21ed
treead938104e4c2070013dccaf390b39b6fe12826f7
parent6bdc5f787af46e9c849947cad06ad40aa401b767
patch: Extend to native/nativesdk and depend upon

There is a bug in patch 2.7.3 and earlier where index lines
in patches can change file modes when they shouldn't:
http://git.savannah.gnu.org/cgit/patch.git/patch/?id=82b800c9552a088a241457948219d25ce0a407a4

This leaks into debug sources in particular (e.g. tcp-wrappers where
source files are read-only). Add the dependency to target recipes
to avoid this problem until we can rely on 2.7.4 or later.

We could try and remove all index lines from patch files but it will be a
losing battle. We could try and identify all the recipes which change
modes on files in patches but again, its a losing battle.

Instead, compromise and have patch-native as a dependency
for target recipes. We use patch-replacement-native since patch-native
is in ASSUME_PROVIDED.

Also add nativesdk-patch to buildtools-tarball.

[YOCTO #13777]

(From OE-Core rev: 5ed0840c93804488cd1c1aba6cb382b2434714a5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/patch.bbclass
meta/recipes-core/meta/buildtools-tarball.bb
meta/recipes-devtools/patch/patch_2.7.6.bb