1 From 116bc8f7a6034ce43053876a72a132fcd4e1e472 Mon Sep 17 00:00:00 2001
2 From: Alexander Kanavin <alex.kanavin@gmail.com>
3 Date: Wed, 20 Feb 2019 19:53:07 +0100
4 Subject: [PATCH] loaders.cache: depend on loaders being fully build
6 Otherwise, races have been observed:
7 https://autobuilder.yoctoproject.org/typhoon/#/builders/61/builds/310/steps/7/logs/step1b
9 Upstream-Status: Pending
10 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13 gdk-pixbuf/meson.build | 4 ++++
14 1 file changed, 4 insertions(+)
16 diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
17 index fc3eb33..4e7ed20 100644
18 --- a/gdk-pixbuf/meson.build
19 +++ b/gdk-pixbuf/meson.build
20 @@ -171,6 +171,7 @@ gdkpixbuf_dep = declare_dependency(link_with: gdkpixbuf,
21 # Now check if we are building loaders as installed shared modules
22 # We do this here because shared modules depend on libgdk-pixbuf
24 +dynamic_loaders_dep = []
28 @@ -189,6 +190,7 @@ foreach l: loaders
30 # We need the path to build loaders.cache for tests
31 dynamic_loaders += mod.full_path()
32 + dynamic_loaders_dep += mod
36 @@ -206,6 +208,7 @@ if enable_native_windows_loaders
38 install_dir: gdk_pixbuf_loaderdir)
39 dynamic_loaders += mod.full_path()
40 + dynamic_loaders_dep += mod
44 @@ -236,6 +239,7 @@ if not meson.is_cross_build()
45 loaders_cache = custom_target('loaders.cache',
46 output: 'loaders.cache',
48 + depends: [ dynamic_loaders_dep ],
50 gdk_pixbuf_query_loaders,