Projet

Général

Profil

0001-fix-failing-build-if-python-points-to-python3-instea.patch

Nicolas Barbey, 11 mai 2016 18:02

Télécharger (1,37 ko)

Voir les différences:

Subject: [PATCH 1/2] fix failing build if python points to python3 instead of
 python2.

In archlinux, python points to python3 instead of python2.
This breaks the build at two locations which do not make use of the
$(PYTHON) variable.
 bindings/python/tests/Makefile.am | 2 ++
 lasso/Makefile.am                 | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
bindings/python/tests/Makefile.am
1 1
MAINTAINERCLEANFILES = Makefile.in
2

  
3
LOG_COMPILER = $(PYTHON)
2 4
TESTS = #
3 5

  
4 6
TESTS_ENVIRONMENT=TOP_SRCDIR=$(top_srcdir)
lasso/Makefile.am
91 91
endif
92 92

  
93 93
$(srcdir)/errors.c: $(srcdir)/errors.h $(srcdir)/build_strerror.py
94
	python $(srcdir)/build_strerror.py $(srcdir) >.errors.c.new
94
	$(PYTHON) $(srcdir)/build_strerror.py $(srcdir) >.errors.c.new
95 95
	if ! cmp -s $(srcdir)/errors.c .errors.c.new; then \
96 96
	mv -f .errors.c.new $@; else \
97 97
	rm .errors.c.new; fi
98
-