Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32541 - gettext-0.11.5-r1 breaks due to java
Summary: gettext-0.11.5-r1 breaks due to java
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Alpha Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-02 06:00 UTC by Aron Griffis (RETIRED)
Modified: 2003-11-02 08:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Griffis (RETIRED) gentoo-dev 2003-11-02 06:00:27 UTC
# emerge -e world
...
checking for Java to native code compiler... none
checking how to run the C preprocessor... gcc -E
checking for Java compiler... /opt/compaq-jdk-1.3.1/bin/javac
checking for jar... jar
checking for Java virtual machine... gij
...
Making all in intl-java
make[2]: Entering directory `/usr/local/tmp/portage/gettext-0.11.5-r1/work/gettext-0.11.5/intl-java'
/bin/sh ../lib/javacomp.sh -d . ./gnu/gettext/GettextResource.java
cd . && test ! -d /usr/lib/jdk1.1.8 || env PATH=/usr/lib/jdk1.1.8/bin:$PATH javadoc -d javadoc1 gnu/gettext/*.java
cd . && test ! -d /usr/lib/jdk1.3.1 || env PATH=/usr/lib/jdk1.3.1/bin:$PATH javadoc -d javadoc2 gnu/gettext/*.java
SIGSEGV   11*  segmentation violation
    si_signo [11]: SIGSEGV   11*  segmentation violation
    si_errno [0]: Success
    si_code [1]: SEGV_MAPERR [addr: 0x21]

    sc_pc: 0x200003eb31c, r26: 0x200003eb308

 thread pid: 12131
        stackpointer=0x20004da4488
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2003-11-02 08:10:45 UTC
Fixed by the following patch to the ebuild:

Index: gettext-0.11.5-r1.ebuild
===================================================================
RCS file: /home/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.11.5-r1.ebuild,v
retrieving revision 1.14
diff -u -b -B -r1.14 gettext-0.11.5-r1.ebuild
--- gettext-0.11.5-r1.ebuild    17 Sep 2003 18:52:43 -0000      1.14
+++ gettext-0.11.5-r1.ebuild    2 Nov 2003 16:05:15 -0000
@@ -26,6 +26,14 @@
        local myconf=""
        use nls || myconf="--disable-nls"
 
+       # Compaq Java segfaults trying to build gettext stuff, and there's
+       # no good way to tell gettext to refrain from building the java
+       # stuff, so... remove compaq-jdk/jre from the PATH
+       if use alpha && [[ $JAVAC == *compaq* ]]; then
+               PATH=$(echo ":${PATH}" | sed 's|:/opt/compaq-j[^:]*||g; s/^://')
+               unset JAVA_HOME CLASSPATH JDK_HOME JAVAC
+       fi
+
        econf \
                --with-included-gettext \
                --disable-shared \