hns - 日記自動生成システム - Version 2.19.9

先月 2012年06月 来月
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
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 0
It 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.



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)