Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52723 - ebuild: games-puzzle/mures
Summary: ebuild: games-puzzle/mures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Gentoo Games
URL: http://mures.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-01 13:41 UTC by Alexandru Toma
Modified: 2005-05-10 08:46 UTC (History)
0 users

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


Attachments
mures-0.5.ebuild (mures-0.5.ebuild,2.62 KB, text/plain)
2004-06-01 13:42 UTC, Alexandru Toma
Details
mures-0.5-screenshot.patch (mures-0.5-screenshot.patch,319 bytes, patch)
2004-06-01 13:42 UTC, Alexandru Toma
Details | Diff
mures-0.5-save.patch (mures-0.5-save.patch,468 bytes, patch)
2004-06-01 13:46 UTC, Alexandru Toma
Details | Diff
mures-0.5.ebuild (mures-0.5.ebuild,2.55 KB, text/plain)
2004-06-02 01:58 UTC, Alexandru Toma
Details
mures-0.5.ebuild : inherit eutils, if [ `use -> if use (mures-0.5.ebuild,2.55 KB, text/plain)
2004-06-02 02:30 UTC, Alexandru Toma
Details
mures-0.5.ebuild (mures-0.5.ebuild,2.24 KB, text/plain)
2004-10-07 12:02 UTC, Alexandru Toma
Details
mures-0.5.ebuild (mures-0.5.ebuild,2.24 KB, text/plain)
2004-10-07 12:05 UTC, Alexandru Toma
Details
mures-0.5.ebuild (mures-0.5.ebuild,2.40 KB, text/plain)
2005-03-27 03:39 UTC, Alexandru Toma
Details
mures-0.5.ebuild (mures-0.5.ebuild,2.40 KB, text/plain)
2005-04-11 08:03 UTC, Alexandru Toma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Toma 2004-06-01 13:41:36 UTC
From The Linux Game Tome:
"A clone of Sega's Chu Chu Rocket

Mures is a cross-platform clone of Sega's "Chu Chu Rocket," a multi-player puzzle game. Players place arrows on a board in an attempt to guide the mice into their rockets and away from opponents' rockets. A great party game."


There is still a big issue with this ebuild, but there was nothing more I could do so I'll just post it here in hope that someone will fix it.

The problem lies with the flags passed on to the compiler. The program can be built with or without OpenGL support. If you want OpenGL support built in, you have to add -DHAVE_GL and -lGL to the CFLAGS, and if you don't want it then you don't have to add these flags. So far so good.

The problem arrises from the fact that, if you have OpenGL installed, the configure script autodetects this and passes these flags to the compiler. However, there may be persons that, even though they have OpenGL installed, may not want to build OpenGL support into the game.

So far I have been unable to nicely resolve this issue ... read "I lack the knowledge" (see the ebuild for the hack I have implemented). This should _definately_ be fixed _before_ the ebuild is added to portage.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alexandru Toma 2004-06-01 13:42:09 UTC
Created attachment 32489 [details]
mures-0.5.ebuild
Comment 2 Alexandru Toma 2004-06-01 13:42:37 UTC
Created attachment 32490 [details, diff]
mures-0.5-screenshot.patch
Comment 3 Alexandru Toma 2004-06-01 13:46:32 UTC
Created attachment 32491 [details, diff]
mures-0.5-save.patch

There's really not much point to this patch as the game doesn't have any "load
game" functionality even though it can save games (maybe it was planed for a
future version). However, since I didn't know how the program reacted when it
tried to save the game in a place where it couldn't because of permissions, I
just thought it might be better to change the save game location to the home
dirrectory.
Comment 4 Alexandru Toma 2004-06-02 01:58:21 UTC
Created attachment 32513 [details]
mures-0.5.ebuild
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-06-02 02:11:35 UTC
A few things:

eutils needs to be inherit'd for epatch
if [ `use... needs to become
if use ...

installs a bunch of .lua files but lua isn't mentioned in DEPEND? hmmm....
The hack has to be cleaned up before it goes into portage.
Comment 6 Alexandru Toma 2004-06-02 02:28:09 UTC
>> eutils needs to be inherit'd for epatch
I have always wondered about this. Epatch seems to work without inherit eutils for me... are you absolutely sure? And if so, why does it work without inherit eutils?

>> if [ `use... needs to become
>> if use ...
quote from man 5 ebuild:

"use <USE item>
If USE item is in the USE variable, USE item will be echoed  and
the function will return 0.  If USE item is not in the USE vari-
able, the function will return 1.

Example:
        if [ `use gnome` ] ; then
               guiconf="--enable-gui=gnome --with-x"
        elif [ `use gtk` ] ; then
               guiconf="--enable-gui=gtk --with-x"
        elif [ `use X` ] ; then
               guiconf="--enable-gui=athena --with-x"
        else
               # No gui version will be built
               guiconf=""
        fi"
end quote

Also shouldn't that be "If USE item is not in the USE vari-
able, the function will return 0."?!


>> installs a bunch of .lua files but lua isn't mentioned in DEPEND? hmmm....
The game package already provides lua. At least for me, it worked without lua installed.

>> The hack has to be cleaned up before it goes into portage.
Definately :) ... I just don't know how to do it
Comment 7 Alexandru Toma 2004-06-02 02:30:48 UTC
Created attachment 32514 [details]
mures-0.5.ebuild : inherit eutils, if [ `use -> if use
Comment 8 Alexandru Toma 2004-10-07 12:02:19 UTC
Created attachment 41311 [details]
mures-0.5.ebuild

Finally got a chance to look at the program again and immediately managed to
solve the problem. That's what 4 months can do ;)
Comment 9 Alexandru Toma 2004-10-07 12:05:51 UTC
Created attachment 41312 [details]
mures-0.5.ebuild

On second thought... that sed belongs in src_unpack()
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2005-03-26 18:49:09 UTC
The opengl stuff doesn't look like it works to me.  Does something automatically rebuild configure after you've modified configure.in?
Comment 11 Alexandru Toma 2005-03-27 03:38:58 UTC
I don't know if it automatically rebuilds configure, but it worked for me. _How_ does it not work for you? Can you be a little more explicit?

Anyway, I've reworked the ebuild a little bit. Hopefully it should solve your problems. If it doesn't work then please tell me _how_ it doesn't work.
Comment 12 Alexandru Toma 2005-03-27 03:39:27 UTC
Created attachment 54582 [details]
mures-0.5.ebuild
Comment 13 Alexandru Toma 2005-04-11 08:03:44 UTC
Created attachment 55989 [details]
mures-0.5.ebuild

Updated header.
Comment 14 Alexandru Toma 2005-04-11 08:10:21 UTC
It's been almost a year already since this bug was fixed. Is there any interest of getting this ebuild in portage?

Don't get me wrong, I'm not complaining, I just want to know if I should keep updating the ebuild or not. Also, I would like to know if there are any technical issues with the ebuild that I could possibly help with.

I understand that you're all busy, but I think a minimum level of communication between developers and users is in order.
Comment 15 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-21 18:30:23 UTC
You're already at the minimum level of communication.  Do you think we need less?  We can surely accomodate that one.  ;]

Do you really want us making comments just like this one in every single bug stating that while this bug has not gone away, it will one day be completed?  How about I give you a time estimate?  I think this bug will be resolved 13 days after SpanKY wins the United States presidency.

Now that my own sarcasm has piqued my interest in this, I'm adding it to my personal TODO list.  However, I am in an away status at the moment, due to buying a new house, so anything on my list has to wait a few weeks.  If one of the other guys hasn't done it by then, I'll put this in portage.

As for updating the ebuild, it is definitely a better idea than abandoning them.  After all, if the ebuild stays updated, then when we do visit it, we can simply test/commit, rather than having to update it for the latest version ourselves.  Many times bugs get passed over for easier ones, especially when time is limited.
Comment 16 Alexandru Toma 2005-04-22 00:57:29 UTC
If you read the posts you will see that Mr Bones complained that the opengl stuff doesn't work for him without saying why or posting more information. Even after I tried fixing the problem he did not reply. This is the kind of stuff you for which you close bugs immediately if the users do it. Shouldn't developers set an example? This is what I was reffering to when I mentioned the lack of communication between developers and users.

As far as your sarcastic comment is concerned, I think it is childish and totally uncalled for. I tried to formulate my post so as not to sound like I'm pestering or begging you, it was mainly to point out the lack of communication. I also tried to keep it as polite and respectful as possible. Maybe I failed to do that, however, this is no reason to post comments like the one you posted. I thought Gentoo had an etiquette policy ( http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=3&chap=2 ).

This has really left a bad taste in my mouth.
Comment 17 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-22 04:24:28 UTC
Wow... what can I say except that some of you guys really need to lighten up.  Did you see the little ";]" at the end of that?  Yeah, that means it is a joke.  It means I was pulling your leg and trying to ease tension by being funny.

If this has left a bas taste in your mouth, then I'm sorry, but you have to understand that we're all volunteers here, and we like to have fun.  Pointing out our own policies as if we don't know them is rather insulting.  I'm not really going to comment on that anymore, as there's no point.

Anyway, I gave you your answer in the last post.  I'll check it out as soon as I get more free time to work on Gentoo.

We're a bunch of jokers on the games team.  If this offends you in some way, please refrain from posting games requests, as I am sure we will continue to be the jovial personalities that you all either love ot loathe.  ;]
Comment 18 Alexandru Toma 2005-04-22 07:27:03 UTC
Do I feel embarased? Yes. I did see the ";]" but the square bracket (instead of the round one) fooled me. If I made any comments that insulted you please accept my appologies. It was not on purpose.

I know all the Gentoo developers are volunteers. I don't know if I've made more than two or three comments regarding the fact that things were not getting fixed or not getting added to portage since I started using Gentoo a few years ago. I _always_ keep in mind the fact that you are volunteers.

However, we, the users trying to contribute to Gentoo by filing bug reports or submitting ebuilds, are also volunteers. When you (the developers) post things like "this, or that doesn't work" I know it's because you're trying to help. But please also post how, what or why it doesn't work. Maybe even an error message. This also goes for the users, of course.

Again, I would like to appologise, for the previous post. If it was insulting it was maybe because I was also offended by what I thought was a rude comment. This is no excuse, I know. Sorry!
Comment 19 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-05 04:40:41 UTC
Added to CVS...

Just a couple quick notes.

- You can use doins -r to do recursive copies
- This may be my personal preference, but I prefer to install the binary/shell script into the actual game directory and use games_make_wrapper to do the install into /usr/games/bin
- Use ${dir} instead of ${DEST_DIR}... this is purely cosmetic, but it follows the same structure as most other games ebuilds

Also, I left the DEPEND section the same.  My only question is whether or not the game actually *requires* those versions or not.  If it could work wiht lower versions, it should either be specified that way, or it should be left without a version atom.  I'm not saying you did anything wrong, as I didn't check myself (yeah, yeah, bad wolfie) and am pretty much just trying to be informative.

Thanks for the ebuild (and the patience!)
Comment 20 Alexandru Toma 2005-05-05 05:23:10 UTC
- You can use doins -r to do recursive copies
* Thanks! I'll remember that.

- This may be my personal preference, but I prefer to install the binary/shell script into the actual game directory and use games_make_wrapper to do the install into /usr/games/bin
* I thought, and please correct me if I'm wrong, that it was the Gentoo policy for games to always put the binary/script in /usr/games/bin and only use a wrapper script if there was no way to patch the binary/script to use the Gentoo paths.

- Use ${dir} instead of ${DEST_DIR}... this is purely cosmetic, but it follows the same structure as most other games ebuilds
* Heh... this was my way of writing game ebuilds back then. I don't think there were a lot of ebuilds that that used ${dir} back then, at least not that I'm aware of. Also, you mean ${dir} as in a local variable defined with 'local dir' right? What would be a proper solution for the current ebuild? I used ${DEST_DIR} in several functions (src_unpack as well as src_install). Should I define ${dir} for both of them, or just make ${dir} global?

- Also, I left the DEPEND section the same.  My only question is whether or not the game actually *requires* those versions or not.  If it could work wiht lower versions, it should either be specified that way, or it should be left without a version atom.
* I think the DEPEND section can be safely changed to just
DEPEND="media-libs/libsdl
	media-libs/sdl-image
	media-libs/sdl-net
	media-libs/sdl-ttf
	opengl? ( virtual/opengl )"
since older versions are no longer in portage anyway. Those were the versions I tested it with (which were stable at the time) so I thought it sensible to use those in the ebuild so as not to generate possible erroneous bug reports from users about mures not working with older versions of those libraries.
Comment 21 Alexandru Toma 2005-05-05 05:43:34 UTC
- Use ${dir} instead of ${DEST_DIR}... this is purely cosmetic, but it follows the same structure as most other games ebuilds
* Heh... this was my way of writing game ebuilds back then. I don't think there were a lot of ebuilds that that used ${dir} back then, at least not that I'm aware of. Also, you mean ${dir} as in a local variable defined with 'local dir' right? What would be a proper solution for the current ebuild? I used ${DEST_DIR} in several functions (src_unpack as well as src_install). Should I define ${dir} for both of them, or just make ${dir} global?

Don't bother answering that (I just saw the ebuild you comitted, it wasn't in portage yet when I posted the question above) and I see what you meant.
Comment 22 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-06 13:26:11 UTC
- This may be my personal preference, but I prefer to install the binary/shell script into the actual game directory and use games_make_wrapper to do the install into /usr/games/bin
* I thought, and please correct me if I'm wrong, that it was the Gentoo policy for games to always put the binary/script in /usr/games/bin and only use a wrapper script if there was no way to patch the binary/script to use the Gentoo paths.

There isn't really a policy, but you're right.  It should go into /usr/games/bin.
Comment 23 Alexandru Toma 2005-05-10 08:41:55 UTC
> There isn't really a policy, but you're right.  It should go into /usr/games/bin.

Right. So aren't you going to change the ebuild so that it installs the binary in /usr/games/bin then? Like in the original ebuild?

Also, if you're going to do that you might as well trim version numbers from DEPEND since, as I've mentioned above, there are no older versions than those in portage anymore.
Comment 24 Alexandru Toma 2005-05-10 08:46:32 UTC
Also, there are six makefiles which `rm -f src/*/Makefile*` fails to delete. Those in maps/battle and maps/puzzle.