summaryrefslogtreecommitdiffstats
path: root/0001-build-install-tests-into-libexecdir.patch
blob: ef136fcbc58bfbc4d16403f7d1e74711635547da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From aa7e9bb17cb6f1cb3970f9e0ce72d0fdd89ceaf5 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenko@redhat.com>
Date: Tue, 22 Nov 2016 02:46:01 +0100
Subject: [PATCH] build: install tests into libexecdir

Tests are ELF files, so in case of multilib they will conflict. Using libexecdir will tell that this package is not multilib.
---
 src/tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/meson.build b/src/tests/meson.build
index 0aa8365..fd238a1 100644
--- a/src/tests/meson.build
+++ b/src/tests/meson.build
@@ -22,7 +22,7 @@ unit_tests = [
 foreach unit: unit_tests
   exe = executable(unit, unit + '.c',
                    install: true,
-                   install_dir: join_paths(graphene_datadir, 'installed-tests', 'graphene-1.0'),
+                   install_dir: join_paths(get_option('prefix'), get_option('libexecdir'), 'installed-tests', 'graphene-1.0'),
                    dependencies: graphene_dep,
                    include_directories: graphene_inc,
                    c_args: [
-- 
2.10.2