Accepting request 112154 from KDE:Distro:Factory
- Add digikam-boost-1.48.patch to fix build with new boost OBS-URL: https://build.opensuse.org/request/show/112154 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/digikam?expand=0&rev=90
This commit is contained in:
parent
6eb3152a62
commit
83fa5f06a3
74
digikam-boost-1.48.patch
Normal file
74
digikam-boost-1.48.patch
Normal file
@ -0,0 +1,74 @@
|
||||
commit d18ea6da2d3e2359f4113e83c3fd40c18a29ddab
|
||||
Author: Gilles Caulier <caulier.gilles@gmail.com>
|
||||
Date: Fri Jan 6 11:23:48 2012 +0100
|
||||
|
||||
Apply patch #67483 from Jeremiah Willcock to compile fine digiKam boost graph interface with libboost 1.48
|
||||
BUGS: 287772
|
||||
CCBUGS: 267777
|
||||
|
||||
diff --git a/core/libs/database/imagehistory/imagehistorygraph_boost.h b/core/libs/database/imagehistory/imagehistorygraph_boost.h
|
||||
index 4017c4f..76c764a 100644
|
||||
--- a/core/libs/database/imagehistory/imagehistorygraph_boost.h
|
||||
+++ b/core/libs/database/imagehistory/imagehistorygraph_boost.h
|
||||
@@ -1198,7 +1198,7 @@ protected:
|
||||
{
|
||||
boost::dag_shortest_paths(graph, v,
|
||||
// we provide a constant weight of 1
|
||||
- weight_map(boost::ref_property_map<edge_t,int>(weight)).
|
||||
+ weight_map(boost::ref_property_map<typename boost::graph_traits<GraphType>::edge_descriptor,int>(weight)).
|
||||
// Store distance and predecessors in QMaps, wrapped to serve as property maps
|
||||
distance_map(VertexIntMapAdaptor(distances)).
|
||||
predecessor_map(VertexVertexMapAdaptor(predecessors))
|
||||
@@ -1218,7 +1218,7 @@ protected:
|
||||
{
|
||||
boost::dag_shortest_paths(graph, v,
|
||||
// we provide a constant weight of 1
|
||||
- weight_map(boost::ref_property_map<edge_t,int>(weight)).
|
||||
+ weight_map(boost::ref_property_map<typename boost::graph_traits<GraphType>::edge_descriptor,int>(weight)).
|
||||
// Invert the default compare method: With greater, we get the longest path
|
||||
distance_compare(std::greater<int>()).
|
||||
// will be returned if a node is unreachable
|
||||
@@ -1384,14 +1384,15 @@ protected:
|
||||
template <class GraphType, typename VertexLessThan>
|
||||
class lessThanMapEdgeToTarget
|
||||
{
|
||||
+ typedef typename boost::graph_traits<GraphType>::edge_descriptor edge_descriptor;
|
||||
public:
|
||||
lessThanMapEdgeToTarget(const GraphType& g, VertexLessThan vertexLessThan)
|
||||
: g(g), vertexLessThan(vertexLessThan) {}
|
||||
const GraphType& g;
|
||||
VertexLessThan vertexLessThan;
|
||||
- bool operator()(const Edge& a, const Edge& b)
|
||||
+ bool operator()(const edge_descriptor& a, const edge_descriptor& b)
|
||||
{
|
||||
- return vertexLessThan(boost::target(a.toEdge(), g), boost::target(b.toEdge(), g));
|
||||
+ return vertexLessThan(boost::target(a, g), boost::target(b, g));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1402,20 +1403,21 @@ protected:
|
||||
{
|
||||
typedef std::pair<Vertex, QList<Edge> > VertexInfo;
|
||||
|
||||
- QList<Edge> outEdges;
|
||||
+ typedef typename boost::graph_traits<IncidenceGraph>::edge_descriptor edge_descriptor;
|
||||
+ QList<edge_descriptor> outEdges;
|
||||
std::vector<VertexInfo> stack;
|
||||
|
||||
boost::put(color, u, boost::gray_color);
|
||||
vis.discover_vertex(u, g);
|
||||
|
||||
- outEdges = toEdgeList(boost::out_edges(u, g));
|
||||
+ outEdges = toList<edge_descriptor>(boost::out_edges(u, g));
|
||||
// Sort edges. The lessThan we have takes vertices, so we use a lessThan which
|
||||
// maps the given edges to their targets, and calls our vertex lessThan.
|
||||
qSort(outEdges.begin(), outEdges.end(), lessThanMapEdgeToTarget<IncidenceGraph, LessThan>(g, lessThan));
|
||||
|
||||
- foreach(const Edge& e, outEdges)
|
||||
+ foreach(const edge_descriptor& e, outEdges)
|
||||
{
|
||||
- Vertex v = boost::target(e.toEdge(), g);
|
||||
+ Vertex v = boost::target(e, g);
|
||||
vis.examine_edge(e, g);
|
||||
boost::default_color_type v_color = boost::get(color, v);
|
||||
if (v_color == boost::white_color)
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 2 08:48:32 UTC 2012 - idonmez@suse.com
|
||||
|
||||
- Add digikam-boost-1.48.patch to fix build with new boost
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 3 09:56:22 UTC 2012 - tittiatcoke@gmail.com
|
||||
|
||||
|
12
digikam.spec
12
digikam.spec
@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: digikam
|
||||
Version: 2.5.0
|
||||
Release: 0
|
||||
@ -37,6 +38,8 @@ Patch4: remove-gplv2-only.patch
|
||||
Patch5: fix-broken-icon-reference.diff
|
||||
# PATCH-FIX-OPENSUSE digikam_no_build_vkontakte.diff tittiatcoke@gmail.com -- Don't build libvkontakte (use external one)
|
||||
Patch6: digikam_no_build_vkontakte.diff
|
||||
# PATCH-FIX-UPSTREAM digikam-boost-1.48.patch idoenmez@suse.de -- Compile with Boost 1.48+, upstream commit d18ea6da2d3e2359f411
|
||||
Patch7: digikam-boost-1.48.patch
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: doxygen
|
||||
@ -51,20 +54,20 @@ BuildRequires: libkde4-devel
|
||||
BuildRequires: libkdepimlibs4-devel
|
||||
%if 0%{?kde_updatedapps}
|
||||
%if 0%{?suse_version} == 1140
|
||||
BuildRequires: sane-backends-devel
|
||||
BuildRequires: libexiv2-devel >= 0.21
|
||||
BuildRequires: sane-backends-devel
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1140
|
||||
BuildRequires: libkvkontakte-devel
|
||||
BuildRequires: libkexiv2-devel
|
||||
BuildRequires: libkipi-devel
|
||||
BuildRequires: libksane-devel
|
||||
BuildRequires: libkvkontakte-devel
|
||||
%endif
|
||||
%else
|
||||
BuildRequires: libkvkontakte-devel
|
||||
BuildRequires: libkexiv2-devel
|
||||
BuildRequires: libkipi-devel
|
||||
BuildRequires: libksane-devel
|
||||
BuildRequires: libkvkontakte-devel
|
||||
%endif
|
||||
BuildRequires: liblcms-devel
|
||||
BuildRequires: liblqr-devel
|
||||
@ -86,8 +89,8 @@ BuildRequires: update-desktop-files
|
||||
%endif
|
||||
Requires: kipi-plugins >= 2.5.0
|
||||
%requires_ge libkipi8
|
||||
Requires: libqt4-sql-sqlite
|
||||
Requires: libqt4-sql-mysql
|
||||
Requires: libqt4-sql-sqlite
|
||||
Recommends: %{name}-doc
|
||||
Recommends: %{name}-lang
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -257,6 +260,7 @@ popd
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6 -p0
|
||||
%patch7 -p1
|
||||
|
||||
# Remove build time references so build-compare can do its work
|
||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
||||
|
Loading…
Reference in New Issue
Block a user