diff options
author | Andrey Grozin <grozin@gentoo.org> | 2017-12-16 14:03:40 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2017-12-16 14:03:40 +0700 |
commit | 5cc4e599fd68ca31c3d2d0824c4ffaa8ed877e54 (patch) | |
tree | 5a9129acd90b8491e99905c772e1e42c8e98f5f7 /sci-physics/reduze/files | |
parent | sci-physics/reduze: bump to 2.2 (diff) | |
download | gentoo-5cc4e599fd68ca31c3d2d0824c4ffaa8ed877e54.tar.gz gentoo-5cc4e599fd68ca31c3d2d0824c4ffaa8ed877e54.tar.bz2 gentoo-5cc4e599fd68ca31c3d2d0824c4ffaa8ed877e54.zip |
sci-physics/reduze: cleaning old
Package-Manager: Portage-2.3.18, Repoman-2.3.6
Diffstat (limited to 'sci-physics/reduze/files')
-rw-r--r-- | sci-physics/reduze/files/reduze-2.0.9-gcc6.patch | 58 | ||||
-rw-r--r-- | sci-physics/reduze/files/reduze-2.1-gcc6.patch | 29 |
2 files changed, 0 insertions, 87 deletions
diff --git a/sci-physics/reduze/files/reduze-2.0.9-gcc6.patch b/sci-physics/reduze/files/reduze-2.0.9-gcc6.patch deleted file mode 100644 index 9864163cdec9..000000000000 --- a/sci-physics/reduze/files/reduze-2.0.9-gcc6.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- a/reduze/amplitude.cpp -+++ b/reduze/amplitude.cpp -@@ -782,7 +782,7 @@ - - ex resultLeadingNc = result; - for (exset::const_iterator it = found.begin(); it != found.end(); ++it) { -- VERIFY(is_a<function>(*it) && ex_to<function>(*it).get_name() == "Color"); -+ VERIFY(is_a<GiNaC::function>(*it) && ex_to<GiNaC::function>(*it).get_name() == "Color"); - VERIFY(is_a<lst>(it->op(0))); - ex res(1); - for (size_t i = 0; i < it->op(0).nops(); ++i) -@@ -823,7 +823,7 @@ - timer.restart(); - exmap m; - for (exset::const_iterator it = found.begin(); it != found.end(); ++it) { -- VERIFY(is_a<function>(*it) && ex_to<function>(*it).get_name() == "Lorentz"); -+ VERIFY(is_a<GiNaC::function>(*it) && ex_to<GiNaC::function>(*it).get_name() == "Lorentz"); - VERIFY(is_a<lst>(it->op(0))); - - ex res(1); ---- a/reduze/files.cpp -+++ b/reduze/files.cpp -@@ -420,7 +420,7 @@ - get_filename_sectormappings(m.integralfamily()->name()); - ofstream file(file_name.c_str()); - if (!file) -- ABORT("Can't write to " << file); -+ ABORT("Can't write to " << file_name); - os << YAML::BeginMap << YAML::Key << "sectormappings" << YAML::Value; - os << m << YAML::EndMap; - file << os.c_str(); -@@ -617,7 +617,7 @@ - - bool is_readable_file(const string& filename) { - ifstream is(filename.c_str()); -- bool ok = is; -+ bool ok = !is.fail(); - is.close(); - return ok; - } ---- a/reduze/sectormappings.cpp -+++ b/reduze/sectormappings.cpp -@@ -757,13 +757,13 @@ - const Node& z_node = node["zero_sectors"]; - for (Iterator n = z_node.begin(); n != z_node.end(); ++n) - for (Iterator s = n.second().begin(); s != n.second().end(); ++s) -- m.zero_sectors_.insert(*s); -+ m.zero_sectors_.insert((const int) *s); - - if (node.FindValue("sectors_without_graph")) { - const Node& ng_node = node["sectors_without_graph"]; - for (Iterator n = ng_node.begin(); n != ng_node.end(); ++n) - for (Iterator s = n.second().begin(); s != n.second().end(); ++s) -- m.sectors_without_graph_.insert(*s); -+ m.sectors_without_graph_.insert((const int) *s); - } - - const Node& rel_node = node["sector_relations"]; diff --git a/sci-physics/reduze/files/reduze-2.1-gcc6.patch b/sci-physics/reduze/files/reduze-2.1-gcc6.patch deleted file mode 100644 index 3b347ef413c3..000000000000 --- a/sci-physics/reduze/files/reduze-2.1-gcc6.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/reduze/files.cpp -+++ b/reduze/files.cpp -@@ -723,7 +723,7 @@ - string file_name_tmp = file_name + ".tmp"; - ofstream file(file_name_tmp.c_str()); - if (!file) -- ABORT("Can't write to " << file); -+ ABORT("Can't write to " << file_name_tmp); - Emitter os; - os << BeginMap; - os << Key << "crossings" << Value; -@@ -752,7 +752,7 @@ - string file_name_tmp = file_name + ".tmp"; - ofstream file(file_name_tmp.c_str()); - if (!file) -- ABORT("Can't write to " << file); -+ ABORT("Can't write to " << file_name_tmp); - os << YAML::BeginMap << YAML::Key << "sectormappings" << YAML::Value; - os << m << YAML::EndMap; - file << os.c_str(); -@@ -1036,7 +1036,7 @@ - - bool is_readable_file(const string& filename) { - ifstream is(filename.c_str()); -- bool ok = is; -+ bool ok = !is.fail(); - is.close(); - return ok && !is_readable_directory(filename); - } |