Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447056 - games-roguelike/stone-soup-0.11.1-r1 should (unconditionally?) depend on dev-lang/lua[+deprecated] -
Summary: games-roguelike/stone-soup-0.11.1-r1 should (unconditionally?) depend on dev-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-13 01:05 UTC by David Adler
Modified: 2012-12-13 17:19 UTC (History)
1 user (show)

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


Attachments
ebuild patch (stone-soup-ebuild.patch,386 bytes, patch)
2012-12-13 01:06 UTC, David Adler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Adler 2012-12-13 01:05:45 UTC
When emerging games-roguelike/stone-soup-0.11.1-r1, with or without the "lua" USE flag, when lua is either not present (only for "-lua" flag) or has been emerged with "-deprecated", stone-soup fails to emerge.
(I have only tried with the other flags set to "-debug ncurses -test -tiles")

Reproducible: Always

Steps to Reproduce:
USE="-deprecated" emerge lua && emerge stone-soup
or
USE="-deprecated" emerge lua && USE="-lua" emerge stone-soup
or
emerge -c lua && USE="-lua" emerge stone-soup
Actual Results:  
With the "-lua" flag and without lua emerged, 'emerge stone-soup' fails with:
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-roguelike/stone-soup-0.11.1-r1/work/stone_soup-0.11.1/source ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/games-roguelike/stone-soup-0.11.1-r1/work/stone_soup-0.11.1/source ...
make DATADIR=/usr/share/games/stone-soup V=1 prefix=/usr/games SAVEDIR=~/.crawl NO_LUA_BINDINGS=y 
  * If you experience any problems building Crawl, please take a second look
    * rebuilding crawl: new build flags or prefix
    * Need to build contribs: lua/src
make: *** contrib: No such file or directory.  Stop.
make: *** [.contrib-libs] Error 2

With the "lua" flag set, and with lua emerged with the "-deprecated" flag, 'emerge stone-soup' fails with:

...
i686-pc-linux-gnu-g++ -O2 -march=i686  -Wall -Wformat-security   -Wundef -Wno-array-bounds -Wno-parentheses -Wno-unused-parameter -Wwrite-strings -Wshadow -Wuninitialized -Icontrib/install/i686-pc-linux-gnu/include -Iutil -I.   -I/usr/include -Irltiles -I/usr/include/ncursesw    -DWIZARD -DASSERTS  -DCLUA_BINDINGS -DSAVE_DIR_PATH=\"~/.crawl\" -DDATA_DIR_PATH=\"/usr/share/games/stone-soup/\" -MMD -c cluautil.cc -o cluautil.o
cluautil.cc: In function ‘void luaopen_setmeta(lua_State*, const char*, const luaL_Reg*, const char*)’:
cluautil.cc:65:40: error: ‘luaL_openlib’ was not declared in this scope
cluautil.cc: In function ‘void clua_register_metatable(lua_State*, const char*, const luaL_Reg*, int (*)(lua_State*))’:
cluautil.cc:91:37: error: ‘luaL_openlib’ was not declared in this scope
make: *** [cluautil.o] Error 1
 * ERROR: games-roguelike/stone-soup-0.11.1-r1 failed (compile phase):
 *   emake failed
Comment 1 David Adler 2012-12-13 01:06:38 UTC
Created attachment 332182 [details, diff]
ebuild patch

I believe that this patch to the ebuild will fix the problem, but I don't have extensive experience with it.
Comment 2 Julian Ospald 2012-12-13 17:19:06 UTC
+  13 Dec 2012; Julian Ospald <hasufell@gentoo.org> stone-soup-0.10.3.ebuild,
+  stone-soup-0.11.0.ebuild, stone-soup-0.11.1.ebuild,
+  stone-soup-0.11.1-r1.ebuild:
+  fix dependencies, remove broken lua useflag wrt #447056
+
Comment 3 Julian Ospald 2012-12-13 17:19:48 UTC
even arch testers didn't notice, good job ;)