Created attachment 447652 [details] fixed darktable-9999.ebuild Hi, following the partial error output and the proposed fix. kind regards Wolfgang emerge darktable ---------------- [...] CMake Error at doc/CMakeLists.txt:5 (install): install FILES given directory "../" to install. -- -- Found Java: /usr/bin/java (found version "1.8.0.102") [...] * ERROR: media-gfx/darktable-9999::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 3992: Called cmake-utils_src_configure * environment, line 1148: Called _cmake_execute_optionally 'src_configure' * environment, line 426: Called enable_cmake-utils_src_configure this change is fixing the build: -------------------------------- --- /usr/portage/media-gfx/darktable/darktable-9999.ebuild 2016-08-12 21:11:55.000000000 +0200 +++ darktable-9999.ebuild 2016-09-23 21:56:09.397379292 +0200 @@ -76,7 +76,7 @@ sed -e "s:\(/share/doc/\)darktable:\1${PF}:" \ -e "s:\(\${SHARE_INSTALL}/doc/\)darktable:\1${PF}:" \ - -e "s:LICENSE::" \ + -e "s:../LICENSE::" \ -i doc/CMakeLists.txt || die cmake-utils_src_prepare
The proposed patch works for me, too.
Can confirm, darktable-9999 was failing with same error before I applied the patch.
Is this still an issue? Looks like upstream already fixed it: https://github.com/darktable-org/darktable/commit/3966d04c86f81afd4d521ea3b4dbe60bee57ce51
(In reply to Markus Meier from comment #3) > Is this still an issue? Looks like upstream already fixed it: > > https://github.com/darktable-org/darktable/commit/ > 3966d04c86f81afd4d521ea3b4dbe60bee57ce51 Unfortunately, there is a new error now /var/tmp/portage/media-gfx/darktable-9999/work/darktable-9999_build/src/config.h:7:0: error: "PACKAGE_NAME" redefined [-Werror] #define PACKAGE_NAME "darktable" ^ In file included from /usr/include/OpenEXR/ImfNamespace.h:78:0, from /usr/include/OpenEXR/ImfName.h:48, from /usr/include/OpenEXR/ImfChannelList.h:47, from /var/tmp/portage/media-gfx/darktable-9999/work/darktable-9999/src/imageio/format/exr.cc:27: /usr/include/OpenEXR/OpenEXRConfig.h:104:0: note: this is the location of the previous definition #define PACKAGE_NAME "OpenEXR" and /var/tmp/portage/media-gfx/darktable-9999/work/darktable-9999_build/src/config.h:8:0: error: "PACKAGE_BUGREPORT" redefined [-Werror] #define PACKAGE_BUGREPORT "darktable-dev@lists.darktable.org" ^ In file included from /usr/include/OpenEXR/ImfNamespace.h:78:0, from /usr/include/OpenEXR/ImfName.h:48, from /usr/include/OpenEXR/ImfChannelList.h:47, from /var/tmp/portage/media-gfx/darktable-9999/work/darktable-9999/src/imageio/format/exr.cc:27: /usr/include/OpenEXR/OpenEXRConfig.h:101:0: note: this is the location of the previous definition #define PACKAGE_BUGREPORT ""
Created attachment 454760 [details] patched ebuild As a work around one can undefined the macros PACKAGE_NAME and PACKAGE_BUGREPORT just after the inclusion of the OpenEXR files. I consider it as a bug if a public header file (here from OpenEXR) defines macros with such generic names.
Created attachment 458570 [details] build log
Unfortunately, there is a new problem jsonschema: error: argument -i/--instance: invalid _json_file value: '/var/tmp/portage/media-gfx/darktable-9999/work/darktable-9999/data/noiseprofiles.json'
actual breakage: ---------------- [...] CMake Error at src/external/rawspeed/cmake/build-type.cmake:31 (message): Unknown build type: GENTOO. Please specify one of: DEBUG;RELWITHDEBINFO;RELEASE;COVERAGE;SANITIZE [...] * Messages for package media-gfx/darktable-9999: * ERROR: media-gfx/darktable-9999::gentoo failed (configure phase): * cmake failed [...] q&d fix: -------- sudo CMAKE_BUILD_TYPE=RELWITHDEBINFO emerge darktable
(In reply to Wolfgang Goetz from comment #8) > actual breakage: > ---------------- > [...] > CMake Error at src/external/rawspeed/cmake/build-type.cmake:31 (message): > Unknown build type: GENTOO. Please specify one of: > DEBUG;RELWITHDEBINFO;RELEASE;COVERAGE;SANITIZE > [...] > * Messages for package media-gfx/darktable-9999: > > * ERROR: media-gfx/darktable-9999::gentoo failed (configure phase): > * cmake failed > [...] > > > > q&d fix: > -------- > sudo CMAKE_BUILD_TYPE=RELWITHDEBINFO emerge darktable Just confirming that adding 'CMAKE_BUILD_TYPE=RELWITHDEBINFO' to the ebuild fixes this particular breakage.
Created attachment 471372 [details] ebuild, currently working Here's an ebuild I use personally, which at least for the moment works.