Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105056 - Emerged and played games-simulation/openttd-4.0.1-r1 successfully on Tiger
Summary: Emerged and played games-simulation/openttd-4.0.1-r1 successfully on Tiger
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on: 105404
Blocks:
  Show dependency tree
 
Reported: 2005-09-06 13:10 UTC by Stefan Frank
Modified: 2008-02-29 20:54 UTC (History)
0 users

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


Attachments
Fix for Tiger (timidity++-2.13.2-r2.ebuild.patch,1.08 KB, patch)
2005-09-07 09:37 UTC, Stefan Frank
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Frank 2005-09-06 13:10:05 UTC
After upgrading the XCode Tools to the one delivered with Tiger I was able to compile the dependencies 
of OpenTTD. It needs at leat media-libs/libsdl (and this one needs media-libs/audiofile). audiofile has 
"ppc-macos" keyword, but it needed the new XCode Tools. libsdl hasn't got a "ppc-macos" keyword, 
but it seems to work what OpenTTD concerns. OpenTTD hasn't got a "ppc-macos" keyword too.

I was able to compile OpenTTD with its dependencies - I didn't try all USE flags, but the important ones: 
zlib, png - timidity and dedicated I didn't try so far.

Reproducible: Always
Steps to Reproduce:
1. echo "media-libs/libsdl ~ppc" >> /etc/portage/package.keywords && echo "games-simulation/openttd 
x86" >> /etc/portage/package.keywords
2. USE="zlib png" emerge openttd
3. /usr/games/bin/openttd (as root (!))

Actual Results:  
OpenTTD pops up and it is playable. There is no midi sound due to -timidity (doesn't matter so far, I 
wasn't able to play the midis ingame on Linux). One problem remains: I have to run it as root. The 
permissions aren't set properly - there is no gaming group. I don't know how this is dealt under ppc-
macos.

Expected Results:  
-

What has to be done:
- Does timidity work?
- Permissions for user

I will try to emerge timidity, but I'm not so sure wheter this will work. I will post it immediatly after testing 
it.
Comment 1 Fabian Groffen gentoo-dev 2005-09-07 09:11:41 UTC
libsdl is ~ppc-macos in portage.  The new bumped version 1.2.9 has not been
tested however.  Version 1.2.8 was mentioned in bug #78925.

A games group should be created when it does not exist.  It is a general
contract that you have to be a member of the group games in order to play them.
 It's just like that.

A small comment, if you are on ppc-macos, you might want to use ~ppc-macos
instead of ~ppc.
Comment 2 Stefan Frank 2005-09-07 09:37:54 UTC
Created attachment 67839 [details, diff]
Fix for Tiger

Sorry for bugging you, whilst you seem to be on a break :). Maybe someone is
interested in playing OpenTTD with MIDI music. Oh, the patch is only to show
how it would work, I guess there should be a better way to tell econf that it
should add --enable-sound=darwin than using a new USE flag.

After all, OpenTTD seems to be running well on my MiniMac. And timidity++ is
able to play MIDI files too, this would probably lead to new keywords for that
ebuild too.
Comment 3 Fabian Groffen gentoo-dev 2005-09-07 10:26:25 UTC
how about using "use userland_Darwin" or "use ppc-macos" instead of "use darwin"
and making it a USE flag?  Then you get the desired functionality for free ;)

I guess you didn't know that one :)
Comment 4 Stefan Frank 2005-09-07 22:46:36 UTC
(In reply to comment #3)
> how about using "use userland_Darwin" or "use ppc-macos" instead of "use darwin"
> and making it a USE flag?  Then you get the desired functionality for free ;)
> 
> I guess you didn't know that one :)

Absolutely correct :). I didn't find (and search too hard for) any information
about howto refer to the current platform. But certainly this would be the
appropriate solution for this problem. Any chance this will get into the tree?

Comment 5 Fabian Groffen gentoo-dev 2005-09-07 23:00:17 UTC
Before this one can be marked ~ppc-macos in portage, timidity needs to be
marked.  I admit not having tried both openttd and timidity++, but a quick look
at timidity++ shows an impressive RDEPEND, which is related to the USE flags of
that package: "oss nas esd motif X gtk gtk2 vorbis tcltk slang alsa arts jack
portaudio  emacs ao speex flac ncurses"

There is not yet a bug on timidity++.  I am not very familiar with the sound
world, so I can't tell you if one of the USE flags causes trouble beforehand.  I
have to check it.
Comment 6 Paul Osmialowski 2006-03-30 15:13:33 UTC
I've started openttd-0.4.0.1 on Sparc with Gentoo 2005.1, it was working fine.
Comment 7 Fabian Groffen gentoo-dev 2008-02-29 20:54:10 UTC
let's not do games