Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376917 - sci-libs/vtk-5.6.1 with USE=python: cannot find Python.h, missing ${EPREFIX}
Summary: sci-libs/vtk-5.6.1 with USE=python: cannot find Python.h, missing ${EPREFIX}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 13:30 UTC by Edward "Hades"
Modified: 2011-08-04 19:24 UTC (History)
0 users

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


Attachments
patch (vtk-5.6.1.ebuild-missing-eprefix.patch,468 bytes, patch)
2011-07-29 13:33 UTC, Edward "Hades"
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Edward "Hades" 2011-07-29 13:30:17 UTC
In vtk-5.6.1.ebuild a ${EPREFIX} is missing in cmake parameters, which leads to the following error:

In file included from /gentoo/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Wrapping/vtkWrapPython.c:16:0:                                                                                                                                     
/gentoo/var/tmp/portage/sci-libs/vtk-5.6.1/work/VTK/Common/vtkPython.h:46:22: fatal error: Python.h: No such file or directory
compilation terminated.
make[2]: *** [Wrapping/CMakeFiles/vtkWrapPython.dir/vtkWrapPython.c.o] Error 1
make[1]: *** [Wrapping/CMakeFiles/vtkWrapPython.dir/all] Error 2




Reproducible: Always

Steps to Reproduce:
1. Set USE=python
2. emerge sci-libs/vtk

Actual Results:  
Build fails

Expected Results:  
Build succeeds

Portage 2.2.01.18980-prefix (prefix/linux/amd64, gcc-4.5.2, unavailable, 2.6.35-28-generic x86_64)
=================================================================
System uname: Linux-2.6.35-28-generic-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-debian-squeeze-sid
Timestamp of tree: Wed, 27 Jul 2011 06:37:04 +0000
app-shells/bash:      4.2_p10
dev-lang/python:      2.7.2
dev-util/cmake:       2.8.5-r2
dev-util/pkgconfig:   0.25-r2
sys-devel/autoconf:   2.68
sys-devel/automake:   1.11.1
sys-devel/binutils:   2.21.51.0.7
sys-devel/gcc:        4.5.2-r00.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:    2.4-r01.1
sys-devel/make:       3.82
Repositories: gentoo_prefix
Installed sets: 
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/terminfo"
CXXFLAGS="-ggdb -march=native -pipe"
DISTDIR="/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/gentoo/var/tmp"
PORTDIR="/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline session sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Edward "Hades" 2011-07-29 13:33:06 UTC
Created attachment 281445 [details, diff]
patch

Patch fixes the problem. Probably also needed in line 181:

            -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/${PN}
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-07-29 13:34:51 UTC
FYI: It is "broken" because it was never ported (that is why it has no prefix KEYWORDS)
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-07-29 14:01:47 UTC
(In reply to comment #1)
> Created attachment 281445 [details, diff]
> patch
> 
> Patch fixes the problem. Probably also needed in line 181:
> 
>             -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/${PN}

"probably" needed?
Comment 4 Edward "Hades" 2011-07-29 14:28:44 UTC
(In reply to comment #2)
> FYI: It is "broken" because it was never ported (that is why it has no prefix
> KEYWORDS)

Ah, I thought if a package is not ported, it's not in the tree.

(In reply to comment #3)
> (In reply to comment #1)
> > Created attachment 281445 [details, diff]
> > patch
> > 
> > Patch fixes the problem. Probably also needed in line 181:
> > 
> >             -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/${PN}
> 
> "probably" needed?

I don't have USE="qt4", so that does not apply to my system.
Comment 5 Fabian Groffen gentoo-dev 2011-08-04 19:24:55 UTC
thanks, I applied a slightly modified version of your patch