]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
wayland: Fix hardlink corruption issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2015 22:03:28 +0000 (23:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Jun 2015 13:20:17 +0000 (14:20 +0100)
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>
meta/recipes-graphics/wayland/wayland_1.6.0.bb

index 00713bff3f80b2207472d7e46078228586899c84..6413a0a15306a3afa0c1dd8238a36a9830d59f2a 100644 (file)
@@ -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/
 }