Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142498 - media-gfx/povray configure error
Summary: media-gfx/povray configure error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
: 141910 153385 153783 156979 157905 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-01 22:36 UTC by EzInKy
Modified: 2007-03-04 18:01 UTC (History)
10 users (show)

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


Attachments
patch (3.6.1-find-egrep.diff,2.41 KB, patch)
2006-11-15 08:04 UTC, David Leverton
Details | Diff
ebuild patch (povray-3.6.1-r1.ebuild.patch2,276 bytes, patch)
2006-11-15 08:06 UTC, David Leverton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description EzInKy 2006-08-01 22:36:38 UTC
$emerge --info

Portage 2.1.1_pre4-r1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.12.2
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d a52 aac aalib accessibility alsa arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cups divx4linux dlloader doc dri dv dvd dvdr dvdread eds emboss encode esd fbcon ffmpeg flac foomaticdb fortran gcj gif glut gnome gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 isdnlog ithreads joystick jpeg kde kdeenablefinal kqemu lm_sensors lzw lzw-tiff mad mikmod mime mng mozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis openal opengl pam pcre pdflib perl png posix ppds pppd python qt qt3 qt4 quicktime readline reflection scanner sdl session slang sndfile snmp spell spl ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vorbis xine xinerama xml2 xmms xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Povray fails with weird configure errors such as...

"checking whether x86_64-pc-linux-gnu-g++ accepts -march=k8 -mtune=k8... ./configure: line 17726: "\-m|arch=k8|\-m|tune=k8": command not found" 

...yet the source tarball compiles fine by hand.
Comment 1 EzInKy 2006-08-03 19:12:45 UTC
Commenting out eautoconf in the ebuild allows the package to build, and povray successfully rendered a scene.
Comment 2 Alexis Ballier gentoo-dev 2006-09-09 10:23:49 UTC
Hi, 
I'm having the same problem; however removing eautoconf is not the solution, have a look at bug #118156 .

It seems to be a problem with autotools that does not define ac_cv_prog_egrep. It is supposed to be defined by autotools macros, but for some reason it's not.

A workaround I've found is to apply this to the ebuild : 

-       econf COMPILED_BY="${USER} (on `uname -n`)" ${myconf} || die
+       ac_cv_prog_egrep="egrep" econf COMPILED_BY="${USER} (on `uname -n`)" ${myconf} || die



This is not the best solution, but it works, may be somebody skilled with the autotools can have a look at this and fix it, but I've not been able to do so.
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-10-13 01:50:58 UTC
*** Bug 141910 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-29 22:46:00 UTC
*** Bug 153385 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-11-02 01:12:15 UTC
*** Bug 153783 has been marked as a duplicate of this bug. ***
Comment 6 David Leverton 2006-11-15 08:04:34 UTC
Created attachment 101990 [details, diff]
patch

Problem is that it tries to use $ac_cv_prog_egrep in a subshell (presumably only with newer autoconfs, which would explain why it works when built outside Portage), but that variable isn't exported.  It works when using $EGREP instead.
Comment 7 David Leverton 2006-11-15 08:06:03 UTC
Created attachment 101991 [details, diff]
ebuild patch

First patch changes acinclude.m4, so need to run eaclocal.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-12-03 05:25:04 UTC
*** Bug 156979 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-01-16 20:49:36 UTC
*** Bug 157905 has been marked as a duplicate of this bug. ***
Comment 10 Stephen Bridges 2007-02-25 16:48:34 UTC
This fixed it for me.

Portage 2.1.2-r10 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo x86_64)
=================================================================
System uname: 2.6.20-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 24 Feb 2007 16:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac alsa amd64 berkdb bitmap-fonts blender-game cairo cdinstall cdparanoia cdr cdrom cli cracklib crypt cvs dbus deprecated divx dvd dvdr dvdread eds emboss encode fam ffmpeg firefox fortran gdbm gif gmedia gphoto2 gpm graphviz gtk gtk2 hal history iconv imlib jpeg kde libg++ libsamplerate live lm_sensors mad midi mikmod mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ofx ogg openal opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime quotes readline realmedia reflection sdl session smp spell spl sql ssl subversion svg tcpd theora truetype truetype-fonts type1-fonts unicode usb vorbis wmp x264 xcomposite xml xorg xscreensaver xv xvid 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Satan Claus 2007-03-04 08:45:46 UTC
Problem is still existing in portage, had to apply the patches myself (dirty: copy first patch to /usr/portage/media-gfx/povray/files/3.6.1-find-egrep.diff, merge second with /usr/portage/media-gfx/povray/povray-3.6.1-r1.ebuild and run ebuild povray-3.6.1-r1.ebuild digest manifest).

Would be nice, if a dev could apply the patches to the ebuild which is in stable tree and doesn't work ;)

In cases where povray is in your useflags kde-meta draws this package in via kdegraphics-meta, so I guess there are quite a few users having problems with this ebuild.

thx
Comment 12 Anant Narayanan (RETIRED) gentoo-dev 2007-03-04 18:01:03 UTC
Thanks, fixed in CVS.