Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245597 - Version Bump Request www-apache/mod_jk-1.2.27
Summary: Version Bump Request www-apache/mod_jk-1.2.27
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Java team
URL: http://tomcat.apache.org/download-con...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-04 22:07 UTC by Mike Weissman
Modified: 2008-12-06 13:23 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild that removes the need for $FILESDIR (mod_jk-1.2.27.ebuild,1.53 KB, text/plain)
2008-11-07 16:33 UTC, Mike Weissman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Weissman 2008-11-04 22:07:44 UTC
The Apache Tomcat team finally released another version of mod_jk, there is a boat load of updates/fixes/additions, which are documented in the CHANGES doc.  Rename of the ebuild works fine. Sample Config could be updated for some of the new directives, but not required. 

Some Changelog Highlights:

update AJP13: Recycle connection if previous request didn't complete.
              (mturk)
fix    Apache: Fix small memory leak during restart. (mturk)
add    URI Map: Add debug dump function for uri worker map. (rjung)
       add    Added socket_connect_timeout directive for setting the connect
              timeout for the socket. This enables to have low connection
              timeout but higher operational timeouts. (mturk)
       fix    AJP13: Always send initial POST packet even if the client
              disconnected after sending request but before providing POST
              data. In that case or in case the client broke the connection
              in a middle of read send an zero size packet informing
              container about broken client connection. (mturk)
 add    AJP13: Added connection_acquire_timeout directive for setting
              the absolute timeout the worker will wait for a free endpoint.
              (mturk)
 add    AJP13: Add a configurable retry_interval time. (rjung)
 update Apache: Allow to set path parameter used when doing
              JkStripSession. (mturk)
 fix    LB: Do not put loadbalancer node in error state if there is
              opened channel. This fixes the bug when new connection fails
              due to busyness, causing opened connections fail stickyness.
              This brings back per-node busy counter and private state array
              for each request. We can mark the state as error for failover
              to work while still operating and reporting node as OK if
              there are opened working connections. (mturk)

The List goes on, Working fine on about 7 of my machines.


Reproducible: Always




Portage 2.2_rc13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.0
Timestamp of tree: Tue, 04 Nov 2008 14:04:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2  -pipe -fomit-frame-pointer -g -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -g -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-v --with-bdeps=y"
FEATURES="ccache collision-protect distlocks metadata-transfer nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/mike/myebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apache2 avi bash-completion bluetooth branding bzip2 cairo cdr cli compat cracklib crypt cups dbcpalsa dbus dri dvd dvdr dvdread emboss encode evo fam firefox firfox ftp gd gdbm gif gnome gpm gstreamer gtk hal hddtemp iconv intel isdnlog java java5 java6 javamail jbdc jboss jpeg ldap libnotify libwww logitech mad mailwrapper midi mikmod mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ntp nvidia odbc ogg opengl openmp pam pcre pdf perl png postgres ppds pppd python qt3support quicktime rar readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff tk truetype unicode usb vim vim-completion vim-syntax vim-with-x vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="proxy_http actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-05 01:19:40 UTC
Apparently this would be a good moment to update metadata.xml. :)
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2008-11-06 11:51:49 UTC
(In reply to comment #1)
> Apparently this would be a good moment to update metadata.xml. :)
> 

