Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327103 - media-gfx/graphviz-2.26.3-r1 fails to clean up using python_mod_*
Summary: media-gfx/graphviz-2.26.3-r1 fails to clean up using python_mod_*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 09:03 UTC by Taiyang Chen
Modified: 2010-07-06 14:19 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Taiyang Chen 2010-07-06 09:03:16 UTC
graphviz-2.26.3-r1 fails to build (in fact, failed to do post install) every time:

 * ERROR: media-gfx/graphviz-2.26.3-r1 failed:
 *   python_mod_optimize(): Paths of directories / files in site-packages directories must be relative to site-packages directories
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called pkg_postinst
 *   environment, line 3346:  Called python_mod_optimize '/usr/lib64/python2.7/site-packages/gv.py'
 *   environment, line 4616:  Called die
 * The specific snippet of code:
 *                   die "${FUNCNAME}(): Paths of directories / files in site-packages directories must be relative to site-packages directories";
 * 
 * If you need support, post the output of 'emerge --info =media-gfx/graphviz-2.26.3-r1',
 * the complete build log and the output of 'emerge -pqv =media-gfx/graphviz-2.26.3-r1'.
 * The complete build log is located at '/var/tmp/portage/media-gfx/graphviz-2.26.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/graphviz-2.26.3-r1/temp/environment'.
 * S: '/var/tmp/portage/media-gfx/graphviz-2.26.3-r1/work/graphviz-2.26.3'
!!! FAILED postinst: 1

This caused the error:

pkg_postinst() {
    # This actually works if --enable-ltdl is passed
    # to configure
    dot -c
    if use python ; then
        python_mod_optimize $(python_get_sitedir)/gv.py
    fi
}

pkg_postrm() {
    if use python ; then
        python_mod_cleanup $(python_get_sitedir)/gv.py
    fi
}

Prepended an ${EPREFIX} on python_mod_optimize and got rid of the error. But python_mod_cleanup would still fail. I am no expert on this so if someone could shed some light...

Reproducible: Always




emerge --info:

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 06 Jul 2010 08:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.7, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests autoconfig candy ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distribution/gentoo http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac accessibility acl acpi alsa amd64 bash-completion berkdb bzip2 cairo chardet cjk cli cracklib crypt cups custom-optimization cxx dbus disk-partition divx dri dvdr encode exif extra extras firefox flac fontconfig fortran gdbm gif gmedia gnutls gpm gtk hddtemp iconv id3tag java java6 jpeg kpathsea laptop latex libsamplerate mmx modules mp3 mudflap multilib multitarget ncurses nls nptl nptlonly nsplugin openmp pam password pcre pdf perl png pppd python qq quicktime readline realmedia reflection rtc server session smp spell spl sqlite sse sse2 sse3 sse4 ssl ssse3 svg sysfs tcpd threads tiff truetype twolame unicode v4l v4l2 vim-syntax vim-with-x wifi wmp x264 xinerama xml xorg xvid zlib" ALSA_CARDS="hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa vga" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2010-07-06 13:51:04 UTC
Looking at the eclass, it seems you're going in the wrong direction
- try leaving just the filename (new syntax is relative to site-packages dir).
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-06 14:00:22 UTC
graphviz-2.26.3-r1 has been broken in revision 1.3.
EAPI was raised without updating syntax of arguments of python_mod_{optimize,cleanup}.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-07-06 14:19:29 UTC
+  06 Jul 2010; Justin Lecher <jlec@gentoo.org> graphviz-2.26.3-r1.ebuild:
+  Fix python_mod_* for EAPI=3
+