Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556642 - games-emulation/sdlmame-0.164 version bump (enables dropping games-emulation/{sdlmess,sdlmametools})
Summary: games-emulation/sdlmame-0.164 version bump (enables dropping games-emulation/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 496654 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-04 08:51 UTC by Rick Harris
Modified: 2015-11-20 06:47 UTC (History)
2 users (show)

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


Attachments
sdlmame-0.164s.ebuild (sdlmame-0.164s.ebuild,6.82 KB, text/plain)
2015-08-04 08:51 UTC, Rick Harris
Details
Revised sdlmame-0.164.ebuild (sdlmame-0.164.ebuild,6.46 KB, text/plain)
2015-08-11 23:47 UTC, Rick Harris
Details
sdlmame-0.164-r2.ebuild (sdlmame-0.164.ebuild,6.53 KB, text/plain)
2015-08-20 23:50 UTC, Rick Harris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2015-08-04 08:51:23 UTC
Created attachment 408252 [details]
sdlmame-0.164s.ebuild

Attached is a version bump to sdlmame-0.164 with a few differences from the 0.149 version currently in portage.

games-emulation/sdlmess has been incorporated upstream into the MAME project.
games-emulation/sdlmametools has been incorporated into this ebuild as a 'tools' useflag.

As such, games-emulation/sdlmess and games-emulation/sdlmametools are soft blocked in this new sdlmame-0.164 ebuild.

The current problems with dev-lang/lua for the past few years (bug #407091) have meant that dev-lang/lua remains hard masked.

Thus sdlmame is instructed to build using it's bundled version of dev-lang/lua:5.3 instead of relying on an external version until dev-lang/lua in portage can be resolved.

The ebuild also has the added benefit of not needing any external files in the way of patches or configs, all that is needed is contained within the ebuild.

Thanks :)
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2015-08-05 15:42:39 UTC
Looks like the "s" just means "source" so it shouldn't be part of the version, right?
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2015-08-06 03:10:18 UTC
Also, needs to respect build variables and flags.
Comment 3 Rick Harris 2015-08-07 11:03:01 UTC
(In reply to Mr. Bones. from comment #1)
> Looks like the "s" just means "source" so it shouldn't be part of the
> version, right?

Yes you're right, didn't notice that.
Are you able to make it so?

(In reply to Mr. Bones. from comment #2)
> Also, needs to respect build variables and flags.

Which ones do you mean?
The source does already transparently respect CFLAGS/CXXFLAGS...
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2015-08-07 14:19:38 UTC
it doesn't respect CC, CXX, AR, PYTHON.  Also fails for me with
USE="debug -opengl"
Comment 5 Rick Harris 2015-08-08 06:52:25 UTC
(In reply to Mr. Bones. from comment #4)
> it doesn't respect CC, CXX, AR, PYTHON.  Also fails for me with
> USE="debug -opengl"

I wasn't able to reproduce the disrespecting of those variables.
Maybe my test method was flawed but all those variables were respected.

Interesting the global makefile suggests python3 is the preferred ABI in:
makefile:# PYTHON_EXECUTABLE = python3

However, there are still some python2 only scripts that will cause build failure if python3 ABI is selected.
All good, the ebuild doesn't use python3 anyway.

I was able to reproduce the '-opengl' failure right at the end at linktime because it tries to USE_BGFX which fails to link when it can't see GL libs functionality.
Will probably need to do 'disable_feature USE_BGFX' if 'USE=-opengl' is set.

Another improvement would be to enable/disable all features using 'usex' function from eutils.eclass (examples already present) instead of uncommenting lines in makefile with the local  'enable_feature' and 'disable_feature' functions.
Comment 6 Rick Harris 2015-08-08 22:37:37 UTC
Confirmed.

Adding 'USE_BGFX=$(usex opengl "1" "0")' to emake args fixes the 'USE=-opengl' linking build failure.
Comment 7 Rick Harris 2015-08-11 23:47:37 UTC
Created attachment 408830 [details]
Revised sdlmame-0.164.ebuild

Remove 's' from version string

Adds USE_BGFX state depending on USE=opengl

Tidy up ebuild by using emake arguments instead of sed'ing makefile
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2015-08-12 03:03:05 UTC
I think we want to just turn off bgfx.  Generally we don't want to use embedded libraries.  In the case of lua, the currently situation with 5.2 in the tree doesn't look like it's going to resolve soon so it's worth using the embedded version to keep up with the versions but bgfx isn't in the tree so I'd rather just turn it off.

Also, building the embedded lua didn't look like it was honoring AR.
Comment 9 Rick Harris 2015-08-20 23:50:55 UTC
Created attachment 409706 [details]
sdlmame-0.164-r2.ebuild

OK revised ebuild attached:

BGFX is turned off.

Added 'softlists' USE flag as we were missing optionally installing the MESS software lists into the hash/ directory.

What do you think, ready to be included into the portage tree?
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2015-11-20 06:46:44 UTC
*** Bug 496654 has been marked as a duplicate of this bug. ***
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2015-11-20 06:47:35 UTC
sdlmame-0.167 is in portage.  thanks for the bug report and ebuild work.