mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
media-gfx/openvdb: Fix build failure with newer c-blosc and doc
The c-blosc 1.19 function blosc_compcode_to_compname now expects a const char** rather than char**. This patch uses const_cast to fix the compiler error. When building with doc USE flag enabled, the doc target is not built by default and the missing docs cause an install failure. This patch ensures that when the doc target is defined, it will be built. With these two patches, openvdb builds with all USE flags enabled. Signed-off-by: Adrian Grigo <agrigo2001@yahoo.com.au> Closes: https://bugs.gentoo.org/734102 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
diff -Naur a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
|
||||
--- a/openvdb/CMakeLists.txt 2020-08-18 12:17:15.261321103 +1000
|
||||
+++ b/openvdb/CMakeLists.txt 2020-08-18 12:17:37.101397373 +1000
|
||||
@@ -394,7 +394,7 @@
|
||||
FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
|
||||
FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
|
||||
|
||||
- ADD_CUSTOM_TARGET ( doc
|
||||
+ ADD_CUSTOM_TARGET ( doc ALL
|
||||
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -Naur a/openvdb/unittest/TestFile.cc b/openvdb/unittest/TestFile.cc
|
||||
--- a/openvdb/unittest/TestFile.cc 2019-09-15 01:05:30.716633230 +0800
|
||||
+++ b/openvdb/unittest/TestFile.cc 2019-09-15 01:06:16.126633668 +0800
|
||||
@@ -2552,7 +2552,7 @@
|
||||
|
||||
for (int compcode = 0; compcode <= BLOSC_ZLIB; ++compcode) {
|
||||
char* compname = nullptr;
|
||||
- if (0 > blosc_compcode_to_compname(compcode, &compname)) continue;
|
||||
+ if (0 > blosc_compcode_to_compname(compcode, const_cast<const char **>(&compname))) continue;
|
||||
/// @todo This changes the compressor setting globally.
|
||||
if (blosc_set_compressor(compname) < 0) continue;
|
||||
|
||||
@@ -7,9 +7,9 @@ PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit cmake flag-o-matic python-single-r1
|
||||
|
||||
DESCRIPTION="Libs for the efficient manipulation of volumetric data"
|
||||
DESCRIPTION="Library for the efficient manipulation of volumetric data"
|
||||
HOMEPAGE="https://www.openvdb.org"
|
||||
SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~dracwyrm/patches/${P}-patchset-02.tar.xz"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
@@ -57,6 +57,8 @@ PATCHES=(
|
||||
"${WORKDIR}/${P}-patchset-02/0002-use-pkgconfig-for-ilmbase-and-openexr.patch"
|
||||
"${WORKDIR}/${P}-patchset-02/0003-boost-1.65-numpy-support.patch"
|
||||
"${FILESDIR}/${P}-findboost-fix.patch"
|
||||
"${FILESDIR}/${P}-fix-const-correctness-for-unittest.patch"
|
||||
"${FILESDIR}/${P}-fix-build-docs.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
|
||||
@@ -7,9 +7,9 @@ PYTHON_COMPAT=( python3_6 )
|
||||
|
||||
inherit cmake flag-o-matic python-single-r1
|
||||
|
||||
DESCRIPTION="Libs for the efficient manipulation of volumetric data"
|
||||
DESCRIPTION="Library for the efficient manipulation of volumetric data"
|
||||
HOMEPAGE="https://www.openvdb.org"
|
||||
SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
Reference in New Issue
Block a user