From 903cf70f3aa616a0ec1fa1d5b7f745c2e438014e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 11 Jun 2015 23:03:28 +0100 Subject: wayland: Fix hardlink corruption issue 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). (From OE-Core rev: 8f3be1925b9da20526a722149b03f697247ea1bf) (From OE-Core rev: 2ac51bcace97d16ca678d85e0100611fecfd818c) Signed-off-by: Richard Purdie --- meta/recipes-graphics/wayland/wayland_1.6.0.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta') diff --git a/meta/recipes-graphics/wayland/wayland_1.6.0.bb b/meta/recipes-graphics/wayland/wayland_1.6.0.bb index 00713bff3f..6413a0a153 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/ } -- cgit v1.2.3-54-g00ecf