From 11fd5a86aaca4d3d801eed778596817368ed0b35 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Tue, 24 May 2011 18:46:39 +0200
Subject: [PATCH] Fix build breakage

Sorry, I already had PYTHONPATH exported in my env, and as I said I
wasn't able to test this on buildbot.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 78cefde16..a269097c3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -818,7 +818,8 @@ htools/Ganeti/HTools/Version.hs: htools/Ganeti/HTools/Version.hs.in vcs-version
 
 htools/Ganeti/Constants.hs: htools/Ganeti/Constants.hs.in \
 	lib/constants.py lib/_autoconf.py $(CONVERT_CONSTANTS)
-	set -e; { cat $< ; $(CONVERT_CONSTANTS); } > $@
+	set -e; \
+	{ cat $< ; PYTHONPATH=$(abs_top_srcdir) $(CONVERT_CONSTANTS); } > $@
 
 lib/_autoconf.py: Makefile vcs-version | lib/.dir
 	set -e; \
-- 
GitLab