Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liborcus/, dev-libs/liborcus/files/
Date: Tue, 18 Sep 2018 19:06:00
Message-Id: 1537297465.9e74d08669eae0d59cb658e049aa3008a80de3cd.asturm@gentoo
1 commit: 9e74d08669eae0d59cb658e049aa3008a80de3cd
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 18 19:03:54 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 18 19:04:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e74d086
7
8 dev-libs/liborcus: Fix build with boost-1.67
9
10 Thanks-to: Yuriy Ilinykh <yurark96 <AT> gmail.com>
11 Closes: https://bugs.gentoo.org/663218
12 Package-Manager: Portage-2.3.49, Repoman-2.3.10
13
14 .../files/liborcus-0.13.4-boost-1.67.patch | 50 ++++++++++++++++++++++
15 dev-libs/liborcus/liborcus-0.13.4.ebuild | 6 ++-
16 2 files changed, 54 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-libs/liborcus/files/liborcus-0.13.4-boost-1.67.patch b/dev-libs/liborcus/files/liborcus-0.13.4-boost-1.67.patch
19 new file mode 100644
20 index 00000000000..b1d44b8db4c
21 --- /dev/null
22 +++ b/dev-libs/liborcus/files/liborcus-0.13.4-boost-1.67.patch
23 @@ -0,0 +1,50 @@
24 +From f7485813af8e50f88c77312fb29b7bb489a0a17d Mon Sep 17 00:00:00 2001
25 +From: Adam Majer <amajer@××××.de>
26 +Date: Wed, 23 May 2018 10:45:56 +0200
27 +Subject: [PATCH] Fix build with Boost 1.67
28 +
29 +Boost:DateTime that no longer accepts non-integer types.
30 +In the past, these types were implicitly cast down to integer
31 +values. Now this requires explicit cast.
32 +
33 +https://svn.boost.org/trac10/ticket/11168
34 +
35 +This fixes #60
36 +---
37 + src/spreadsheet/sheet.cpp | 6 +++---
38 + 1 file changed, 3 insertions(+), 3 deletions(-)
39 +
40 +diff --git a/src/spreadsheet/sheet.cpp b/src/spreadsheet/sheet.cpp
41 +index 7df1aedb..33b372ad 100644
42 +--- a/src/spreadsheet/sheet.cpp
43 ++++ b/src/spreadsheet/sheet.cpp
44 +@@ -289,7 +289,7 @@ void sheet::set_date_time(row_t row, col_t col, int year, int month, int day, in
45 +
46 + double days_since_epoch = (d - origin).days();
47 +
48 +- double ms = second * 1000000.0;
49 ++ long ms = second * 1000000.0;
50 +
51 + posix_time::time_duration t(
52 + posix_time::hours(hour) +
53 +@@ -606,7 +606,7 @@ date_time_t sheet::get_date_time(row_t row, col_t col) const
54 + if (time_fraction)
55 + {
56 + // Convert a fraction day to microseconds.
57 +- double ms = time_fraction * 24.0 * 60.0 * 60.0 * 1000000.0;
58 ++ long ms = time_fraction * 24.0 * 60.0 * 60.0 * 1000000.0;
59 + posix_time::time_duration td = posix_time::microsec(ms);
60 +
61 + hours = td.hours();
62 +@@ -615,7 +615,7 @@ date_time_t sheet::get_date_time(row_t row, col_t col) const
63 +
64 + td -= posix_time::hours(hours);
65 + td -= posix_time::minutes(minutes);
66 +- td -= posix_time::seconds(seconds);
67 ++ td -= posix_time::seconds((long)seconds);
68 +
69 + ms = td.total_microseconds(); // remaining microseconds.
70 +
71 +--
72 +2.18.0
73 +
74
75 diff --git a/dev-libs/liborcus/liborcus-0.13.4.ebuild b/dev-libs/liborcus/liborcus-0.13.4.ebuild
76 index 2f74b321685..c3a85e9f2fa 100644
77 --- a/dev-libs/liborcus/liborcus-0.13.4.ebuild
78 +++ b/dev-libs/liborcus/liborcus-0.13.4.ebuild
79 @@ -23,9 +23,9 @@ IUSE="python +spreadsheet-model static-libs tools"
80
81 RDEPEND="
82 dev-libs/boost:=
83 - sys-libs/zlib:=
84 + sys-libs/zlib
85 python? ( ${PYTHON_DEPS} )
86 - spreadsheet-model? ( >=dev-libs/libixion-0.13.0:= )
87 + spreadsheet-model? ( =dev-libs/libixion-0.13*:= )
88 "
89 DEPEND="${RDEPEND}
90 =dev-util/mdds-1.3*:1
91 @@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
92
93 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
94
95 +PATCHES=( "${FILESDIR}/${P}-boost-1.67.patch" )
96 +
97 pkg_setup() {
98 use python && python-single-r1_pkg_setup
99 }