undertakers should do that
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-11-06 11:54:21 UTC
(In reply to comment #0)
> The Apache Tomcat team finally released another version of mod_jk, there is a
> boat load of updates/fixes/additions, which are documented in the CHANGES doc. 
> Rename of the ebuild works fine. Sample Config could be updated for some of the
> new directives, but not required. 
> 

Can you provide updated files as we are missing a dedicated maintainer atm or can I get the updated files from the upstream tarball (in this case we shouldn't even have the files in filesdir of course)?
Comment 4 Mike Weissman 2008-11-06 15:50:07 UTC
(In reply to comment #3)

> Can you provide updated files as we are missing a dedicated maintainer atm or
> can I get the updated files from the upstream tarball (in this case we
> shouldn't even have the files in filesdir of course)?
> 

There are 3  samples in the $WORKDIR/$MY_P/conf which has 3 pretty good example confs, which has an example for JNI, LB, CLASSPATH . Which definitely allows someone to use mod_jk in the simplist and a more advanced level out of the Box.

But probably the super advanced user should be directed to the updated Reference guide which includes 1.2.27 changes:

http://tomcat.apache.org/connectors-doc/reference/workers.html

And Yes i agree, there shouldn't be a files dir.  The Tarball is a perfect place for example confs.  The ebuild changes are minimal, which i'll do, if you want me to.

-Mike 
Comment 5 Mike Weissman 2008-11-07 16:33:58 UTC
Created attachment 171004 [details]
ebuild that removes the need for $FILESDIR

updated the ebuild to use the tarball packaged examples confs
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2008-12-06 00:56:30 UTC
(In reply to comment #5)
> Created an attachment (id=171004) [edit]
> ebuild that removes the need for $FILESDIR
> 
> updated the ebuild to use the tarball packaged examples confs
> 

Sorry about the delay. Seem I forgot this one as I was supposed to bump it after your submission. The ebuild has some problems with JAVA_HOME it seems:

/bin/sh /var/tmp/portage/www-apache/mod_jk-1.2.27/work/tomcat-connectors-1.2.27-src/native/libtool --silent --mode=compile i686-pc-linux-gnu-gcc -I/usr/include/apache2 -O2 -march=native -pipe -fomit-frame-pointer -DUSE_APACHE_MD5 -I ../common -I /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include -I /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include/unix -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -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 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c mod_jk.c -o mod_jk.lo
cc1: error: /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include: Permission denied
cc1: error: /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include/unix: Permission denied
make[1]: *** [mod_jk.lo] Error 1

Comment 7 Petteri Räty (RETIRED) gentoo-dev 2008-12-06 01:01:02 UTC
I added a JDK to DEPEND for it to build. If you are interested in proxy maintaining this via the Java overlay please contact java@gentoo.org or come by to #gentoo-java on freenode for more information.
Comment 8 Mike Weissman 2008-12-06 07:24:36 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Created an attachment (id=171004) [edit]
> > ebuild that removes the need for $FILESDIR
> > 
> > updated the ebuild to use the tarball packaged examples confs
> > 
> 
> Sorry about the delay. Seem I forgot this one as I was supposed to bump it
> after your submission. The ebuild has some problems with JAVA_HOME it seems:
> 
> /bin/sh
> /var/tmp/portage/www-apache/mod_jk-1.2.27/work/tomcat-connectors-1.2.27-src/native/libtool
> --silent --mode=compile i686-pc-linux-gnu-gcc -I/usr/include/apache2 -O2
> -march=native -pipe -fomit-frame-pointer -DUSE_APACHE_MD5 -I ../common -I
> /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include -I
> /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include/unix -DLINUX=2
> -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -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 -pthread
> -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c mod_jk.c -o
> mod_jk.lo
> cc1: error: /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include:
> Permission denied
> cc1: error:
> /home/betelgeuse/.gentoo/java-config-2/current-user-vm/include/unix: Permission
> denied
> make[1]: *** [mod_jk.lo] Error 1
> 

You got this error with a sun-jre-bin or with openjdk?

(In reply to comment #7)
If you are interested in proxy
maintaining this via the Java overlay please contact java@gentoo.org or come by
to #gentoo-java on freenode for more information.

I'll definitely do that,  i work with this software on a daily basis. 

-Mike
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2008-12-06 13:23:43 UTC
(In reply to comment #8)
> 
> You got this error with a sun-jre-bin or with openjdk?
> 

It doesn't really matter what the JDK is. It should never be using the JAVA_HOME from the environment. As it needs jni headers to build against I migrated it to use our eclasses and properly DEPEND on a JDK.

> 
> I'll definitely do that,  i work with this software on a daily basis. 
> 

Sounds good. Please contact us to arrange for access.