Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99983 - games-emulation/gnuboy optional display backends and clean up
Summary: games-emulation/gnuboy optional display backends and clean up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 99546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-22 22:27 UTC by James Rowe
Modified: 2006-09-28 05:46 UTC (History)
1 user (show)

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


Attachments
gnuboy-remix.patch (gnuboy-remix.patch,1.31 KB, patch)
2005-07-22 22:28 UTC, James Rowe
Details | Diff
gnuboy-cleanup-v2.patch (gnuboy-cleanup-v2.patch,1.37 KB, patch)
2005-08-13 06:06 UTC, James Rowe
Details | Diff
gnuboy-fb_deps.patch (gnuboy-fb_deps.patch,436 bytes, patch)
2006-04-10 13:57 UTC, James Rowe
Details | Diff
gnuboy-fb_deps_fix.patch (gnuboy-fb_deps_fix.patch,460 bytes, patch)
2006-04-10 14:02 UTC, James Rowe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Rowe 2005-07-22 22:27:38 UTC
The current gnuboy ebuild builds display backends based on whatever it
finds on the system, and doesn't record the deps either.  Also the package
enables some strange GCC options by default, which one would hope a user
would never add to their make.conf ;)  The package also installs to /usr
instead of the /usr/games heirachy that most games adhere to.  And finally
if you cross compile from an x86 box to a non-x86 target it wrongly tries to
build some x86 asm source by default[1].

  The attached patch changes the ebuild to:

	* Fix the deps, and allows the user to build only the frontends they
	  want.
	* Use the games eclass, and installs to the normal place.
	* Disable the hardcoded compiler optimisations, allowing the user to
	  set their own craziness.
	* Only enable the asm emulation core when building for an x86 box[2].

  As the changes edit almost every line of the ebuild I decided not to split
the patches up as they wouldn't easily apply out of order anyhow.

1.  Checks 'uname -m' on the host.
2.  To me this seems like the right thing to do in this instance, but maybe
there is a better way to reach the right result?  And I can't personally
see the value in making asm really optional on x86.  Hmm, nobody compiles to
x86 from non-x86 do they because of [1] :/


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 James Rowe 2005-07-22 22:28:12 UTC
Created attachment 64106 [details, diff]
gnuboy-remix.patch
Comment 2 James Rowe 2005-07-22 22:48:36 UTC
  Having just spotted Bug #99546 I want to point out the attached patch fixes
that bug too.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2005-07-31 21:57:36 UTC
Couple issues:

What happens if they don't have any of the use flags set?  There should be a
default.

Is there a missing dep for fbcon?

Comment 4 James Rowe 2005-08-13 06:05:40 UTC
  First up sorry for the delay, holiday season.

(In reply to comment #3)
> Couple issues:
> 
> What happens if they don't have any of the use flags set?  There should be a
> default.

  Oops, of course there should be.  It just really didn't occur to me :/
I've updated the ebuild and defaulted it to SDL, mainly because IMO it is
the most usable.

  Surely there is a simpler way to do the above than the ugly mess I've added
though?  Comments welcome! (including flames and a pointer at an ebuild in
the tree)

> Is there a missing dep for fbcon?

  Unless I'm missing something there aren't any non-system deps for the
framebuffer build.  It does strictly depend on sys-kernel/linux-headers mind
you(linux/fb.h), so it isn't going to work as-is on freebsd(is that supposed
to be handled some way?).
Comment 5 James Rowe 2005-08-13 06:06:35 UTC
Created attachment 65834 [details, diff]
gnuboy-cleanup-v2.patch
Comment 6 Martin Walch 2005-08-17 05:13:30 UTC
*** Bug 99546 has been marked as a duplicate of this bug. ***
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2005-08-28 21:19:30 UTC
Ok, it's in there.  resync/remerge for more GUIs.  Thanks for the bug report and
patch.
Comment 8 James Rowe 2006-04-10 13:56:52 UTC
  games-emulation/gnuboy does have extra dependencies when building with
support for fb, contrary to my *own* erroneous statement in comment #4.

  The attached patch adds the required fbset dep when fbcon USE is enabled,
I really don't see why I didn't catch it before :/

Comment 9 James Rowe 2006-04-10 13:57:37 UTC
Created attachment 84389 [details, diff]
gnuboy-fb_deps.patch
Comment 10 James Rowe 2006-04-10 14:02:01 UTC
Created attachment 84390 [details, diff]
gnuboy-fb_deps_fix.patch

  Should have changed RDEPEND, not DEPEND.
Comment 11 Tristan Heaven (RETIRED) gentoo-dev 2006-09-28 05:46:31 UTC
Fixed, thanks.