On 2021/04/13 18:28, Marcus MERIGHI wrote:
> Hello!
> 
> After pkg_add'ing games/supertux and starting it I get:
> 
> $ supertux2 
> [FATAL]
> /usr/obj/ports/supertux-0.6.0/SuperTux-v0.6.0-Source/src/supertux/main.cpp:601
> Unexpected exception: boost::filesystem::status: Permission denied:
> "/usr/obj/ports/supertux-0.6.0/SuperTux-v0.6.0-Source/data/credits.stxt"
> 
> Do I miss something? Or have I found a breakage?
> 
> Marcus
> 

Looks like PREFIX in games/supertux/patches/patch-src_supertux_main_cpp
should really be TRUEPREFIX.

Here's a diff but I can't check if it fixes things because I don't hit
this error, just an immediate segfault at startup (backtrace for that
below).

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/supertux/Makefile,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile
--- Makefile    25 Feb 2021 22:26:02 -0000      1.23
+++ Makefile    13 Apr 2021 16:40:33 -0000
@@ -5,7 +5,7 @@ COMMENT =               jump 'n' run game
 V =                    0.6.0
 DISTNAME =             SuperTux-v${V}-Source
 PKGNAME =              supertux-$V
-REVISION =             2
+REVISION =             3
 
 CATEGORIES =           games
 
Index: patches/patch-src_supertux_main_cpp
===================================================================
RCS file: /cvs/ports/games/supertux/patches/patch-src_supertux_main_cpp,v
retrieving revision 1.3
diff -u -p -r1.3 patch-src_supertux_main_cpp
--- patches/patch-src_supertux_main_cpp 28 Feb 2019 17:42:53 -0000      1.3
+++ patches/patch-src_supertux_main_cpp 13 Apr 2021 16:40:33 -0000
@@ -13,7 +13,7 @@ Index: src/supertux/main.cpp
 -        // the global install location
 -        datadir = basepath.substr(0, basepath.rfind(INSTALL_SUBDIR_BIN));
 -        datadir = FileSystem::join(datadir, INSTALL_SUBDIR_SHARE);
-+        datadir = "${PREFIX}/share/supertux2";
++        datadir = "${TRUEPREFIX}/share/supertux2";
        }
      }
  


(gdb) bt
#0  0x000008537aa2076d in SDL_BlitCopy () from /usr/local/lib/libSDL2.so.0.9
#1  0x000008537a9f078a in SDL_SoftBlit () from /usr/local/lib/libSDL2.so.0.9
#2  0x000008537aa2ae9b in SDL_UpperBlit_REAL () from 
/usr/local/lib/libSDL2.so.0.9
#3  0x000008512d104588 in GLTexture::GLTexture(SDL_Surface const&, Sampler 
const&) ()
#4  0x000008512d1000be in GLVideoSystem::new_texture(SDL_Surface const&, 
Sampler const&) ()
#5  0x000008512d0fa8aa in 
TextureManager::create_image_texture_raw(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, Rect const&, 
Sampler const&) ()
#6  0x000008512d0fa47c in 
TextureManager::create_image_texture(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, Rect const&, 
Sampler const&) ()
#7  0x000008512d0f9d34 in TextureManager::get(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
boost::optional<Rect> const&, Sampler const&) ()
#8  0x000008512d0f7a4f in Surface::from_file(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
boost::optional<Rect> const&) ()
#9  0x000008512d0d8723 in TileSetParser::parse_imagespecs(ReaderMapping const&, 
boost::optional<Rect> const&) const
    ()
#10 0x000008512d0d70d2 in TileSetParser::parse_tiles(ReaderMapping const&) ()
#11 0x000008512d0d6009 in TileSetParser::parse() ()
#12 0x000008512d0d4d31 in TileSet::from_file(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#13 0x000008512d0d480c in TileManager::get_tileset(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#14 0x000008512cfc9560 in 
std::__1::__function::__func<GameObjectFactory::init_factories()::$_0, 
std::__1::allocator<GameObjectFactory::init_factories()::$_0>, 
std::__1::unique_ptr<GameObject, std::__1::default_delete<GameObject> > 
(ReaderMapping const&)>::operator()(ReaderMapping const&) ()
#15 0x000008512d0b8d10 in ObjectFactory::create(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::al---Type <return> to continue, or q 
<return> to quit---
locator<char> > const&, ReaderMapping const&) const ()
#16 0x000008512d0ce3ed in 
SectorParser::parse_object(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, ReaderMapping 
const&) ()
#17 0x000008512d0cc2cb in SectorParser::parse(ReaderMapping const&) ()
#18 0x000008512d0cbc99 in SectorParser::from_reader(Level&, ReaderMapping 
const&, bool) ()
#19 0x000008512cf899bd in LevelParser::load(ReaderDocument const&) ()
#20 0x000008512cf889a9 in LevelParser::load(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#21 0x000008512cf888ea in LevelParser::from_file(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool) ()
#22 0x000008512cf3b81a in GameSession::restart_level(bool) ()
#23 0x000008512cf3b4ca in GameSession::GameSession(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, Savegame&, 
Statistics*) ()
#24 0x000008512d0d9221 in TitleScreen::TitleScreen(Savegame&) ()
#25 0x000008512cf33557 in Main::launch_game(CommandLineArguments const&) ()
#26 0x000008512cf33eba in Main::run(int, char**) ()
#27 0x000008512cf316fb in main ()

Reply via email to