Mailing List Archive

virtual python
Hi all,

I've a little problem, that I don't understand.

I testing a ebuild for vtk, but if I run emerge vtk, I become follow
error message:

Calculating dependencies
Parent: None
Depstring: dev-libs/vtk
Candidates: ['dev-libs/vtk']
ebuild: dev-libs/vtk-4.4.2
binpkg: None

-
Parent: ebuild / dev-libs/vtk-4.4.2 merge
Depstring: >=dev-util/cmake-1.8 python? ( >=dev-lang/python-2.0 )
tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
media-libs/libpng sys-libs/zlib dev-libs/expat !bootstrap? (
sys-devel/patch ) virtual/python python? ( >=dev-lang/python-2.0 )
tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
media-libs/libpng sys-libs/zlib dev-libs/expat
Candidates: ['virtual/python']

emerge: there are no ebuilds to satisfy "virtual/python".


What is my problem.

Jens




Here the ebuild



# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="The Visualization Toolkit"
HOMEPAGE="http://www.vtk.org/"

LICENSE="VTK"
SLOT="0"
KEYWORDS="~x86 ~ppc-macos"

IUSE="doc data python tcltk patented"

RDEPEND="python? ( >=dev-lang/python-2.0 )
tcltk? ( >=dev-lang/tcl-8.2.3 )
media-libs/jpeg
media-libs/tiff
media-libs/libpng
sys-libs/zlib
dev-libs/expat"

DEPEND=">=dev-util/cmake-1.8
${RDEPEND}"

