* [PATCH] wayland: Fix hardlink corruption issue
@ 2015-06-11 22:03 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-06-11 22:03 UTC (permalink / raw)
To: openembedded-core
The way this code was working, the m4 file is hardlinked to the
copies which would be packaged and could lead to the native m4
file being used in the target packages.
By removing the file first the hardlink is broken and this avoids
corruption (since cp uses open to change the file contents).
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/recipes-graphics/wayland/wayland_1.6.0.bb b/meta/recipes-graphics/wayland/wayland_1.6.0.bb
index 00713bf..6413a0a 100644
--- a/meta/recipes-graphics/wayland/wayland_1.6.0.bb
+++ b/meta/recipes-graphics/wayland/wayland_1.6.0.bb
@@ -36,5 +36,6 @@ do_install_append_class-native() {
}
sysroot_stage_all_append_class-target () {
+ rm ${SYSROOT_DESTDIR}/${datadir}/aclocal/wayland-scanner.m4
cp ${STAGING_DATADIR_NATIVE}/aclocal/wayland-scanner.m4 ${SYSROOT_DESTDIR}/${datadir}/aclocal/
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-11 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-11 22:03 [PATCH] wayland: Fix hardlink corruption issue Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox