Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 168585

Summary: www-apps/open-xchange-0.8.2 fails to compile
Product: Gentoo Linux Reporter: Morgun Leonid <morgunl>
Component: Current packagesAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED WONTFIX    
Severity: normal CC: decoder
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Morgun Leonid 2007-02-27 15:28:28 UTC
localhost mudiller # USE="-mysql" emerge -qav open-xchange
[ebuild  N    ] www-apps/open-xchange-0.8.2  USE="doc ssl -jikes -mysql -postgres -sieve -vhosts -webdav"

Would you like to merge these packages? [Yes/No] y

...

Reproducible: Always
Comment 1 Morgun Leonid 2007-02-27 15:30:17 UTC
Created attachment 111429 [details]
build log
Comment 2 Christian Holler 2007-04-05 10:21:09 UTC
I noticed this as well and reproduced it while I was trying to install open-xchange on our server. The problem is inside the ebuild:

ox_setup_tomcat() {
    TOMCAT_DIR=`java-config -g CATALINA_HOME`
    if has_version '>=www-servers/tomcat-5.0.28-r4' ; then
        # it is now installed to the profile-directory choosen from /etc/conf.d/tomcat-5
        local PROFILE="$(sed -n "s:^PROFILE=\(.*\):\1:p" /etc/conf.d/tomcat-5)"
        local CATALINA_BASE="$(sed -n "s:^CATALINA_BASE=\(.*\)/$.*:\1:p" /etc/conf.d/tomcat-5)"
        SERVLETDIR="${CATALINA_BASE}/${PROFILE}/webapps"
        TOMCAT_SHARED_LIB="${CATALINA_BASE}/${PROFILE}/shared/lib"
    else
        SERVLETDIR="${TOMCAT_DIR}/webapps"
        TOMCAT_SHARED_LIB="${TOMCAT_DIR}/shared/lib"
    fi
}

This code is not working, TOMCAT_DIR stays empty (the other variables aren't assigned correctly either) which leads to this configure:

./configure --prefix=/usr --host=i386-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --with-jdbcjar= --disable-doc --disable-webdav --enable-ssl --with-servletdir=//webapps --with-jsdkjar=/common/lib/servlet-api.jar
--with-mailjar=/usr/share/sun-javamail-bin/lib/mail.jar --with-activationjar=/usr/share/sun-jaf-bin/lib/activation.jar --with-jdomjar=/usr/share/jdom-1.0/lib/jdom.jar
--with-xercesjar=/usr/share/xerces-2/lib/xercesImpl.jar --with-jni-dir=/opt/blackdown-jdk-1.4.2.03/include --with-runuid=tomcat --with-rungid=tomcat --with-tomcatuser=tomcat --with-htdocsdir=/usr/share/webapps/open-xchange/0.8.2/htdocs --with-cgibindir=/usr/share/webapps/open-xchange/0.8.2/hostroot/cgi-bin
--sysconfdir=/etc/open-xchange --datadir=/usr/share/open-xchange --includedir=/usr/include/open-xchange --libdir=/usr/lib/open-xchange --localstatedir=/var/open-xchange

As you can see, the "with-jsdkjar" path is bogus, it is missing the Tomcat home, hence the Java Compiler cannot find the servlet classes which leads to the failure.


As I did not write this code, I don't know how to fix it. For the moment, I will try to replace these with hardcoded paths on my server to get it working..

Best regards,

Chris
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2007-04-13 19:10:20 UTC
open-xchange isn't in the tree anymore, sorry.