Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78465 - openttd 0.3.5 ebuild uses pmidi, but doesn't have it as dependency.
Summary: openttd 0.3.5 ebuild uses pmidi, but doesn't have it as dependency.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 21:34 UTC by Alexander Jenisch
Modified: 2005-01-19 19:06 UTC (History)
0 users

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 Alexander Jenisch 2005-01-17 21:34:15 UTC
if timidity is installed, MIDI is set to pmidi, no matter, if pmidi is installed or not. i would suggest setting that to aplaymidi or put pmidi as dependency.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-01-18 19:40:36 UTC
maybe I'm missing what you're saying, can you restate it please?  The ebuild changes behavior based on the timidity use flag.  Can you give an example of the changes to the ebuild?
Comment 2 Alexander Jenisch 2005-01-19 03:07:58 UTC
i've found those lines:

    if ! use timidity; then
        use alsa && myopts="${myopts} MIDI=/usr/bin/pmidi"
    fi

in the ebuild and assumed (means i have no clue), that this somehow configures openttd to use pmidi as midi player. if this is not correct, ignore my statement. even more, since i've emerged pmidi and still get no midi sound. i've copied over al .gm's, yes, and i can even listen to them with aplaymidi, but they won't be played in the game, what made me look in the ebuild for something in the first place.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2005-01-19 10:46:05 UTC
post the output of emerge --info please.
Comment 4 Alexander Jenisch 2005-01-19 17:33:44 UTC
root@eNTi # emerge info
Portage 2.0.51-r13 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 11 2005, 21:55:34)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.5, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /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"
CXXFLAGS="-march=k8 -O2 -pipe"  
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks fixpackages"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"                  
PKGDIR="/usr/portage/packages"  
PORTAGE_TMPDIR="/var/tmp"       
PORTDIR="/usr/portage"          
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 S3TC X aalib acpi acpi4linux alsa async bash-completion berkdb bidi bitmap-fonts bzlib cdb cddb cdinstall cdparanoia cdr cdrom chroot codecs crypt cups dga distcache divx4linux dts dvb dvd dvdr dvdread emul-linux-x86 escreen ethereal ext-png ext-zlib faac faad fam fame fastcgi fftw flac fltk fmod font-server freetype ftp gd gdbm gif gimp gimpprint gkrellm glut gpm gs gtk gtkhtml icq imagemagick imlib imlib2 ipv6 java javadoc jikes jp2 jpeg junit lcms libcaca libwww lzo lzw lzw-tiff maildir matroska mcal mjpeg mmap mng moznocompose moznoirc moznomail mozsvg mp3 multilib mythtv native ncurses nethack network nls no-old-linux nocd nowin nvidia offensive oggvorbis openal opengl operanom2 oscar oss pam pcre perl php physfs png posix ppds python qt readline rtc samba sdl shared sharedmem slp sndfile sockets ssl stencil-buffer stroke svg tcltk tcpd tetex theora threads tiff timidity transcode truetype truetype-fonts type1 type1-fonts usb userlocales vim vim-with-x vnc winbind wmf wxwindows xchatdccserver xine xmlrpc xmms xosd xpm xrandr xv xvid xvmc zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2005-01-19 19:06:58 UTC
That code means that if you don't have timidity in your use flags that it will use pmidi instead.  The deps and the code seem to be correct for this so it sounds like you have some local setup issues with playing midi files with timidity.  If you would prefer to use pmidi instead of timidity for openttd you should add specify that in the package.use file (see man portage).

I'm going to mark this invalid as the ebuild seems to be doing the right thing as far as I can tell.