Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616356 - games-action/minetest dedicated use flag requires irrlicht becuase irrlicht is required to build
Summary: games-action/minetest dedicated use flag requires irrlicht becuase irrlicht i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-23 04:57 UTC by Alex Ford
Modified: 2017-09-05 16:24 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Ford 2017-04-23 04:57:57 UTC
In games-action/minetest-0.4.14, the server use flag builds minetestserver, which doesn't link against irrlicht (the engine of minetest), while the dedicated flag implies server while disallowing building the client.

RDEPENDS lists irrlicht as a dependency regardless of use flags, for the reason that src/network/connection.cpp:22 attempts to pull in a header file for irrlicht.

If you use ldd on /usr/bin/minetestserver (if you build with the server option), you'll see that irrlicht (libIrrlicht) is not incorporated.

I bring this up for servers that have no need to compile mesa and the other libraries. It should be noted that CentOS does provide a minetest-server package that contains a server while not requiring any graphical libraries. I tested that package and it does work flawlessly.

It is possible this can only be fixed upstream, but I do find it rather odd that it is possible to build without irrlicht.
Comment 1 Alex Ford 2017-04-23 18:03:07 UTC
Asking in irc, passing 
-DIRRLICHT_INCLUDE_DIR=/where/you/extracted/irrlicht/include

Will allow minetestserver to be built, but I'm not portage savvy enough to accomplish getting the include files for irrlicht without building the whole thing :P
Comment 2 Pacho Ramos gentoo-dev 2017-09-05 09:17:29 UTC
looks solved in 0.4.16
Comment 3 Alex Ford 2017-09-05 16:24:43 UTC
The bug is still present in minetest 0.4.16.

The point is that you need to compile mesa et al to build irrlicht, even though only the header files are needed by dedicated minetest.

If you look at the ebuild, irrlicht is listed as a DEPEND, meaning that you still need it to build. 

The new ebuild allows you to to remove irrlicht from the DEPEND and then transfer /usr/include/irrlicht. That's been tested confirmed.


I'm leaving this marked fixed because I'm pretty sure there is literally no way to download the include files for irrlicht without marking it as a dependency, thus meaning this bug by definition can't be fixed in gentoo :P