Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139734 - media-libs/openexr-1.2.2-r2 fails test - wrong sed in ebuild
Summary: media-libs/openexr-1.2.2-r2 fails test - wrong sed in ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 141248
  Show dependency tree
 
Reported: 2006-07-09 01:04 UTC by Michael Cramer
Modified: 2006-11-07 10:50 UTC (History)
3 users (show)

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


Attachments
patch to correct the ebuild so that the tests succeeds (openexr-1.2.2-r2.patch,448 bytes, patch)
2006-09-26 06:30 UTC, Bo Ørsted Andresen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2006-07-09 01:04:48 UTC
with FEATURES="test" the build fails here:

if i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 -DHAVE_IOS_BASE=1 -DHAVE_COMPLETE_IOMANIP=1 -DHAVE_STL_LIMITS=1  -I. -I. -I.. -I../Half -I../Iex -I../Imath -I../IlmImf   -pipe -march=i686 -O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -MT testAttributes.o -MD -MP -MF ".deps/testAttributes.Tpo" \
          -c -o testAttributes.o `test -f 'testAttributes.cpp' || echo './'`testAttributes.cpp; \
        then mv -f ".deps/testAttributes.Tpo" ".deps/testAttributes.Po"; \
        else rm -f ".deps/testAttributes.Tpo"; exit 1; \
        fi
testAttributes.cpp:331:25: error: too many decimal points in number
testAttributes.cpp: In function 'void testAttributes()':
testAttributes.cpp:331: error: expected primary-expression before '/' token
testAttributes.cpp:331: error: 'var' was not declared in this scope
testAttributes.cpp:331: error: 'tmp' was not declared in this scope
testAttributes.cpp:331: error: 'portage' was not declared in this scope
testAttributes.cpp:331: error: 'openexr' was not declared in this scope
testAttributes.cpp:331: error: 'r2' was not declared in this scope
testAttributes.cpp:331: error: 'temp' was not declared in this scope
testAttributes.cpp:331: error: expected ',' or ';' before string constant
make[2]: *** [testAttributes.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/openexr-1.2.2-r2/work/OpenEXR-1.2.2/IlmImfTest'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/openexr-1.2.2-r2/work/OpenEXR-1.2.2/IlmImfTest'
make: *** [check-recursive] Error 1

!!! ERROR: media-libs/openexr-1.2.2-r2 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_test
  ebuild.sh, line 988:   Called src_test
  ebuild.sh, line 618:   Called die

!!! Make check failed. See above for details.
!!! If you need support, post the topmost build error, and the call stack if relevant.

the resulting file content looks like:

#if defined(PLATFORM_WINDOWS) || defined(__MWERKS__)
    #define IMF_TMP_DIR ""
#else
    #define IMF_TMP_DIR /var/tmp/portage/openexr-1.2.2-r2/temp
#endif

the " around the path are missing, this is caused by the sed command in the ebuild, if changing the sed (escape the " or remove the ' around ${T}):

sed -i -e 's:"/var/tmp/":'"${T}"':' "${S}/IlmImfTest/tmpDir.h"

all works
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2006-07-21 01:11:57 UTC
If the quotes are removed as suggested the tests won't fail anymore

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r13 i686)
=================================================================
System uname: 2.6.16-gentoo-r13 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
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.17
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
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.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa artworkextra asf audiofile avi bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds emacs emboss encode esd evo exif expat fam fat fbcon fdftk ffmpeg firefox foomaticdb fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap imlib ipv6 isdnlog java javascript jikes jpeg jpeg2k ldap leim libg++ libwww lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext mng mono motif mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdf pdflib perl plotutils pmu png ppds pppd preview-latex print python qt qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_radeon video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-09-26 06:30:11 UTC
Created attachment 98121 [details, diff]
patch to correct the ebuild so that the tests succeeds
Comment 3 Alexis Ballier gentoo-dev 2006-11-07 10:50:39 UTC
Fixed, thank you very much.