Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64550 - scummvm-0.6.1b may build without libmpeg2 support due to access violation
Summary: scummvm-0.6.1b may build without libmpeg2 support due to access violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 10:47 UTC by Kevin Daughtridge
Modified: 2004-09-18 17:58 UTC (History)
0 users

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


Attachments
modified scummvm-0.6.1b.ebuild (scummvm-0.6.1b.ebuild,1.49 KB, text/plain)
2004-09-18 10:50 UTC, Kevin Daughtridge
Details
patch to configure script, instead (scummvm-0.6.1b-mpeg2-detection.patch,377 bytes, patch)
2004-09-18 10:59 UTC, Kevin Daughtridge
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Daughtridge 2004-09-18 10:47:55 UTC
The "configure" script used by scummvm tests for the presence of libmpeg2 (and the need for memory alignment) by compiling a test object at the hard-wired path "/tmp/scummvm-conf". On systems where /tmp is on a partition without execution permissions, the test fails and libmpeg2 is never detected. Beginning of emerge output:

Calculating dependencies ...done!
>>> emerge (1 of 1) games-engines/scummvm-0.6.1b to /
>>> md5 src_uri ;-) scummvm-0.6.1b.tar.bz2
>>> Unpacking source...
>>> Unpacking scummvm-0.6.1b.tar.bz2 to /var/tmp/portage/scummvm-0.6.1b/work
>>> Source unpacked.
sdl
Running ScummVM configure...
Looking for C++ compiler... g++
Checking for compiler version... tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future
3.3.4, ok
Checking hosttype... Linux
Checking endianess... little
Alignment required... ./configure: line 568: /tmp/scummvm-conf: Permission denied
yes
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Checking for Ogg Vorbis... yes
Checking for MAD... yes
Checking for ALSA >= 0.9... yes
Checking for zlib... yes
Checking for libmpeg2 >= 0.3.2... ./configure: line 694: /tmp/scummvm-conf: Permission denied
no

Engines:
    SCUMM
    Simon the Sorcerer
    Beneath a Steel Sky
    Broken Sword I  (without mpeg2 cutscenes)
    Broken Sword II (without mpeg2 cutscenes)
    Flight of the Amazon Queen

Backend... sdl
Looking for sdl-config... /usr/bin/sdl-config


Reproducible: Always
Steps to Reproduce:
1. Remove execute permissions on partition containing /tmp (mount -o remount,noexec). (Kids without a separate /tmp partition, don't try this at home.)
2. emerge games-engines/scummvm-0.6.1b

Actual Results:  
libmpeg2 was not detected.

Expected Results:  
libmpeg2 should have been detected.

Gentoo Base System version 1.4.16
Portage 2.0.50-r11 (2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
FEATURES="autoaddcvs ccache notitles sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo
http://mirror.clarkson.edu/pub/distributions/gentoo/"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="barbarianism"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
JAVAC="/opt/blackdown-jdk-1.4.1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.1"
JDK_HOME="/opt/blackdown-jdk-1.4.1"
LANG="en_CA.utf8"
LD_LIBRARY_PATH="/usr/lib/asterisk"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man::/opt/blackdown-jdk-1.4.1/man"
NOCOLOR="false"
OLDPWD="/usr/portage/net-www"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/local/sbin"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="2848"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORT_LOGDIR="/var/log/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK="/opt"
PS1="\n\[\033[01;31m\]\h\[\033[01;39m\]\w\n\[\033[01;34m\]\$ \[\033[00m\]"
PWD="/"
PYTHONDOCS="/usr/share/doc/python-docs-2.3.3/html"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X X509 aalib accessibility acl acpi aim alsa apache2 asterisk async
audiofile avi bidi bitmap-fonts bonobo cdparanoia cdr chroot cjk crypt cups curl
dga divx4linux doc dvd dvdread encode erandom esd exif fam fbcon flac flash
foomaticdb ftp gd gdbm geoip gif gimpprint gmp gnome gnomedb gphoto2 gpm
gstreamer gtk gtk2 gtkhtml hardenedphp iconv imagemagick imap imlib ipv6 jabber
java javascript jbig jpeg lcms ldap libcaca libg++ libgda libwww mad maildir
mailwrapper mbox mcal memlimit mikmod mmx mmx2 mng mozilla moznocompose moznoirc
mozsvg mpeg msn nas ncurses network nls oggvorbis opengl oscar pam pcre pdflib
perl pg-intdatetime php plotutils png posix postgres ppds pwdb python quicktime
readline rtc sasl scanner sdl slang slp spell sse sse2 ssl svg tcpd tetex tga
tiff truetype unicode usb vda wmf x86 xinerama xml xml2 xmms xprint xv xvid yaz
zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
XARGS="xargs -r"
XAUTHORITY="/root/.xauth5E6q8Y"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
Comment 1 Kevin Daughtridge 2004-09-18 10:50:25 UTC
Created attachment 39868 [details]
modified scummvm-0.6.1b.ebuild

This modified ebuild points the configure script to the build directory for
making test objects.
Comment 2 Kevin Daughtridge 2004-09-18 10:59:42 UTC
Created attachment 39869 [details, diff]
patch to configure script, instead

On second thought, why not just patch the configure script to build in its
current directory?
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-09-18 17:58:31 UTC
no end of ugly autotools stuff out there I guess.

Fixed in CVS.  resync and remerge.  Thanks for the bug report.