summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo/sudo/0001-Use-correct-path-to-init.d-and-tmpfiles.d-files.patch
blob: 2418689dac710c72083404dae7062e597f15144a (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
27
28
29
30
31
The makefile uses top_srcdir to find files that were created by configure, when
it should use top_builddir.

Upstream-Status: Submitted (http://bugzilla.sudo.ws/show_bug.cgi?id=708)
Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 src/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index f009e10..7acfb2d 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -165,11 +165,11 @@ install-dirs:
 
 install-rc: install-dirs
 	if [ -n "$(INIT_SCRIPT)" ]; then \
-	    $(INSTALL) $(INSTALL_OWNER) -m 0755 $(top_srcdir)/init.d/$(INIT_SCRIPT) $(DESTDIR)$(INIT_DIR)/sudo; \
+	    $(INSTALL) $(INSTALL_OWNER) -m 0755 $(top_builddir)/init.d/$(INIT_SCRIPT) $(DESTDIR)$(INIT_DIR)/sudo; \
 	    rm -f $(DESTDIR)$(RC_LINK); \
 	    ln -s $(INIT_DIR)/sudo $(DESTDIR)$(RC_LINK); \
 	elif test -n "$(tmpfiles_d)"; then \
-	    $(INSTALL) $(INSTALL_OWNER) -m 0644 $(top_srcdir)/init.d/sudo.conf $(DESTDIR)$(tmpfiles_d)/sudo.conf; \
+	    $(INSTALL) $(INSTALL_OWNER) -m 0644 $(top_builddir)/init.d/sudo.conf $(DESTDIR)$(tmpfiles_d)/sudo.conf; \
 	fi
 
 install-binaries: install-dirs $(PROGS)
-- 
2.1.4