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

rb-inotify dependency can't be installed on openwrt #18

Open
ares opened this issue Dec 17, 2020 · 3 comments
Open

rb-inotify dependency can't be installed on openwrt #18

ares opened this issue Dec 17, 2020 · 3 comments

Comments

@ares
Copy link
Member

ares commented Dec 17, 2020

Hello,

the plugin indicates, this can be used on openwrt, which I'm trying to achieve right now. However it depends on rb-inotify, which I'm not able to install. Even with ruby-dev and ruby-mkmf packages, the gem fails to build native extensions, due to libffi-dev missing. That does not seems to be available for openwrt. How do you overcome this on your openwrt environments?

@ares
Copy link
Member Author

ares commented Dec 17, 2020

@ananace you may actually know :-)

btw this dependency is missing in gemspec, we rely on dhcp isc module to require that

@ananace
Copy link
Member

ananace commented Dec 17, 2020

OpenWrt is not intended to be developed on, hence the lack of things like libffi-dev. It can still be built though, it just requires a separate machine with an OpenWrt development environment, which is a bit of a pain - and not really something I can assist with as I gave up on that avenue myself when I realized what kind of a hassle it was.
Personally, I'm running an LXC container with Alpine in it to host the smart-proxy, into which I've then mounted the configuration, and on top of that is a tiny host-side daemon that triggers a configuration reload when the smart-proxy touches a certain file.

I could write up some examples for how to do that particular setup, as OpenWrt really isn't the nicest platform for installing things that require compiling native modules.

Feel free to submit a PR for the missing dependency though, probably best to fix that.

@ares
Copy link
Member Author

ares commented Dec 18, 2020

Thanks for your reply, I appreciate all pointers! I'll most likely give up on this, but I'll at least add the explicit rb-inotify dependency.

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