njuneau / haxe-overlay

Haxe Gentoo ebuilds
1 stars 0 forks source link

apache as a dependency for neko #2

Open programmador opened 7 years ago

programmador commented 7 years ago

Is it really needed? As for me - I use lighttpd, for example. Maybe there should either be no dependency or a dependency as a USE flag? Yes, I understand that mod_neko is for apache only. But mod_tora AFAIK will work with any fcgi-capable webserver. As for me - I don't currently use haxe for web development and don't need any webserver at all.

njuneau commented 7 years ago

I am pretty sure it is not. I remember using an ebuild somewhere in the past that supported use flags for HTTPD. I didn't dwelve into it just yet, but that is definitely something I want to look into. Thanks for your feedback! I'll mark this one todo!

njuneau commented 6 years ago

I experimented a bit with neko's build options and although you can disable NDLLs such as mod_tora or mod_neko, the way Neko's CMakeLists.txt is written makes it look for external dependencies such as Apache anyway. However, there has been a lot of updates to the cmake build in Neko 2.2 and I might be able to set up USE flags properly on this release.

programmador commented 6 years ago

Hmm... I'm thinking about some things, maybe it will be a useful info for You.

As I read somewhere (I don't remember where and when), mod_tora can be used also through fastcgi. So any fcgi-capable webserver may be used. I don't remember if it's truth at all. If yes - then maybe apache is still needed to build mod_tora. Then apache should be present in DEPEND but absent in RDEPEND. Maybe it's not needed at all, I don't know. Of course, if we need mod_neko - then we need apache also in RDEPEND.

BTW gentoo guides recommend avoiding affecting dependencies by USE flags. As for me it looks clever because simplicity is always better. But practically it's hard to follow this recommendation: either you get that affecting or you get odd dependencies. Maybe there are some techniques to avoid this problem but I know nothing about them. This problem rises for me from time to time and have no one to ask how to deal with this USE_vs_DEPEND problem.

programmador commented 6 years ago

P.S. Forget about what I've written about USE flags vs DEPEND. Maybe I was just confused, I've read those guides quite a long ago. https://devmanual.gentoo.org/general-concepts/dependencies/index.html#use-conditional-dependencies There is nothing written about avoiding use-configional-dependencies. Just that USE flags shouldn't be affected by architecture in ebuild files directly.

njuneau commented 6 years ago

In all cases, in neko's CMakeLists, it tries to find both HTTPD and APR to build mod_tora. However, at runtime, I wouldn't know if it's possible to use it in any other context than with HTTPD.

I updated Neko to 2.2.0 because Haxe would no longer compile with Neko 2.1. I added USE flags corresponding to the various NDLL options available in CMakeLists. However, all DEPEND elements are still duplicated in RDEPEND.