Opening a new bug relating to: #109121, which was resolved and fixed. My comment from #109121: Any idea why this dependency was reintroduced in mod_jk-1.2.27? >= mod_jk-1.2.27 ebuilds now contain: DEPEND=">=virtual/jdk-1.4"
Hi Guys Does anyone have any comments about this issue?? ChangeLog says: -mod_jk-1.2.26-r1.ebuild Without the mod_jk-1.2.26-r1.ebuild, there is no choice but to pull in virtual/jdk. What is happening here? (In reply to comment #0) > Opening a new bug relating to: #109121, which was resolved and fixed. > > My comment from #109121: > > Any idea why this dependency was reintroduced in mod_jk-1.2.27? > > >= mod_jk-1.2.27 ebuilds now contain: > > DEPEND=">=virtual/jdk-1.4" >
Sorry for the slow reply. mod_jk needs headers from the jdk to compile /bin/sh /var/tmp/portage/www-apache/mod_jk-1.2.28-r1/work/tomcat-connectors-1.2.28-src/native/libtool --silent --mode=compile i686-pc-linux-gnu-gcc -I/usr/include/apache2 -O2 -march=native -pipe -fomit-frame-pointer -O2 -march=native -pipe -fomit-frame-pointer -pthread -DHAVE_APR -I/usr/include/apr-1 -I/usr/include/apr-1 -O2 -march=native -pipe -fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I /opt/sun-jdk-1.6.0.16/include -I /opt/sun-jdk-1.6.0.16/include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo a jre doesn't have these headers: betelgeuse@pena /usr/portage/eclass $ qlist sun-jre-bin | grep include betelgeuse@pena /usr/portage/eclass $
Created attachment 209051 [details] custom ebuild without virutal/jdk dependency Custom ebuild without virutal/jdk dependency: Compiles under amd64 and x86.
Hi Sorry for being a pain, but the I tried a custom ebuild (see comment #3), and tried removing the virtual/jdk dependency. It compiles under x86 and amd64. mod_jk starts up fine with apache (obviously with properly configured jk-workers.properties, uriworkermap.properties and 88_mod_jk.conf files). I'm still not entirely sure why the dependency is required if it compiles and works? Maybe because of the deprecated JNI related parameters in http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html (see section Building mod_jk on Unix) ? Please let me know if I really am smoking crack here :) thx (In reply to comment #2) > Sorry for the slow reply. mod_jk needs headers from the jdk to compile > > /bin/sh > /var/tmp/portage/www-apache/mod_jk-1.2.28-r1/work/tomcat-connectors-1.2.28-src/native/libtool > --silent --mode=compile i686-pc-linux-gnu-gcc -I/usr/include/apache2 -O2 > -march=native -pipe -fomit-frame-pointer -O2 -march=native -pipe > -fomit-frame-pointer -pthread -DHAVE_APR -I/usr/include/apr-1 > -I/usr/include/apr-1 -O2 -march=native -pipe -fomit-frame-pointer -DLINUX=2 > -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I > /opt/sun-jdk-1.6.0.16/include -I /opt/sun-jdk-1.6.0.16/include/ -c > jk_ajp12_worker.c -o jk_ajp12_worker.lo > > a jre doesn't have these headers: > > betelgeuse@pena /usr/portage/eclass $ qlist sun-jre-bin | grep include > betelgeuse@pena /usr/portage/eclass $ >
Hi Guys Anyone going to shed some light on this issue? ...Please?
*bump* (In reply to comment #5) > Hi Guys > > Anyone going to shed some light on this issue? > ...Please? >
(In reply to Michael Sobremonte from comment #4) > Hi > > I'm still not entirely sure why the dependency is required if it compiles > and works? Today i stepped into this and it's still the same with mod_jk-1.2.37! To my source code analysis, the java dependency is only required to compile a java binding adapter library. It's source code is located in ./jkstatus. By help of this lib one may get a object repesentation of the remote state delivered by the "jkstatus" http API on the apache. But you don't need this library to run mod_jk on Apache. Therefore, like other bindings to different languages, there should be a java USE-flag. The buildtime DEPEND on java and the call to java-pkg-2_pkg_setup in pkg_setup(), which actually will do the jar build have to switch by this use flag. I'll try to enhance the ebuild in this way. Guido
Created attachment 362607 [details] ebuild supporting java USE-flag Here my proposal for an ebuild offering a java USE-flag; it's based on the mod_jk-1.2.37.ebuild
Created attachment 362621 [details] ebuild supporting java USE-flag Update: One have to inherit java-pkg-opt-2 instead of java-pkg-2 to realy get Java a optional buildtime dependency.
fixed in the .40 version