Skip to content

Conversation

mldulaney
Copy link

Open source software should, by definition, not be distributing binary files. Given the xz backdoor, these increase distrust.

Signed-off-by: Mairi Savanna Dulaney <[email protected]>
@psionic-k
Copy link
Contributor

Hello there, fellow Gentoo stage 1 user?

@vindarel
Copy link
Collaborator

thanks, we will merge this.

I'll wait a bit and look at our options to automate the build.

(Anyone is welcome to help)

@mldulaney
Copy link
Author

thanks, we will merge this.

I'll wait a bit and look at our options to automate the build.

(Anyone is welcome to help)

hi, how are these binaries built? i'd be happy to help set them up to build with the rest of lem at build time

@vindarel
Copy link
Collaborator

@mldulaney hey thanks for proposing.

Here's a lisp snippet that builds the binary:

;; thanks to April & May on Discord
(let* ((source (asdf:system-relative-pathname :lem-terminal "terminal.c"))
       (lib (asdf:system-relative-pathname
             :lem-terminal (format nil
                                   "~(lib/~A/~A/terminal.so~)"
                                   (uiop:operating-system)
                                   (uiop:architecture)))))
  (unless (probe-file lib)
    (ensure-directories-exist lib)
    #+darwin
    (uiop:run-program (format nil "cc ~A -I/opt/homebrew/include -L/opt/homebrew/lib -lvterm -o ~A -shared -fPIC" 
                              source lib))
    #-darwin
    (uiop:run-program (format nil "cc ~A -lvterm -o ~A -shared -fPIC" source lib))))

(it fails on my machine so it's a bit more difficult to test for me)

Example invocation:

cc /home/vindarel/lisp-projects/lem/extensions/terminal/terminal.c -lvterm -o /home/vindarel/lisp-projects/lem/extensions/terminal/lib/linux/x64/terminal.so -shared -fPIC

terminal.c:297:34: error: ‘VTermScreenCellAttrs’ has no member named ‘conceal’
  297 |   return terminal->lastCell.attrs.conceal;
[…]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants