Bug#1065597: racket: Inclusion of mzdyn.o in the binary package

2024-03-09 Thread Rafael Laboissière

* David Bremner  [2024-03-08 20:23]:


Rafael Laboissière  writes:


At any rate, I wonder why the following mzscheme code:

 (begin
  (require dynext/link)
  (with-handlers
   (((lambda args #t) (lambda args #f)))
   (for-each (lambda (x) (printf "~a" x))
 (expand-for-link-variant (current-standard-link-libraries)



I'm not sure what will come of it, but I have reported this issue as

   https://github.com/racket/cext-lib/issues/4


Great, thanks !

I have already added a comment to that issue.

I haven't marked this Debian bug as forwarded as I believe they are 
different bugs.


Indeed, these are different, although interrelated, bugs.

Best,

Rafael



Bug#1065597: racket: Inclusion of mzdyn.o in the binary package

2024-03-08 Thread David Bremner
Rafael Laboissière  writes:

> At any rate, I wonder why the following mzscheme code:
>
>  (begin
>   (require dynext/link)
>   (with-handlers
>(((lambda args #t) (lambda args #f)))
>(for-each (lambda (x) (printf "~a" x))
>  (expand-for-link-variant 
> (current-standard-link-libraries)
>

I'm not sure what will come of it, but I have reported this issue as

https://github.com/racket/cext-lib/issues/4

I haven't marked this Debian bug as forwarded as I believe they are
different bugs.



Bug#1065597: racket: Inclusion of mzdyn.o in the binary package

2024-03-07 Thread David Bremner
Rafael Laboissière  writes:

>
> However, it does not work because the file mzdyn.o is needed and 
> cannot be found anywhere. Indeed, this file is mentioned in the Racket 
> documentation.[*]
>

My knowledge here is incomplete, and I'd be happy to be corrected, but:

I think that documentation relates to the old "bc" backend of racket.
For most architectures we are using the new "cs" backend (and will
possibly migrate the remaining architectures).  So it may not be
possible to do the same kind of linking as was done with the old
backend.



Bug#1065597: racket: Inclusion of mzdyn.o in the binary package

2024-03-07 Thread Rafael Laboissière
Package: racket
Version: 8.10+dfsg1-2
Severity: wishlist

Dear Maintainer,

We are updating the Debian package for SWIG (a generator of scripting 
interfaces to C/C++ code), in order to include support for 
MzScheme/Racket.

However, it does not work because the file mzdyn.o is needed and 
cannot be found anywhere. Indeed, this file is mentioned in the Racket 
documentation.[*]

The SWIG's configure script try to find the path for that file by 
running this command:

mzscheme --eval '(begin (require dynext/link) (with-handlers (((lambda args 
#t) (lambda args #f))) (for-each (lambda (x) (printf "~a" x)) 
(expand-for-link-variant (current-standard-link-libraries)'

which yields:

/usr/lib/racket/mzdyn.o

Subsequently, the activation of the MzScheme support fails because this 
path does not exist.

I see that, in the source for the Debian package racket, there is a 
file src/bc/dynsrc/mzdyn.c, that could be compiled into mzdyn.o and 
installed in /usr/lib/racket/.

Do you think that this would be possible?

Best,

Rafael Laboissière

[*] 
https://docs.racket-lang.org/inside/Writing_Racket_Extensions.html#(part._.C.G.C_.Extensions)