Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to non-Linux UNIX #23

Open
marcastel opened this issue Dec 3, 2018 · 3 comments
Open

Port to non-Linux UNIX #23

marcastel opened this issue Dec 3, 2018 · 3 comments

Comments

@marcastel
Copy link

The project's title states this is a Linux utility. And so it is. I wanted to try it out on non-Linux UNIX, in particular macOS, but dependency on timerfd makes this a painful port... any ideas?

@FedeDP
Copy link
Owner

FedeDP commented Dec 3, 2018

Hi @marcastel! Yes, timerfd is one of the non-portable things in here. The other is UDisks watcher on sd-bus library, i think (but those can be disabled at build time).
Unfortunately this project is no more under active development. I started a port to cpp a while ago: ncursesFMpp, but it stalled too...
But a non-linux port was never considered.

I think your only choice is to port ncursesFM to use some poll-wrapping library (libuev, libae etc etc), this way it should achieve a good compatibility with non-linux os.

@marcastel
Copy link
Author

Thanks @FedeDP for your prompt reply. I like your project as a lean and easily customisable alternative to MC (5K vs 103k LOC). Hopefully the Christmas period will give me some time to explore this more and see if porting (or partial rewrite) is a worthwhile or not approach. Cheers and Merry Christmas :-)

@FedeDP
Copy link
Owner

FedeDP commented Dec 3, 2018

It would be great to let NcursesFM have a contributor (and i'd be very happy to give you write access to repository, if you feel hackish on this one); i'd say that ncursesFMpp would fit better as it was intended as a complete redesign of ncursesFM.
But if you feel more comfortable with C (i am too!) an ncursesFM2 is great.
I'm very open to review any PRs; in general, i think that ncursesFM has a clean code but it has not a great architecture; thus probably a rewrite with a better architecture and copying over single functions (eg: copy/paste etc etc) can be worth it.
I already thought about entirely re-writing it using my own libmodule, but again i haven't got much time to work on this lately :)

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

No branches or pull requests

2 participants