From: "Ivan A. Melnikov" <iv@altlinux.org> To: devel@lists.altlinux.org Subject: Re: [devel] vtk-5.8.0-alt2: Sisyphus/i586 test rebuild failed Date: Mon, 5 Dec 2011 13:17:34 +0400 Message-ID: <20111205131734.11fb4a53@deimos.localdomain> (raw) In-Reply-To: <4EDC64AE.5000206@kemsu.ru> [-- Attachment #1: Type: text/plain, Size: 1095 bytes --] On Mon, 05 Dec 2011 12:29:02 +0600 REAL <real@kemsu.ru> wrote: > Привет! > > По поводу сборки с новым Boost (см. > http://git.altlinux.org/beehive/logs/Sisyphus-x86_64/latest/error/vtk-5.8.0-alt2 > ) до сих пор в интернете нет никаких предположений, как это лечить. > Может быть, кто-то из местных может разобраться, в чём дело? > [...] Дело вот этой ревизии (просмотр официального апстримного svn по http отключен, это полуофициальное git-зеркало boost): https://github.com/ryppl/boost-svn/commit/66e86abbbeb82ab740a95ad1f18a3c31e8b2d9da Страшный-престрашный быстрый хак для обхода этой проблемы в vtk в аттаче. Нужно, по идее, придумать что-то более красивое, разумное и без упоминания boost::detail... -- WBR, Ivan A. Melnikov [-- Attachment #2: vtk-5.8.0-alt-fix-build-boost-1.48.0.patch --] [-- Type: text/x-patch, Size: 1157 bytes --] diff --git a/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx b/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx index c789f6b..ffd145e 100644 --- a/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx +++ b/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx @@ -52,6 +52,18 @@ vtkStandardNewMacro(vtkBoostBreadthFirstSearchTree); template <typename IdMap> class bfs_tree_builder : public default_bfs_visitor { +private: + template <typename Edge> + struct to_edge { + static Edge& get(Edge& e) { return e; } + }; +#if BOOST_VERSION >= 104800 + template <typename Edge> + struct to_edge< boost::detail::reverse_graph_edge_descriptor<Edge> > { + static Edge& get(boost::detail::reverse_graph_edge_descriptor<Edge>& e) { return e.underlying_desc; } + }; +#endif + public: bfs_tree_builder() { } @@ -95,7 +107,7 @@ public: // Copy the vertex and edge data from the graph to the tree. tree->GetVertexData()->CopyData(graph->GetVertexData(), v, tree_v); - tree->GetEdgeData()->CopyData(graph->GetEdgeData(), e.Id, tree_e.Id); + tree->GetEdgeData()->CopyData(graph->GetEdgeData(), to_edge<Edge>::get(e).Id, tree_e.Id); } private:
next prev parent reply other threads:[~2011-12-05 9:17 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-12-05 6:29 ` REAL 2011-12-05 9:17 ` Ivan A. Melnikov [this message] 2011-12-05 10:19 ` REAL
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20111205131734.11fb4a53@deimos.localdomain \ --to=iv@altlinux.org \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git