Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to build in local package name. [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
CrankyPenguin
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 274

PostPosted: Thu Jul 22, 2010 7:17 pm    Post subject: Unable to build in local package name. [Solved] Reply with quote

I'm trying to build an updated ebuild for nltk version 2.0b8. The trouble is that the file in question produces a work directory called work/nltk-2.0b8/ which is not found by the ebuild when I call distutils_src_install. Despite my attempts to set ${S} or ${MY_S} and my use of versionator it still doggedly seeks and fails on:
S: /var/tmp/portage/dev-python/nltk-2.0b/work/nltk-2.0b as you can see below. I have also tried manually forcing it to cd to the directory. Any suggestions would be appreciated.

Ebuild File:
Code:

# ---------------------------------------
# Specify the version dependency.
PYTHON_DEPEND="2:2.5"

# ---------------------------------------
# Handle basic inheritence.
inherit distutils eutils versionator

# --------------------------------------
# Add the requisite p to the values.
MY_P="${P}8"

# --------------------------------------
# Generic package headers.
DESCRIPTION="Natural Language Toolkit"
HOMEPAGE="http://nltk.org/"
SRC_URI="http://nltk.googlecode.com/files/${MY_P}.tar.gz"


LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc data numpy matplotlib"

DEPEND="dev-python/pyyaml"

RDEPEND="${DEPEND}
     doc? ( dev-python/nltk-doc )
     numpy? ( dev-python/numpy )
     matplotlib? ( dev-python/matplotlib )"

# ---------------------------------------
# Handle the basic install.
src_install() {
    MY_S="${S}8"
    distutils_src_install
}


# ---------------------------------------
# Postinst Data.
# Once the package is installed in a post phase
# this will extract the relevant data and install
# all if the user has specified it. 
pkg_postinst() {

    if use data ; then
        einfo "Installing NLTK Data."
        dodir /usr/share/nltk_data
        python -m nltk.downloader -d /usr/share/nltk_data all

    else
        elog "Data not installed you can do so within NLTK."

    fi
}


Error:
Quote:

>>> Creating Manifest for /usr/local/portage/dev-python/nltk
* nltk-2.0b8.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking nltk-2.0b8.tar.gz ;-) ... [ ok ]
* CPV: dev-python/nltk-2.0b
* REPO:
* USE: amd64 data elibc_glibc kernel_linux matplotlib multilib numpy userland_GNU
>>> Unpacking source...
>>> Unpacking nltk-2.0b8.tar.gz to /var/tmp/portage/dev-python/nltk-2.0b/work
/var/tmp/portage/dev-python/nltk-2.0b/temp/environment: line 1554: cd: /var/tmp/portage/dev-python/nltk-2.0b/work/nltk-2.0b: No such file or directory
>>> Source unpacked in /var/tmp/portage/dev-python/nltk-2.0b/work
>>> Compiling source in /var/tmp/portage/dev-python/nltk-2.0b/work ...
python2.6 setup.py build
python2.6: can't open file 'setup.py': [Errno 2] No such file or directory
* ERROR: dev-python/nltk-2.0b failed:
* Building failed
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 4953: Called distutils_src_compile
* environment, line 1422: Called die
* The specific snippet of code:
* "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
*
* If you need support, post the output of 'emerge --info =dev-python/nltk-2.0b',
* the complete build log and the output of 'emerge -pqv =dev-python/nltk-2.0b'.
* This ebuild is from an overlay: '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/dev-python/nltk-2.0b/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/nltk-2.0b/temp/environment'.
* S: '/var/tmp/portage/dev-python/nltk-2.0b/work/nltk-2.0b'

_________________
Linux, the OS for the obsessive-compulsive speed freak in all of us.


Last edited by CrankyPenguin on Thu Jul 22, 2010 8:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Thu Jul 22, 2010 7:22 pm    Post subject: Reply with quote

I think your problem is your defining MY_S in src_install but it's failing before that in src_compile.
Back to top
View user's profile Send private message
CrankyPenguin
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 274

PostPosted: Thu Jul 22, 2010 8:35 pm    Post subject: Ahhh. Reply with quote

That's it, thanks.
_________________
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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