]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4369. [bug] Fix 'make' and 'make install' out-of-tree python
authorMark Andrews <marka@isc.org>
Mon, 23 May 2016 23:50:23 +0000 (09:50 +1000)
committerMark Andrews <marka@isc.org>
Mon, 23 May 2016 23:50:23 +0000 (09:50 +1000)
                        support. [RT #42484]

CHANGES
bin/python/Makefile.in
bin/python/isc/Makefile.in
bin/python/isc/tests/Makefile.in

diff --git a/CHANGES b/CHANGES
index 4618d90ae678ab3538b8d4770cec65529fa4cd52..769e35c913ce0d9b2a6474e8fb9b063e6172fdd1 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
        --- 9.11.0a2 released ---
 
+4369.  [bug]           Fix 'make' and 'make install' out-of-tree python
+                       support. [RT #42484]
+
 4368.  [bug]           Fix a crash when calling "rndc stats" on some
                        Windows builds because some Visual Studio compilers
                        generated crashing code for the "%z" printf()
index 3920a8072a200eed6d95459913e4b71ffe277e7d..085b3485cd1a2293711c681e19d5f5bab1763ce7 100644 (file)
@@ -59,7 +59,7 @@ install:: ${TARGETS} installdirs
        ${INSTALL_DATA} ${srcdir}/dnssec-checkds.8 ${DESTDIR}${mandir}/man8
        ${INSTALL_DATA} ${srcdir}/dnssec-coverage.8 ${DESTDIR}${mandir}/man8
        ${INSTALL_DATA} ${srcdir}/dnssec-keymgr.8 ${DESTDIR}${mandir}/man8
-       test -z "${PYTHON}" || ${PYTHON} setup.py install --prefix=${DESTDIR}${prefix}
+       test -z "${PYTHON}" || ${PYTHON} ${srcdir}/setup.py install --prefix=${DESTDIR}${prefix}
 
 clean distclean::
        rm -f ${TARGETS}
index 04953990a00e7f7bebb49d0ca134d92b161fdb78..80fa0ce5761ca477d7c05356501cccde74386e82 100644 (file)
@@ -33,8 +33,8 @@ TARGETS =     parsetab.py
        $(PYTHON) -m compileall .
 
 parsetab.py: policy.py
-       $(PYTHON) policy.py parse /dev/null > /dev/null
-       $(PYTHON) -m parsetab
+       $(PYTHON) ${srcdir}/policy.py parse /dev/null > /dev/null
+       PYTHONPATH=${srcdir} $(PYTHON) -m parsetab
 
 check test: subdirs
 
index baca4ff25b521ec296222c1df5ed541f8cbfcc92..0b4b511fe51814aadfcf7a99fb96ce89720b08e6 100644 (file)
@@ -26,7 +26,7 @@ PYTESTS =     dnskey_test.py policy_test.py
 
 check test:
        for test in $(PYTESTS); do \
-               $(PYTHON) $$test; \
+               PYTHONPATH=${srcdir}/../.. $(PYTHON) ${srcdir}/$$test; \
        done
 
 clean distclean::