[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] make check-ctypes-python fails when executed from non src build direction

From: Noorul Islam K M <noorul_at_collab.net>
Date: Mon, 01 Nov 2010 13:41:55 +0530

I get the following error when I try executing

$ make check-ctypes-python

from build directory other then source directory.

-----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/run_all.py", line 22, in <module>
    import setup_path
  File "/home/noorul/projects/subversion/subversion/bindings/ctypes-python/test/se
tup_path.py", line 31, in <module>
    import csvn.core
  File "/home/noorul/projects/subversion/subversion/bindings/ctypes-python/csvn/co
re/__init__.py", line 20, in <module>
    import functions
ImportError: No module named functions
make: *** [check-ctypes-python] Error 1
-----------------------------------------------------------------------

Attached is the patch to fix this.

Log
[[[

Fix minor bug.

* build/run_ctypesgen.sh: Use source directory as target instead of build
  directory.

]]]

Thanks and Regards
Noorul

Index: build/run_ctypesgen.sh
===================================================================
--- build/run_ctypesgen.sh (revision 1029553)
+++ build/run_ctypesgen.sh (working copy)
@@ -86,4 +86,4 @@
 (cat $abs_srcdir/$cp_relpath/csvn/core/functions.py.in; \
  sed -e '/^FILE =/d' $output | \
  perl -pe 's{(\s+\w+)\.restype = POINTER\(svn_error_t\)}{\1.restype = POINTER(svn_error_t)\n\1.errcheck = _svn_errcheck}' \
- ) > $abs_builddir/$cp_relpath/csvn/core/functions.py
+ ) > $abs_srcdir/$cp_relpath/csvn/core/functions.py
Received on 2010-11-01 09:14:28 CET

This is an archived mail posted to the Subversion Dev mailing list.