blob: 1b24c39ce8f5ef79d9503a0236a36196ec71202f [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From aed002cd9ff9e8f972120fbac33b4a65aba952e1 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Tue, 25 Sep 2012 10:28:33 +0200
4Subject: [PATCH] gnome-doc-utils.make: sysrooted pkg-config
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9same approach as used used in gnome-disk-utility:
10
11In cross environment we have to prepend the sysroot to the path found by
12pkgconfig since the path returned from pkgconfig does not have sysroot prefixed
13it ends up using the files from host system. Now usually people have gnome installed
14so the build succeeds but if you dont have gnome installed on build host then
15it wont find the files on host system and packages using gnome-doc-utils wont
16compile.
17
18This should work ok with non sysrooted builds too since in those cases PKG_CONFIG_SYSROOT_DIR
19will be empty
20
21Upstream-Status: pending
22
23Signed-off-by: Andreas MΓΌller <schnitzeltony@googlemail.com>
24---
25 gnome-doc-utils.make | 10 +++++-----
26 1 files changed, 5 insertions(+), 5 deletions(-)
27
28diff --git a/gnome-doc-utils.make b/gnome-doc-utils.make
29index 42d9df3..f71bbfa 100644
30--- a/gnome-doc-utils.make
31+++ b/gnome-doc-utils.make
32@@ -133,11 +133,11 @@ _DOC_ABS_SRCDIR = @abs_srcdir@
33 _xml2po ?= `which xml2po`
34 _xml2po_mode = $(if $(DOC_ID),mallard,docbook)
35
36-_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
37-_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
38-_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
39-_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
40-_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
41+_db2html ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2html gnome-doc-utils`
42+_db2omf ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
43+_chunks ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
44+_credits ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
45+_ids ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
46
47 if ENABLE_SK
48 _ENABLE_SK = true
49--
501.7.6.5
51