|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
|||||||||||||||||||||||||||||||||||||||||||||||||
2012年06月28日(木) 旧暦 [n年日記] [更新:"2013/04/21 21:45:36"]#1 [NetBSD][pkgsrc] automake problem on elisp-comp
I had written the same thing in my diary on
2012/04/13
.
But it doesn't seem to be found from google search with the keyword Cannot open load file: tc-sysdep.
So the memo for that:
I've got the problem
In toplevel form: eelll.el:29:1:Error: Cannot open load file: tc-sysdep while compiling tc-2.3.1 (pkgsrc/wip/tc-svn). It is really automake problem and to be fixed with the patch: --- share/automake-1.12/elisp-comp.dist 2012-06-20 16:26:37.000000000 +0900 +++ share/automake-1.12/elisp-comp 2012-06-28 11:33:50.000000000 +0900 @@ -75,7 +75,7 @@ ( cd $tempdir - echo "(setq load-path (cons nil load-path))" > script + echo "(setq load-path (cons "../" (cons nil load-path)))" > script $EMACS -batch -q -l script -f batch-byte-compile *.el || exit $? mv *.elc .. ) || exit $?It is actually the patch for devel/automake. The bug report for automake seems to be sent to bug-automake at gnu org as described at @ draft for the report:
We have following line in automake-1.12.1/lib/elisp-comp.
73 mkdir $tempdir 74 cp "$@" $tempdir 75 76 ( 77 cd $tempdir 78 echo "(setq load-path (cons nil load-path))" > script 79 $EMACS -batch -q -l script -f batch-byte-compile *.el || exit $? 80 mv *.elc .. 81 ) || exit $? 82 83 (exit 0); exit 0It seems to me the intention of line 78 is to set load-path to add default directory on top of existing load-path. This 'script' is OK if the file to compile is only one in the directory. But if some files are in the directory there and we will compile file by file on the same directory, there may be a possibility that some files load another file in the same directory. In that case this 'script' fails to read such ones. I do have problem compiling *.el files with tc-2.3.1 (svn version) Following patch fixes this type of problem, thanks a lot. By the way, the same patch was once proposed as http://osdir.com/ml/sysutils.automake.patches/2003-01/msg00004.html and fix seems to have made, but real line was dropped with unknown reason. --- lib/elisp-comp.orig 2012-06-01 22:47:10.000000000 +0900 +++ lib/elisp-comp 2012-06-28 13:28:44.000000000 +0900 @@ -75,7 +75,7 @@ ( cd $tempdir - echo "(setq load-path (cons nil load-path))" > script + echo "(setq load-path (cons \"../\" (cons nil load-path)))" > script $EMACS -batch -q -l script -f batch-byte-compile *.el || exit $? mv *.elc .. ) || exit $?I've submitted the bug-report and now it is numbered as #11806 . Then I need a home work to write a small test code. ( つっこみ )
|
最近の日記 2025年02月13日 ・dvipdfmx ICC profile format spec. version 4.3.0 2025年01月29日 ・ham/wsjtx 2025年01月27日 ・wip/wsjtx 5.4.2 2025年01月25日 ・ham/wsjtx 2025年01月15日 ・今更 advent calendar | ||