SHORT_PV=`echo ${PV} | cut -d. -f1,2`
SRC_URI="ftp://public.kitware.com/pub/vtk/vtk${SHORT_PV}/VTK-
${PV}.tar.gz
doc? (
ftp://public.kitware.com/pub/vtk/nightly/vtkNightlyDocHtml.tar.gz )
data? ( mirror://sourceforge/vtk/VTKData-4.2.tar.gz )"

S=${WORKDIR}/VTK

src_compile() {

local myconf

if [ "${ARCH}" = "~x86" ]; then
myconf="-DCMAKE_BUILD_TYPE:STRING=Release"
myconf="${myconf} -DCMAKE_INSTALL_PREFIX:PATH=/usr"
myconf="${myconf} -DBUILD_SHARED_LIBS:BOOL=ON"
myconf="${myconf} -DVTK_USE_GL2PS:BOOL=ON"
myconf="${myconf} -DVTK_USE_HYBRID:BOOL=ON"
myconf="${myconf} -DVTK_USE_PARALLEL:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_JPEG:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_PNG:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_TIFF:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_ZLIB:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_EXPAT:BOOL=ON"
myconf="${myconf} -DBUILD_TESTING:BOOL=OFF"
fi

if [ "${ARCH}" = "~ppc-macos" ]; then
myconf="-DCMAKE_BUILD_TYPE:STRING=Release"
myconf="${myconf} -DCMAKE_INSTALL_PREFIX:PATH=/Volumes/jf/usr"
myconf="${myconf} -DBUILD_SHARED_LIBS:BOOL=ON"
myconf="${myconf} -DVTK_USE_GL2PS:BOOL=ON"
myconf="${myconf} -DVTK_USE_HYBRID:BOOL=ON"
myconf="${myconf} -DVTK_USE_PARALLEL:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_JPEG:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_PNG:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_TIFF:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_ZLIB:BOOL=ON"
myconf="${myconf} -DVTK_USE_SYSTEM_EXPAT:BOOL=ON"
myconf="${myconf} -DBUILD_TESTING:BOOL=OFF"
myconf="${myconf} -DVTK_USE_CARBON:BOOL=ON"
myconf="${myconf} -DVTK_USE_COCOA:BOOL=OFF"
fi

use python && myconf="${myconf} -DVTK_WRAP_PYTHON:BOOL=ON"
use tcltk && myconf="${myconf} -DVTK_WRAP_TCL:BOOL=ON"
use patented && myconf="${myconf} -DVTK_USE_PATENTED:BOOL=ON"
use data && myconf="${myconf}
-DVTK_DATA_ROOT:STRING=/Volumes/jf/usr/share/vtkdata"

cmake ${myconf} . || die "cmake configuration failed"

emake || die "emake failed"
}

src_install() {
make DESTDIR=${D} install || die "make install failed"

#for some strange reason, vtkAMRBox.h not installed by make install
cp ${S}/Common/vtkAMRBox.h ${D}/Volumes/jf/usr/include/vtk/.

# Fix the configuration file
cd ${D}/Volumes/jf/usr/lib/vtk
cat VTKConfig.cmake | sed -e "s:${D}::g" > VTKConfig.cmake.fixed
mv -f VTKConfig.cmake.fixed VTKConfig.cmake

# The Python wrapping is not installed by 'make install'
if [ `use python` ]; then
cd ${S}/Wrapping/Python
docinto vtk_python
distutils_src_install

# Fix up the symbolic links
distutils_python_version
rm -f
${D}/Volumes/jf/usr/lib/python${PYVER}/site-packages/vtk_python/
libvtk*Python*.so
find ${D}/Volumes/jf/usr/lib/vtk -type f -name "libvtk*Python*.so"
-exec \
dosym {}
/Volumes/jf/usr/lib/python${PYVER}/site-packages/vtk_python \;
fi

#install examples and html docs; couldn't get dohtml and dodoc to work
here, JJS 6/17/04
if [ `use doc` ]; then
dodir /Volumes/jf/usr/share/doc/vtk
mv ${WORKDIR}/html ${D}/Volumes/jf/usr/share/doc/vtk/.
cp -r ${S}/Examples ${D}/Volumes/jf/usr/share/doc/vtk/.
fi

#install vtk data used in many of the examples
if [ `use data` ]; then
dodir /Volumes/jf/usr/share/vtkdata
mv ${WORKDIR}/VTKData-release-4-2/*
${D}/Volumes/jf/usr/share/vtkdata/.
fi

# env.d stuff
dodir /etc/env.d
echo "LDPATH=/usr/lib/vtk" > ${D}/etc/env.d/40vtk
}

pkg_postinst() {
if [ `use patented` ]; then
ewarn "Using patented classes in commercial application requires a
licence."
ewarn "For more information read"
ewarn
"http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq07.005.htp"
fi
}


--
gentoo-osx@gentoo.org mailing list
Re: virtual python [ In reply to ]
What's the output with USE="-python"?

On Nov 21, 2004, at 3:45 PM, Jens Frederich wrote:

<snip>

--
Paul Handly
sauron@osmos.org
http://www.osmos.org


--
gentoo-osx@gentoo.org mailing list
Re: virtual python [ In reply to ]
It's the same output!

Einstein:/Volumes/jf/portage/dev-libs/vtk root# export USE="-python"
Einstein:/Volumes/jf/portage/dev-libs/vtk root# echo $USE
-python
Einstein:/Volumes/jf/portage/dev-libs/vtk root# emerge -dv vtk
Calculating dependencies
Parent: None
Depstring: dev-libs/vtk
Candidates: ['dev-libs/vtk']
ebuild: dev-libs/vtk-4.4.2
binpkg: None

-
Parent: ebuild / dev-libs/vtk-4.4.2 merge
Depstring: >=dev-util/cmake-1.8 python? ( >=dev-lang/python-2.0 )
tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
media-libs/libpng sys-libs/zlib dev-libs/expat !bootstrap? (
sys-devel/patch ) virtual/python python? ( >=dev-lang/python-2.0 )
tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
media-libs/libpng sys-libs/zlib dev-libs/expat
Candidates: ['virtual/python']

emerge: there are no ebuilds to satisfy "virtual/python".


On 22.11.2004, at 03:17, Paul Handly wrote:

> What's the output with USE="-python"?
>
> On Nov 21, 2004, at 3:45 PM, Jens Frederich wrote:
>
> <snip>
>
> --
> Paul Handly
> sauron@osmos.org
> http://www.osmos.org
>
>
> --
> gentoo-osx@gentoo.org mailing list
>


--
gentoo-osx@gentoo.org mailing list
Re: virtual python [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please paste the output from 'emerge info'

On Nov 22, 2004, at 12:12 AM, Jens Frederich wrote:

> It's the same output!
>
> Einstein:/Volumes/jf/portage/dev-libs/vtk root# export USE="-python"
> Einstein:/Volumes/jf/portage/dev-libs/vtk root# echo $USE
> -python
> Einstein:/Volumes/jf/portage/dev-libs/vtk root# emerge -dv vtk
> Calculating dependencies
> Parent: None
> Depstring: dev-libs/vtk
> Candidates: ['dev-libs/vtk']
> ebuild: dev-libs/vtk-4.4.2
> binpkg: None
>
> -
> Parent: ebuild / dev-libs/vtk-4.4.2 merge
> Depstring: >=dev-util/cmake-1.8 python? ( >=dev-lang/python-2.0 )
> tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
> media-libs/libpng sys-libs/zlib dev-libs/expat !bootstrap? (
> sys-devel/patch ) virtual/python python? ( >=dev-lang/python-2.0 )
> tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
> media-libs/libpng sys-libs/zlib dev-libs/expat
> Candidates: ['virtual/python']
>
> emerge: there are no ebuilds to satisfy "virtual/python".
>
>
> On 22.11.2004, at 03:17, Paul Handly wrote:
>
>> What's the output with USE="-python"?
>>
>> On Nov 21, 2004, at 3:45 PM, Jens Frederich wrote:
>>
>> <snip>
>>
>> --
>> Paul Handly
>> sauron@osmos.org
>> http://www.osmos.org
>>
>>
>> --
>> gentoo-osx@gentoo.org mailing list
>>
>
>
> --
> gentoo-osx@gentoo.org mailing list
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)

iD8DBQFBohvVJ0rMK/3OwgsRAp7FAKCJmeCBzYzcebV00aZBJE5SNTVqMACfa5Fs
tiOlUyjiKy3t42HomX3Kq5E=
=khaT
-----END PGP SIGNATURE-----


--
gentoo-osx@gentoo.org mailing list
Re: virtual python [ In reply to ]
Here the output from emerge info:

Einstein% sudo emerge info
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51-r3 (default-darwin/macos/10.3, gcc-3.3,
libsystem-7.1-r0, 7.6.0 Power Macintosh)
=================================================================
System uname: 7.6.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default
port 3632) [disabled]
Autoconf:
Automake:
Binutils:
Headers: sys-libs/libsystem-7.1
Libtools:
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect distlocks"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/Volumes/jf/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc-macos"


On 22.11.2004, at 18:03, Kito wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Please paste the output from 'emerge info'
>
> On Nov 22, 2004, at 12:12 AM, Jens Frederich wrote:
>
>> It's the same output!
>>
>> Einstein:/Volumes/jf/portage/dev-libs/vtk root# export USE="-python"
>> Einstein:/Volumes/jf/portage/dev-libs/vtk root# echo $USE
>> -python
>> Einstein:/Volumes/jf/portage/dev-libs/vtk root# emerge -dv vtk
>> Calculating dependencies
>> Parent: None
>> Depstring: dev-libs/vtk
>> Candidates: ['dev-libs/vtk']
>> ebuild: dev-libs/vtk-4.4.2
>> binpkg: None
>>
>> -
>> Parent: ebuild / dev-libs/vtk-4.4.2 merge
>> Depstring: >=dev-util/cmake-1.8 python? ( >=dev-lang/python-2.0 )
>> tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
>> media-libs/libpng sys-libs/zlib dev-libs/expat !bootstrap? (
>> sys-devel/patch ) virtual/python python? ( >=dev-lang/python-2.0 )
>> tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
>> media-libs/libpng sys-libs/zlib dev-libs/expat
>> Candidates: ['virtual/python']
>>
>> emerge: there are no ebuilds to satisfy "virtual/python".
>>
>>
>> On 22.11.2004, at 03:17, Paul Handly wrote:
>>
>>> What's the output with USE="-python"?
>>>
>>> On Nov 21, 2004, at 3:45 PM, Jens Frederich wrote:
>>>
>>> <snip>
>>>
>>> --
>>> Paul Handly
>>> sauron@osmos.org
>>> http://www.osmos.org
>>>
>>>
>>> --
>>> gentoo-osx@gentoo.org mailing list
>>>
>>
>>
>> --
>> gentoo-osx@gentoo.org mailing list
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (Darwin)
>
> iD8DBQFBohvVJ0rMK/3OwgsRAp7FAKCJmeCBzYzcebV00aZBJE5SNTVqMACfa5Fs
> tiOlUyjiKy3t42HomX3Kq5E=
> =khaT
> -----END PGP SIGNATURE-----
>
>
> --
> gentoo-osx@gentoo.org mailing list
>


--
gentoo-osx@gentoo.org mailing list
Re: virtual python [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ummm, I dont think python IS a virtual.... so either just use
DEPEND="dev-lang/python" or DEPEND=">=dev-lang/python-2.x.x" if it
needs a specific version.

On Nov 22, 2004, at 1:04 PM, Jens Frederich wrote:

> Here the output from emerge info:
>
> Einstein% sudo emerge info
> !!! Relying on the shell to locate gcc, this may break
> !!! DISTCC, installing gcc-config and setting your current gcc
> !!! profile will fix this
> Portage 2.0.51-r3 (default-darwin/macos/10.3, gcc-3.3,
> libsystem-7.1-r0, 7.6.0 Power Macintosh)
> =================================================================
> System uname: 7.6.0 Power Macintosh powerpc
> macos-20041118
> distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default
> port 3632) [disabled]
> Autoconf:
> Automake:
> Binutils:
> Headers: sys-libs/libsystem-7.1
> Libtools:
> ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
> AUTOCLEAN="yes"
> CFLAGS="-O2 -pipe"
> CHOST="powerpc-apple-darwin"
> COMPILER=""
> CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
> /usr/share/config /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
> CXXFLAGS="-O2 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoaddcvs ccache collision-protect distlocks"
> GENTOO_MIRRORS="http://gentoo.osuosl.org
> http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/Volumes/jf/portage"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="ppc-macos"
>
>
> On 22.11.2004, at 18:03, Kito wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Please paste the output from 'emerge info'
>>
>> On Nov 22, 2004, at 12:12 AM, Jens Frederich wrote:
>>
>>> It's the same output!
>>>
>>> Einstein:/Volumes/jf/portage/dev-libs/vtk root# export USE="-python"
>>> Einstein:/Volumes/jf/portage/dev-libs/vtk root# echo $USE
>>> -python
>>> Einstein:/Volumes/jf/portage/dev-libs/vtk root# emerge -dv vtk
>>> Calculating dependencies
>>> Parent: None
>>> Depstring: dev-libs/vtk
>>> Candidates: ['dev-libs/vtk']
>>> ebuild: dev-libs/vtk-4.4.2
>>> binpkg: None
>>>
>>> -
>>> Parent: ebuild / dev-libs/vtk-4.4.2 merge
>>> Depstring: >=dev-util/cmake-1.8 python? ( >=dev-lang/python-2.0 )
>>> tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
>>> media-libs/libpng sys-libs/zlib dev-libs/expat !bootstrap? (
>>> sys-devel/patch ) virtual/python python? ( >=dev-lang/python-2.0 )
>>> tcltk? ( >=dev-lang/tcl-8.2.3 ) media-libs/jpeg media-libs/tiff
>>> media-libs/libpng sys-libs/zlib dev-libs/expat
>>> Candidates: ['virtual/python']
>>>
>>> emerge: there are no ebuilds to satisfy "virtual/python".
>>>
>>>
>>> On 22.11.2004, at 03:17, Paul Handly wrote:
>>>
>>>> What's the output with USE="-python"?
>>>>
>>>> On Nov 21, 2004, at 3:45 PM, Jens Frederich wrote:
>>>>
>>>> <snip>
>>>>
>>>> --
>>>> Paul Handly
>>>> sauron@osmos.org
>>>> http://www.osmos.org
>>>>
>>>>
>>>> --
>>>> gentoo-osx@gentoo.org mailing list
>>>>
>>>
>>>
>>> --
>>> gentoo-osx@gentoo.org mailing list
>>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.6 (Darwin)
>>
>> iD8DBQFBohvVJ0rMK/3OwgsRAp7FAKCJmeCBzYzcebV00aZBJE5SNTVqMACfa5Fs
>> tiOlUyjiKy3t42HomX3Kq5E=
>> =khaT
>> -----END PGP SIGNATURE-----
>>
>>
>> --
>> gentoo-osx@gentoo.org mailing list
>>
>
>
> --
> gentoo-osx@gentoo.org mailing list
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)

iD8DBQFBpNhBJ0rMK/3OwgsRAhzoAKC2RQG9Bep0TFm4iTCb+3zXYiX0RwCgyxcV
emgOvIzZEZiHhjdZ9n60zC8=
=v3oq
-----END PGP SIGNATURE-----


--
gentoo-osx@gentoo.org mailing list