Skip to content

Remove readline from lua#80

Open
blt wants to merge 1 commit into
jcmoyer:masterfrom
blt:master
Open

Remove readline from lua#80
blt wants to merge 1 commit into
jcmoyer:masterfrom
blt:master

Conversation

@blt

@blt blt commented Apr 7, 2017

Copy link
Copy Markdown

The cernan use-case for lua is one that does not use readline. On
systems that attempt to statically linked cernan against MUSL libc the
readline dependency breaks the build on account of the difficulty of
building readline in that environment. I could not determine if there
were a cleaner way to disable readline other than but permanently.
That is, maybe this approach is a hack.

I think disabling readline is okay here as the focus of the library
appears to be the use of lua in a purely embedded environment.

Signed-off-by: Brian L. Troutwine blt@postmates.com

@sagebind

sagebind commented Apr 7, 2017

Copy link
Copy Markdown
Contributor

I think readline is only used for the lua command-line interpreter, right?

@blt

blt commented Apr 7, 2017

Copy link
Copy Markdown
Author

@sagebind That's my understanding, yeah. I went through the C source to confirm and believe that to be correct.

The cernan use-case for lua is one that does not use readline. On
systems that attempt to statically linked cernan against MUSL libc the
readline dependency breaks the build on account of the difficulty of
building readline in that environment. I could not determine if there
were a cleaner way to disable readline other than but permanently.
That is, maybe this approach is a hack.

I _think_ disabling readline is okay here as the focus of the library
appears to be the use of lua in a purely embedded environment.

Signed-off-by: Brian L. Troutwine <blt@postmates.com>
@SirVer

SirVer commented Jan 20, 2018

Copy link
Copy Markdown
Contributor

Readline also gives me a headache using this library with https://github.com/japaric/trust, I would appreciate if this would be merged!

@blt

blt commented Jan 20, 2018

Copy link
Copy Markdown
Author

@SirVer I forked this library to https://github.com/blt/mond which removes the readline issue per this PR, updates the codebase some based on clippy suggestions. I aim to do more work in support of https://github.com/postmates/cernan.

Perhaps mond will work for you? It's on crates if you want to give it a try.

@SirVer

SirVer commented Jan 20, 2018

Copy link
Copy Markdown
Contributor

Unfortunately, mond still contains the problem I describe in #91, so it is only a partial fix for me. I maintain my own fork (but retaining the fork history) with the changes I needed to make to support the architectures I care about.

I have been watching your talk about cernan and am very intrigued by it. I hope I get a chance to test it out at work.

@blt

blt commented Jan 20, 2018

Copy link
Copy Markdown
Author

Unfortunately, mond still contains the problem I describe in #91, so it is only a partial fix for me. I maintain my own fork (but retaining the fork history) with the changes I needed to make to support the architectures I care about.

@SirVer I'd be happy to incorporate your work into mond.

I have been watching your talk about cernan and am very intrigued by it. I hope I get a chance to test it out at work.

Thanks! Let us know if you run into any issues and we'll work them.

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