Re: Fricas debian

23 views
Skip to first unread message

Ralf Hemmecke

unread,
Jan 9, 2020, 11:03:50 AM1/9/20
to fricas-devel
Hi Waldek,

I've just looked into a .fasl file.

Do you know why in the installed version of such a file there appears
something like

#!/tmp/hemmecke/[more stuff]/bin/interpsys --script

as the first line?

Is a .fasl File a script? Or is this just coming from some bug in our
build system.

Note that the line is in the .fasl file in the install directory.
'interpsys' should be irrelevant anyway.

Ralf

Waldek Hebisch

unread,
Jan 9, 2020, 11:11:51 AM1/9/20
to fricas...@googlegroups.com
On Thu, Jan 09, 2020 at 05:03:48PM +0100, Ralf Hemmecke wrote:
> Hi Waldek,
>
> I've just looked into a .fasl file.
>
> Do you know why in the installed version of such a file there appears
> something like
>
> #!/tmp/hemmecke/[more stuff]/bin/interpsys --script
>
> as the first line?

AFAIK this is feature of sbcl: you can make .fasl file executable
if you wish (and Lisp source were written in way so that it makes
sense).

--
Waldek Hebisch

Ralf Hemmecke

unread,
Jan 9, 2020, 11:21:32 AM1/9/20
to fricas...@googlegroups.com, al...@aiei.ch
>> #!/tmp/hemmecke/[more stuff]/bin/interpsys --script
>>
>> as the first line?
>
> AFAIK this is feature of sbcl: you can make .fasl file executable
> if you wish (and Lisp source were written in way so that it makes
> sense).

OK, but these lines certainly make no sense in the installed system, the
build directory will be gone.

As I understand Alex (CC to him) building the debian package chokes on
these lines inthe sense that it produces lots of warnings like this

W: fricas: unusual-interpreter
usr/lib/x86_64-linux-gnu/fricas/target/x86_64-pc-linux-gnu/algebra/YSTREAM.fasl
#!/tmp/debian/fricas-1.3.5/build/x86_64-pc-linux-gnu/bin/interpsys

Alex, what is debuild actually checking so that these warnings appear?

Ralf

oldk1331

unread,
Jan 9, 2020, 10:13:55 PM1/9/20
to fricas...@googlegroups.com, al...@aiei.ch
Hi Ralf, following patch can disable this "#!":

diff --git a/src/lisp/fricas-lisp.lisp b/src/lisp/fricas-lisp.lisp
index ed9201da..a42e9dd9 100644
--- a/src/lisp/fricas-lisp.lisp
+++ b/src/lisp/fricas-lisp.lisp
@@ -993,6 +993,8 @@

#-(or :ecl :poplog)
(defun fricas_compile_file (f output-file)
+ ;; do not embed sbcl/interpsys pathname into fasl files
+ #+:sbcl(setf sb-ext:*runtime-pathname* nil)
(compile-file f :output-file (relative-to-absolute output-file)))

(defun fricas_compile_fasl (f output-file)


- Qian

Ralf Hemmecke

unread,
Jan 11, 2020, 3:47:33 AM1/11/20
to fricas-devel, gur...@phys.ethz.ch
Hi Qian,

That patch is obviously not enough.

Now there is

./src/interp/lisplib.fasl

without this hash-bang line, but for example

/src/aldor/lib/axlit.fasl

still shows

#!/tmp/hemmecke/target/x86_64-linux-gnu/bin/FRICASsys --script

and also in the intall directory appear the fasl files with

#!/tmp/hemmecke/x86_64-linux-gnu/bin/interpsys --script

Ralf
Reply all
Reply to author
Forward
0 new messages