diff options
Diffstat (limited to 'meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch')
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch b/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch new file mode 100644 index 0000000000..3d772a5f8a --- /dev/null +++ b/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From c8211ad99ccaa4af4a75e0ba639527267fcfd69e Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:17:19 +0200 | ||
4 | Subject: [PATCH 2/4] Prefix sysroot path to introspection tools path. | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | libdnf/CMakeLists.txt | 4 ++-- | ||
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/libdnf/CMakeLists.txt b/libdnf/CMakeLists.txt | ||
13 | index 63f07bf..837792b 100644 | ||
14 | --- a/libdnf/CMakeLists.txt | ||
15 | +++ b/libdnf/CMakeLists.txt | ||
16 | @@ -133,7 +133,7 @@ if (GOBJECT_INTROSPECTION_FOUND) | ||
17 | set(GIR_TYPELIB "${GIR_PREFIX}.typelib") | ||
18 | |||
19 | add_custom_command(OUTPUT ${GIR_XML} | ||
20 | - COMMAND env CFLAGS=${CMAKE_C_FLAGS} ${GOBJECT_INTROSPECTION_1.0_G_IR_SCANNER} | ||
21 | + COMMAND env CFLAGS=${CMAKE_C_FLAGS} $ENV{PKG_CONFIG_SYSROOT_DIR}${GOBJECT_INTROSPECTION_1.0_G_IR_SCANNER} | ||
22 | --namespace=Dnf | ||
23 | --nsversion=${DNF_SO_VERSION}.0 | ||
24 | --library-path=${CMAKE_CURRENT_BINARY_DIR} | ||
25 | @@ -153,7 +153,7 @@ if (GOBJECT_INTROSPECTION_FOUND) | ||
26 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
27 | |||
28 | add_custom_command(OUTPUT ${GIR_TYPELIB} | ||
29 | - COMMAND ${GOBJECT_INTROSPECTION_1.0_G_IR_COMPILER} | ||
30 | + COMMAND $ENV{PKG_CONFIG_SYSROOT_DIR}${GOBJECT_INTROSPECTION_1.0_G_IR_COMPILER} | ||
31 | -o ${GIR_TYPELIB} | ||
32 | ${GIR_XML} | ||
33 | DEPENDS ${GIR_XML} | ||
34 | -- | ||
35 | 2.11.0 | ||
36 | |||