Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/openvdb/files/, media-gfx/openvdb/
Date: Mon, 24 Aug 2020 13:42:40
Message-Id: 1598276509.cdb48fb7dff718b541d13aefafdf53d5cd4fccbc.sam@gentoo
1 commit: cdb48fb7dff718b541d13aefafdf53d5cd4fccbc
2 Author: Adrian Grigo <agrigo2001 <AT> yahoo <DOT> com <DOT> au>
3 AuthorDate: Tue Aug 18 02:36:18 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 24 13:41:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdb48fb7
7
8 media-gfx/openvdb: Fix build failure with newer c-blosc and doc
9
10 The c-blosc 1.19 function blosc_compcode_to_compname now expects a
11 const char** rather than char**. This patch uses const_cast to fix the
12 compiler error.
13
14 When building with doc USE flag enabled, the doc target is not built by
15 default and the missing docs cause an install failure. This patch
16 ensures that when the doc target is defined, it will be built.
17
18 With these two patches, openvdb builds with all USE flags enabled.
19
20 Signed-off-by: Adrian Grigo <agrigo2001 <AT> yahoo.com.au>
21 Closes: https://bugs.gentoo.org/734102
22 Package-Manager: Portage-2.3.103, Repoman-2.3.23
23 Signed-off-by: Sam James <sam <AT> gentoo.org>
24
25 media-gfx/openvdb/files/openvdb-4.0.2-fix-build-docs.patch | 12 ++++++++++++
26 .../openvdb-4.0.2-fix-const-correctness-for-unittest.patch | 12 ++++++++++++
27 media-gfx/openvdb/openvdb-4.0.2-r3.ebuild | 6 ++++--
28 media-gfx/openvdb/openvdb-5.2.0-r1.ebuild | 4 ++--
29 4 files changed, 30 insertions(+), 4 deletions(-)
30
31 diff --git a/media-gfx/openvdb/files/openvdb-4.0.2-fix-build-docs.patch b/media-gfx/openvdb/files/openvdb-4.0.2-fix-build-docs.patch
32 new file mode 100644
33 index 00000000000..25597ec381d
34 --- /dev/null
35 +++ b/media-gfx/openvdb/files/openvdb-4.0.2-fix-build-docs.patch
36 @@ -0,0 +1,12 @@
37 +diff -Naur a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
38 +--- a/openvdb/CMakeLists.txt 2020-08-18 12:17:15.261321103 +1000
39 ++++ b/openvdb/CMakeLists.txt 2020-08-18 12:17:37.101397373 +1000
40 +@@ -394,7 +394,7 @@
41 + FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
42 + FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
43 +
44 +- ADD_CUSTOM_TARGET ( doc
45 ++ ADD_CUSTOM_TARGET ( doc ALL
46 + ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
47 + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
48 + COMMENT "Generating API documentation with Doxygen" VERBATIM
49
50 diff --git a/media-gfx/openvdb/files/openvdb-4.0.2-fix-const-correctness-for-unittest.patch b/media-gfx/openvdb/files/openvdb-4.0.2-fix-const-correctness-for-unittest.patch
51 new file mode 100644
52 index 00000000000..8d3ef59e3ab
53 --- /dev/null
54 +++ b/media-gfx/openvdb/files/openvdb-4.0.2-fix-const-correctness-for-unittest.patch
55 @@ -0,0 +1,12 @@
56 +diff -Naur a/openvdb/unittest/TestFile.cc b/openvdb/unittest/TestFile.cc
57 +--- a/openvdb/unittest/TestFile.cc 2019-09-15 01:05:30.716633230 +0800
58 ++++ b/openvdb/unittest/TestFile.cc 2019-09-15 01:06:16.126633668 +0800
59 +@@ -2552,7 +2552,7 @@
60 +
61 + for (int compcode = 0; compcode <= BLOSC_ZLIB; ++compcode) {
62 + char* compname = nullptr;
63 +- if (0 > blosc_compcode_to_compname(compcode, &compname)) continue;
64 ++ if (0 > blosc_compcode_to_compname(compcode, const_cast<const char **>(&compname))) continue;
65 + /// @todo This changes the compressor setting globally.
66 + if (blosc_set_compressor(compname) < 0) continue;
67 +
68
69 diff --git a/media-gfx/openvdb/openvdb-4.0.2-r3.ebuild b/media-gfx/openvdb/openvdb-4.0.2-r3.ebuild
70 index 1996c6be2df..2205bebd492 100644
71 --- a/media-gfx/openvdb/openvdb-4.0.2-r3.ebuild
72 +++ b/media-gfx/openvdb/openvdb-4.0.2-r3.ebuild
73 @@ -7,9 +7,9 @@ PYTHON_COMPAT=( python3_6 )
74
75 inherit cmake flag-o-matic python-single-r1
76
77 -DESCRIPTION="Libs for the efficient manipulation of volumetric data"
78 +DESCRIPTION="Library for the efficient manipulation of volumetric data"
79 HOMEPAGE="https://www.openvdb.org"
80 -SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
81 +SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
82 https://dev.gentoo.org/~dracwyrm/patches/${P}-patchset-02.tar.xz"
83
84 LICENSE="MPL-2.0"
85 @@ -57,6 +57,8 @@ PATCHES=(
86 "${WORKDIR}/${P}-patchset-02/0002-use-pkgconfig-for-ilmbase-and-openexr.patch"
87 "${WORKDIR}/${P}-patchset-02/0003-boost-1.65-numpy-support.patch"
88 "${FILESDIR}/${P}-findboost-fix.patch"
89 + "${FILESDIR}/${P}-fix-const-correctness-for-unittest.patch"
90 + "${FILESDIR}/${P}-fix-build-docs.patch"
91 )
92
93 pkg_setup() {
94
95 diff --git a/media-gfx/openvdb/openvdb-5.2.0-r1.ebuild b/media-gfx/openvdb/openvdb-5.2.0-r1.ebuild
96 index 3955290220b..ef955f2c6ca 100644
97 --- a/media-gfx/openvdb/openvdb-5.2.0-r1.ebuild
98 +++ b/media-gfx/openvdb/openvdb-5.2.0-r1.ebuild
99 @@ -7,9 +7,9 @@ PYTHON_COMPAT=( python3_6 )
100
101 inherit cmake flag-o-matic python-single-r1
102
103 -DESCRIPTION="Libs for the efficient manipulation of volumetric data"
104 +DESCRIPTION="Library for the efficient manipulation of volumetric data"
105 HOMEPAGE="https://www.openvdb.org"
106 -SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
107 +SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
108
109 LICENSE="MPL-2.0"
110 SLOT="0"