[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] Hack to fix debugsys

From: David MENTRE
Subject: [Axiom-developer] Hack to fix debugsys
Date: Sat, 26 Jul 2003 16:49:22 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Hello Tim,

Here is a quick hack that fixes the debugsys issue (debugsys that cannot
be build because the path are hard coded):

diff -u axiom-cvs-2003-06-25/new/new/src/interp/Makefile.pamphlet 
--- axiom-cvs-2003-06-25/new/new/src/interp/Makefile.pamphlet   Sat Jun 28 
00:27:27 2003
+++ axiom-cvs-2003-06-25-debugsys/new/new/src/interp/Makefile.pamphlet  Sat Jul 
26 16:35:17 2003
@@ -903,11 +903,16 @@
 are echoed into a temporary file which gets loaded into the lisp image.
 We simply captured that temporary file, replaced the .o files with .lisp
 files (or .lsp or .clisp) and saved it here.
+Please notice that while building {\bf debugsys.lisp}, we substitute the
+hard coded path [[/home/axiomgnu/new]] with the value of [[$SPD]]
+variable. It is a quick hack but better than nothing.
 <<debugsys.lisp (MID from IN)>>=
 ${MID}/debugsys.lisp: ${IN}/debugsys.lisp.pamphlet
        @ echo 39 making ${MID}/debugsys.lisp from ${IN}/debugsys.lisp.pamphlet
        @ (cd ${MID} ; \
-          ${SPADBIN}/notangle ${IN}/debugsys.lisp.pamphlet >debugsys.lisp )
+          ${SPADBIN}/notangle ${IN}/debugsys.lisp.pamphlet | \
+          sed -e "s@/home/axiomgnu/new/@${SPD}/@g" > debugsys.lisp )
 <<debugsys.lisp.dvi (DOC from IN)>>=
diff -u axiom-cvs-2003-06-25/new/new/src/interp/debugsys.lisp.pamphlet 
--- axiom-cvs-2003-06-25/new/new/src/interp/debugsys.lisp.pamphlet      Sat Jul 
12 18:43:09 2003
+++ axiom-cvs-2003-06-25-debugsys/new/new/src/interp/debugsys.lisp.pamphlet     
Sat Jul 26 16:37:17 2003
@@ -28,12 +28,9 @@
 as the only use for a debugsys image is to debug a deep system
 problem in interpsys. Thus we can assume that all of these files
 exist. Note that these files are {\bf hard coded} to assume they
-live under {\bf /home/axiomgnu/new}. You need to do a global
-search and replace if you don't place them there. We should write
-lisp code to grab the {\bf AXIOM} shell variable but since (a)
-there is hardly any reason to use this level of debugging and (b)
-if you're screwing around here you've got much harder problems
-to solve so this is not an issue.
+live under {\bf /home/axiomgnu/new}. A global search and replace is made
+by the Makefile (see Makefile.dvi in same directory) to replace this
+hard coded path with the current absolute path.
 For debugging purposes you can add anything to this file
 and it will show up in the debugsys image. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]