blob: 34ae64535dd34bf0b28f41a800bca93f02edbe30 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From 2b2450f6b7197bff4637c0283e8784500471d083 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 14 Dec 2015 00:50:01 +0000
4Subject: [PATCH 11/36] nss-mymachines: Build conditionally when
5 HAVE_MYHOSTNAME is set
6
7Fixes build failures when building with --disable-myhostname
8
9Upstream-Status: Pending
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 Makefile.am | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/Makefile.am b/Makefile.am
17index 82b6553..b3f3343 100644
18--- a/Makefile.am
19+++ b/Makefile.am
20@@ -4876,6 +4876,7 @@ SYSTEM_UNIT_ALIASES += \
21 BUSNAMES_TARGET_WANTS += \
22 org.freedesktop.machine1.busname
23
24+if HAVE_MYHOSTNAME
25 libnss_mymachines_la_SOURCES = \
26 src/nss-mymachines/nss-mymachines.sym \
27 src/nss-mymachines/nss-mymachines.c
28@@ -4896,6 +4897,7 @@ lib_LTLIBRARIES += \
29 libnss_mymachines.la
30
31 endif
32+endif
33
34 polkitpolicy_in_files += \
35 src/machine/org.freedesktop.machine1.policy.in
36--
371.8.3.1
38