Index: head/games/supertux/files/patch-src_music__manager.cpp =================================================================== --- head/games/supertux/files/patch-src_music__manager.cpp (nonexistent) +++ head/games/supertux/files/patch-src_music__manager.cpp (revision 473967) @@ -0,0 +1,16 @@ +Fix build with Clang6. + +file is a const std::string&, which needs to be (explicitly) copied +into the pair when the pair's first member is std::string (non-const). + +--- src/music_manager.cpp.orig 2018-07-05 12:45:32 UTC ++++ src/music_manager.cpp +@@ -66,7 +66,7 @@ MusicManager::exists_music(const std::string& file) + // insert into music list + std::pair::iterator, bool> result = + musics.insert( +- std::make_pair (file, MusicResource())); ++ std::make_pair (std::string(file), MusicResource())); + MusicResource& resource = result.first->second; + resource.manager = this; + resource.music = song; Property changes on: head/games/supertux/files/patch-src_music__manager.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property