Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage broken ? {$WORKDIR} is empty ?!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rauar
n00b
n00b


Joined: 15 Mar 2003
Posts: 37

PostPosted: Fri May 30, 2003 10:50 am    Post subject: Portage broken ? {$WORKDIR} is empty ?! Reply with quote

Hi there. I'm getting strange errors when emerging sun-jdk (and a lot of other packages as well!!).

Code:
aphrodite tmp # emerge sun-jdk
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/sun-jdk-1.4.1.02-r1 to /
>>> Unpacking source...
touch: creating `/.systemPrefs/.systemRootModFile': No such file or directory
chmod: failed to get attributes of `/.systemPrefs/.systemRootModFile': No such file or directory
./install.sfx: line 3: syntax error near unexpected token `fi'
./install.sfx: line 3: `  fi'

!!! ERROR: dev-java/sun-jdk-1.4.1.02-r1 failed.
!!! Function src_unpack, Line 34, Exitcode 2
!!! (no error message)

aphrodite tmp #



I've had a look into the ebuilds and there's a definition of S which depends on $WORKDIR. Above error message shows me that WORKDIR is not set. I think this is normally done by portage right ? I've tried several portage versions 2.0.47-r10, 2.0.48 and 2.0.48-r1. No success.

Any ideas ?

Cheerz Al
Back to top
View user's profile Send private message
rauar
n00b
n00b


Joined: 15 Mar 2003
Posts: 37

PostPosted: Fri May 30, 2003 11:11 am    Post subject: Reply with quote

Ok, I was wrong. This has nothing to do with the WORKDIR var. Inside the sun-jdk package is an installation script which uses PREFS_LOCATION, which is not set for any reason. Anyway this is sun-jdk-1.4.1_03 and there's no ebuild for that right now. I'll try an earlier sun-jdk.
Back to top
View user's profile Send private message
rauar
n00b
n00b


Joined: 15 Mar 2003
Posts: 37

PostPosted: Fri May 30, 2003 12:03 pm    Post subject: Reply with quote

Ok. I got it. Problem was a version mismatch.

I downloaded j2sdk-1.4.1_03. There's no ebuild for that. I wrote a working ebuild by coping the ebuild for sun-jdk-1.4.1_02 and modified some of the installation commands.

Code:

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.1.03.ebuild,v 1.0 2003/0$

IUSE="doc"

inherit java nsplugins

At="j2sdk-1_4_1_03-linux-i586.bin"
echo $WORKDIR
S="${WORKDIR}/j2sdk1.4.1_03"
DESCRIPTION="Sun's J2SE Development Kit, version 1.4.1_03"
HOMEPAGE="http://java.sun.com/j2se/1.4.1/download.html"
SRC_URI=""

SLOT="1.4"
LICENSE="sun-bcla-java-vm"
KEYWORDS="x86 -ppc -sparc -alpha -mips -hppa -arm"

DEPEND=">=dev-java/java-config-0.2.5
        doc? ( =dev-java/java-sdk-docs-1.4.1* )"

RDEPEND="sys-libs/lib-compat"

PROVIDE="virtual/jre-1.4
        virtual/jdk-1.4
        virtual/java-scheme-2"

src_unpack() {
        if [ ! -f ${DISTDIR}/${At} ] ; then
                die "Please download ${At} from ${HOMEPAGE} (select the \"Linux self-extract$
        fi
        #tail ${DISTDIR}/${At} > install.sfx
        #chmod +x install.sfx
        sh  ${DISTDIR}/${At} || die
        #rm install.sfx
}

src_install () {
        local dirs="bin include jre lib"
        dodir /opt/${P}

        for i in $dirs ; do
                cp -a $i ${D}/opt/${P}/
        done

        dodoc COPYRIGHT README LICENSE
        dohtml README.html

        doman man/man1/*.1

        dodir /opt/${P}/share/
        cp -a demo src.zip ${D}/opt/${P}/share/

        if [ "`use mozilla`" ] ; then
                dodir /usr/lib/mozilla/plugins
                dosym /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla/$
        fi

        set_java_env ${FILESDIR}/${VMHANDLE}
}

pkg_postinst () {
        # Set as default VM if none exists
        java_pkg_postinst

        inst_plugin /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so
}

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum