bobwire / pentoo

Automatically exported from code.google.com/p/pentoo
1 stars 0 forks source link

invalid impacket-9999 ebuild #333

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The DISTUTILS_SRC_TEST is not supported in distutils-r1, causing emerge error 
message as shown below.

The new impacket-9999.ebuild should be :
EAPI=5

MY_PN=Impacket
MY_P=${MY_PN}-${PV}

PYTHON_COMPAT=( python2_{6,7} )
inherit distutils-r1 subversion

DESCRIPTION="A collection of Python classes focused on providing access to 
network packets"
HOMEPAGE="http://code.google.com/p/impacket"
ESVN_REPO_URI="http://impacket.googlecode.com/svn/trunk/"

python_test() {
       setup.py || die "Tests fail with ${EPYTHON}"
}

LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""

Error message with current ebuild:
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
 * ERROR: dev-python/impacket-9999::pentoo failed (compile phase):
 *   DISTUTILS_SRC_TEST is invalid for distutils-r1, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#DISTUTILS_SRC
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3716:  Called distutils-r1_src_compile
 *   environment, line 1107:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  330:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3289:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2411:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2409:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  780:  Called python_wrapper_setup
 *   environment, line 3635:  Called _python_check_dead_variables
 *   environment, line  703:  Called die
 * The specific snippet of code:
 *               die "${v} is invalid for distutils-r1, please take a look @ https://wiki.gentoo.org/wiki/Project:Python/Python.eclass_conversion#${v}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/impacket-9999::pentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/impacket-9999::pentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/impacket-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/impacket-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/impacket-9999/work/impacket-9999'
 * S: '/var/tmp/portage/dev-python/impacket-9999/work/impacket-9999'

>>> Failed to emerge dev-python/impacket-9999, Log file:

>>>  '/var/tmp/portage/dev-python/impacket-9999/temp/build.log'

Original issue reported on code.google.com by mrtch...@gmail.com on 6 Feb 2015 at 12:27

GoogleCodeExporter commented 9 years ago
fixed in r6400. Thanks!

Original comment by blshkv on 6 Feb 2015 at 3:12

GoogleCodeExporter commented 9 years ago
https://github.com/CoreSecurity/impacket

new home page on github 

Original comment by m...@michaellawrenceit.com on 30 Apr 2015 at 12:49

GoogleCodeExporter commented 9 years ago
impacket-9999.ebuild

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

MY_PN=Impacket
MY_P=${MY_PN}-${PV}

PYTHON_COMPAT=( python2_{6,7} )
DISTUTILS_SRC_TEST=setup.py
inherit distutils-r1 git-r3

DESCRIPTION="A collection of Python classes focused on providing access to 
network packets"
HOMEPAGE="https://github.com/CoreSecurity/impacket"
SRC_URI=""
EGIT_REPO_URI="https://github.com/CoreSecurity/impacket.git"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""

impacket-0.9.12.ebuild

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

MY_PN=Impacket
MY_P=${MY_PN}-${PV}

PYTHON_COMPAT=( python2_{6,7} )
inherit distutils-r1

DESCRIPTION="A collection of Python classes focused on providing access to 
network packets"
HOMEPAGE="https://github.com/CoreSecurity/impacket"
SRC_URI="https://github.com/CoreSecurity/impacket//archive/v${PV}.tar.gz -> 
${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND="dev-python/pycrypto"

DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"

python_test() {
    nosetests || die "Tests fail with ${EPYTHON}"
}

Original comment by m...@michaellawrenceit.com on 30 Apr 2015 at 1:01