<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>64550</bug_id>
          
          <creation_ts>2004-09-18 10:47 0000</creation_ts>
          <short_desc>scummvm-0.6.1b may build without libmpeg2 support due to access violation</short_desc>
          <delta_ts>2004-09-18 17:58:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kevin@kdau.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>kevin@kdau.com</who>
            <bug_when>2004-09-18 10:47:55 0000</bug_when>
            <thetext>The &quot;configure&quot; 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 &quot;/tmp/scummvm-conf&quot;. 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!
&gt;&gt;&gt; emerge (1 of 1) games-engines/scummvm-0.6.1b to /
&gt;&gt;&gt; md5 src_uri ;-) scummvm-0.6.1b.tar.bz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking scummvm-0.6.1b.tar.bz2 to /var/tmp/portage/scummvm-0.6.1b/work
&gt;&gt;&gt; Source unpacked.
sdl
Running ScummVM configure...
Looking for C++ compiler... g++
Checking for compiler version... tail: `-1&apos; option is obsolete; use `-n 1&apos; 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 &gt;= 0.9... yes
Checking for zlib... yes
Checking for libmpeg2 &gt;= 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&apos;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=&quot;x86&quot;
ACCEPT_LICENSE=&quot;&quot;
ARCH=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
BASH_ENV=&quot;/etc/portage/bashrc&quot;
CC=&quot;gcc&quot;
CFLAGS=&quot;-march=pentium4 -O3 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CLASSPATH=&quot;.&quot;
CLEAN_DELAY=&quot;5&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CVS_RSH=&quot;ssh&quot;
CXX=&quot;g++&quot;
CXXFLAGS=&quot;-march=pentium4 -O3 -pipe&quot;
DISPLAY=&quot;:0.0&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
EDITOR=&quot;/bin/nano&quot;
FEATURES=&quot;autoaddcvs ccache notitles sandbox sfperms strict&quot;
FETCHCOMMAND=&quot;/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}&quot;
GDK_USE_XFT=&quot;1&quot;
GENTOO_MIRRORS=&quot;http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo
http://mirror.clarkson.edu/pub/distributions/gentoo/&quot;
GLIBC_SSP_CHECKED=&quot;1&quot;
GRP_STAGE23_USE=&quot;ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses&quot;
G_BROKEN_FILENAMES=&quot;1&quot;
HOME=&quot;/root&quot;
HOSTNAME=&quot;barbarianism&quot;
INFODIR=&quot;/usr/share/info:/usr/X11R6/info&quot;
INFOPATH=&quot;/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info&quot;
INPUTRC=&quot;/etc/inputrc&quot;
JAVAC=&quot;/opt/blackdown-jdk-1.4.1/bin/javac&quot;
JAVA_HOME=&quot;/opt/blackdown-jdk-1.4.1&quot;
JDK_HOME=&quot;/opt/blackdown-jdk-1.4.1&quot;
LANG=&quot;en_CA.utf8&quot;
LD_LIBRARY_PATH=&quot;/usr/lib/asterisk&quot;
LESS=&quot;-R&quot;
LESSOPEN=&quot;|lesspipe.sh %s&quot;
LOGNAME=&quot;root&quot;
LS_COLORS=&quot;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:&quot;
MAIL=&quot;/var/mail/root&quot;
MAKEOPTS=&quot;-j2&quot;
MANPATH=&quot;/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&quot;
NOCOLOR=&quot;false&quot;
OLDPWD=&quot;/usr/portage/net-www&quot;
PAGER=&quot;/usr/bin/less&quot;
PATH=&quot;/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&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_BINHOST_CHUNKSIZE=&quot;3000&quot;
PORTAGE_CACHEDIR=&quot;/var/cache/edb/dep/&quot;
PORTAGE_CALLER=&quot;emerge&quot;
PORTAGE_GID=&quot;250&quot;
PORTAGE_MASTER_PID=&quot;2848&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
PORT_LOGDIR=&quot;/var/log/portage&quot;
PRELINK_PATH=&quot;&quot;
PRELINK_PATH_MASK=&quot;/opt&quot;
PS1=&quot;\n\[\033[01;31m\]\h\[\033[01;39m\]\w\n\[\033[01;34m\]\$ \[\033[00m\]&quot;
PWD=&quot;/&quot;
PYTHONDOCS=&quot;/usr/share/doc/python-docs-2.3.3/html&quot;
RESUMECOMMAND=&quot;/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}&quot;
RPMDIR=&quot;/usr/portage/rpm&quot;
RSYNC_RETRIES=&quot;3&quot;
RSYNC_TIMEOUT=&quot;180&quot;
SHELL=&quot;/bin/bash&quot;
SHLVL=&quot;1&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
TERM=&quot;xterm&quot;
USE=&quot;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&quot;
USER=&quot;root&quot;
USERLAND=&quot;GNU&quot;
USE_EXPAND=&quot;VIDEO_CARDS INPUT_DEVICES LINGUAS&quot;
XARGS=&quot;xargs -r&quot;
XAUTHORITY=&quot;/root/.xauth5E6q8Y&quot;
XINITRC=&quot;/etc/X11/xinit/xinitrc&quot;
_=&quot;/usr/bin/emerge&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevin@kdau.com</who>
            <bug_when>2004-09-18 10:50:25 0000</bug_when>
            <thetext>Created an attachment (id=39868)
modified scummvm-0.6.1b.ebuild

This modified ebuild points the configure script to the build directory for
making test objects.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevin@kdau.com</who>
            <bug_when>2004-09-18 10:59:42 0000</bug_when>
            <thetext>Created an attachment (id=39869)
patch to configure script, instead

On second thought, why not just patch the configure script to build in its
current directory?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-09-18 17:58:31 0000</bug_when>
            <thetext>no end of ugly autotools stuff out there I guess.

Fixed in CVS.  resync and remerge.  Thanks for the bug report.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>39868</attachid>
            <date>2004-09-18 10:50 0000</date>
            <desc>modified scummvm-0.6.1b.ebuild</desc>
            <filename>scummvm-0.6.1b.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50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BzZGwgXAoJCSYmIG15Y29uZj0iJHtteWNvbmZ9IC0tYmFja2VuZD1z
ZGwiIFwKCQl8fCBteWNvbmY9IiR7bXljb25mfSAtLWJhY2tlbmQ9eDExIgoJdXNlIGRlYnVnIFwK
CQl8fCBteWNvbmY9IiR7bXljb25mfSAtLWRpc2FibGUtZGVidWciCgoJIyBub3QgYW4gYXV0b2Nv
bmYgc2NyaXB0IHNvIGRvbnQgY2FsbCBlY29uZgoJLi9jb25maWd1cmUgXAoJCSQodXNlX2VuYWJs
ZSBhbHNhKSBcCgkJJCh1c2VfZW5hYmxlIG1hZCkgXAoJCSQodXNlX2VuYWJsZSBvZ2d2b3JiaXMg
dm9yYmlzKSBcCgkJJCh1c2VfZW5hYmxlIHpsaWIpIFwKCQkke215Y29uZn0gXAoJCXx8IGRpZSAi
Y29uZmlndXJlIGZhaWxlZCIKCWVtYWtlIHx8IGRpZSAiZW1ha2UgZmFpbGVkIgp9CgpzcmNfaW5z
dGFsbCgpIHsKCWRvZ2FtZXNiaW4gc2N1bW12bSB8fCBkaWUgImRvYmluIGZhaWxlZCIKCWRvbWFu
IHNjdW1tdm0uNgoJZG9kb2MgTkVXUyBSRUFETUUgVE9ETwoJaW5zaW50byAvdXNyL3NoYXJlL3Bp
eG1hcHMKCWRvaW5zIHNjdW1tdm0ueHBtICAgICAgfHwgZGllICJkb2lucyBmYWlsZWQiCgltYWtl
X2Rlc2t0b3BfZW50cnkgc2N1bW12bSBTY3VtbVZNCglwcmVwZ2FtZXNkaXJzCn0K
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>39869</attachid>
            <date>2004-09-18 10:59 0000</date>
            <desc>patch to configure script, instead</desc>
            <filename>scummvm-0.6.1b-mpeg2-detection.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNjdW1tdm0tMC42LjFiLW9yaWdpbmFsL2NvbmZpZ3VyZQkyMDA0LTA1LTA2IDA2OjMzOjEx
LjAwMDAwMDAwMCAtMDQwMAorKysgc2N1bW12bS0wLjYuMWIvY29uZmlndXJlCTIwMDQtMDktMTgg
MTM6NTM6NTkuNjAzMzU4NzYwIC0wNDAwCkBAIC0xNyw3ICsxNyw3IEBACiAKICMgVE9ETzogV2Ug
c2hvdWxkIHJlYWxseSB1c2UgbWt0ZW1wKDEpIHRvIGRldGVybWluZSBhIHJhbmRvbSB0bXAgZmls
ZSBuYW1lLgogIyBIb3dldmVyLCB0aGF0IHRvb2wgbWlnaHQgbm90IGJlIGF2YWlsYWJsZSBldmVy
eXdoZXJlLgotVE1QTz0vdG1wL3NjdW1tdm0tY29uZgorVE1QTz0uL3NjdW1tdm0tY29uZgogVE1Q
Qz0ke1RNUE99LmNwcAogVE1QTE9HPWNvbmZpZy5sb2cKIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>