Bug 226541 - games/minetest: add clang fixes, missing dependencies, luajit 2.1 compatibility
Summary: games/minetest: add clang fixes, missing dependencies, luajit 2.1 compatibility
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks: 225342
  Show dependency treegraph
 
Reported: 2018-03-11 21:59 UTC by Greg V
Modified: 2018-03-11 22:00 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (amdmi3)


Attachments
minetest-fixes.patch (2.40 KB, patch)
2018-03-11 21:59 UTC, Greg V
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg V 2018-03-11 21:59:45 UTC
Created attachment 191433 [details]
minetest-fixes.patch

Dependencies suggested by stage-qa + fix for luajit 2.1 + fixes for C++ errors that were happening with base clang in -CURRENT:

src/content_mapblock.cpp:46:24: error: constexpr variable cannot have non-literal type 'v3s16 const[8]'                               
static constexpr v3s16 light_dirs[8] = {                                                                                                
                       ^                                                                                          
/usr/local/include/irrlicht/vector3d.h:22:8: note: 'vector3d<short>' is not literal because it is not an aggregate and has no constexpr
constructors other than copy or move constructors
        class vector3d 

and

src/content_mapblock.cpp:358:38: error: use of undeclared identifier 'NULL'                                                             
                drawCuboid(box, tiles, tile_count, NULL, txc);                                                                          
                                                   ^                                                                                    
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'                                                                        
#define NULL    nullptr                                                                                                                 
                ^                                                                                                                       
src/util/cpp11.h:29:17: note: expanded from macro 'nullptr'                                                                             
#define nullptr NULL                                                                                                                    
                ^                                                                          
src/content_mapblock.cpp:1193:29: error: use of undeclared identifier 'NULL'                                                         
                drawAutoLightedCuboid(*i, NULL, tiles, 6);                                                                              
                                          ^                                                                                             
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'                                                                        
#define NULL    nullptr                                                                                                                 
                ^                                                                                                                       
src/util/cpp11.h:29:17: note: expanded from macro 'nullptr'                                                                             
#define nullptr NULL