Mageia Bugzilla – Attachment 2774 Details for
Bug 7415
clanbomber will not build against boost 1.50 because of missing filesystem v2 (patch included)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch to make clanbomber compile again boost filesystem v3
clanbomber-2.1.1-filesystem.patch (text/plain), 1.12 KB, created by
Joseph Wang
on 2012-09-09 16:19:05 CEST
(
hide
)
Description:
patch to make clanbomber compile again boost filesystem v3
Filename:
MIME Type:
Creator:
Joseph Wang
Created:
2012-09-09 16:19:05 CEST
Size:
1.12 KB
patch
obsolete
>--- src/Map.cpp.orig 2012-09-09 21:52:49.730115001 +0800 >+++ src/Map.cpp 2010-09-05 02:38:27.000000000 +0800 >@@ -116,7 +116,7 @@ > for (boost::filesystem::directory_iterator dir_iter(path); > dir_iter != end_iter; dir_iter++) { > if (dir_iter->path().extension() == ".map") { >+ map_list.push_back(new MapEntry(path, dir_iter->path().filename())); >- map_list.push_back(new MapEntry(path, dir_iter->filename())); > } > } > } >@@ -126,7 +126,7 @@ > for (boost::filesystem::directory_iterator dir_iter(path); > dir_iter != end_iter; dir_iter++) { > if (dir_iter->path().extension() == ".map") { >+ map_list.push_back(new MapEntry(path, dir_iter->path().filename())); >- map_list.push_back(new MapEntry(path, dir_iter->filename())); > } > } > } >--- src/MapEntry.cpp.orig 2012-09-09 21:58:17.314363412 +0800 >+++ src/MapEntry.cpp 2012-09-09 22:03:09.152693552 +0800 >@@ -50,7 +50,7 @@ > enabled = true; > > // extract map name >- map_name = filename.stem(); >+ map_name = filename.stem().string(); > > // is the file writable? > if (access(path / filename, W_OK) == 0) {
--- src/Map.cpp.orig 2012-09-09 21:52:49.730115001 +0800 +++ src/Map.cpp 2010-09-05 02:38:27.000000000 +0800 @@ -116,7 +116,7 @@ for (boost::filesystem::directory_iterator dir_iter(path); dir_iter != end_iter; dir_iter++) { if (dir_iter->path().extension() == ".map") { + map_list.push_back(new MapEntry(path, dir_iter->path().filename())); - map_list.push_back(new MapEntry(path, dir_iter->filename())); } } } @@ -126,7 +126,7 @@ for (boost::filesystem::directory_iterator dir_iter(path); dir_iter != end_iter; dir_iter++) { if (dir_iter->path().extension() == ".map") { + map_list.push_back(new MapEntry(path, dir_iter->path().filename())); - map_list.push_back(new MapEntry(path, dir_iter->filename())); } } } --- src/MapEntry.cpp.orig 2012-09-09 21:58:17.314363412 +0800 +++ src/MapEntry.cpp 2012-09-09 22:03:09.152693552 +0800 @@ -50,7 +50,7 @@ enabled = true; // extract map name - map_name = filename.stem(); + map_name = filename.stem().string(); // is the file writable? if (access(path / filename, W_OK) == 0) {
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 7415
:
2773
| 2774 |
2775