On Wed, Dec 27, 2023 at 06:23:05PM +0800, Qian Yun wrote:
> I believe this patch is the correct way to fix this patch.
> 
> - Qian
> 
> diff --git a/src/doc/Makefile.in b/src/doc/Makefile.in
> index e968affd..542f6cba 100644
> --- a/src/doc/Makefile.in
> +++ b/src/doc/Makefile.in
> @@ -255,7 +255,7 @@ GEN_HTFILES = xmpexp coverex gloss
>  # The reason for this delayed execution is that generation of the .xpm
>  # files in *.VIEW/ without the xvfb-run program will pop up image
>  # windows in X and will make working during compilation impossible.
> -# The intro.htex and util.ht files are not relevant for image generation.
> +# The util.ht file is used during generation of interpsys.
>  VIEWPORTFILES = coverex \
>    $(shell grep -lRe 'graphpaste{\|spadgraph{' ${srcdir}/ht/*
> ${srcdir}/htex/* \
>            | sed 's,.*/,,;s,\..*,,' \
> diff --git a/src/interp/Makefile.in b/src/interp/Makefile.in
> index 0576330a..66e289a3 100644
> --- a/src/interp/Makefile.in
> +++ b/src/interp/Makefile.in
> @@ -132,6 +132,7 @@ makeint.lisp: ../boot/lobj_lst
>               ' (quote (' >> makeint.lisp
>         cat ../boot/lobj_lst >> makeint.lisp
>         echo '))))' >> makeint.lisp
> +       echo '(initroot)' >> makeint.lisp
>         echo '(build-interpsys' \
>           '(quote ($(patsubst %, "%", ${ALL_OBJS}))))' >> makeint.lisp
>         @ echo '(in-package "BOOT")' >> makeint.lisp

Using '$spadroot' in sources we need to call '(initroot)' first,
so we should do the above.

But thinking about HyperDoc, I see another problem: FriCAS is
supposed to use current 'util.ht' not a cached copy from the
past.  Long ago Spad compiler was autoloaded and 'util.ht' was
read as a side effect.  Now all files are included in the
image and side effect take place during image build.  We should
defer call to 'buildHtMacroTable()', either do this at FriCAS
startup or on first use of ')compile' (I think it is used only
for compilation).
-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/ZYyztBsLexDMJBc_%40fricas.org.

Reply via email to