Created attachment 459776 [details, diff] patch for media-gfx/freecad-9999 When emerging the media-gfx/freecad-9999 developmental version, portage fails while configuring the source via cmake. This appears to be caused due to a missing sci-libs/libmed dependency. Adding the dependency to the ebuild fixed the problem for me. Attempting to emerge this updated ebuild showed that there is also a copy/paste error from the version 0.14.3702 ebuild which had an epatch. The epatch is no longer necessary. Suggested Fix: Patch the current media-gfx/freecad-9999 ebuild in the gentoo tree with the attached freecad-9999.2.ebuild.patch which led to a successful on build of the software on my ~amd64 machine. Supporting info: 1: From ebuild.log for failed media-gfx/freecad-9999 "" -- HDF5: Using hdf5 compiler wrapper to determine C configuration -- Found HDF5: /usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found version "1.8.18") -- Check for medfile (libmed and libmedc) ... CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find MEDFile (missing: MEDFILE_INCLUDE_DIRS MEDFILE_LIBRARIES) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) cMake/FindMEDFile.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:638 (find_package) -- Configuring incomplete, errors occurred! "" 2: From ebuild.log for failed media-gfx/freecad-9999.1 "" >>> Source unpacked in /var/tmp/portage/media-gfx/freecad-9999.1/work >>> Preparing source in /var/tmp/portage/media-gfx/freecad-9999.1/work/freecad-9999.1 ... [32;01m*[0m remove bundled libs [31;01m*[0m Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: [31;01m*[0m [31;01m*[0m /usr/local/portage/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch [31;01m*[0m ( freecad-0.14.3702-install-paths.patch ) [31;01m*[0m ERROR: media-gfx/freecad-9999.1::local-overlay failed (prepare phase): [31;01m*[0m Cannot find $EPATCH_SOURCE! [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 115: Called src_prepare [31;01m*[0m environment, line 4898: Called epatch '/usr/local/portage/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch' [31;01m*[0m environment, line 1839: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m die "Cannot find \$EPATCH_SOURCE!"; "" 3: Patch to update media-gfx/freecad-999 to media-gfx/freecad-9999.2 : "" $ diff -Naur freecad-9999.ebuild freecad-9999.2.ebuild --- freecad-9999.ebuild 2017-01-12 08:39:53.311406753 -0500 +++ freecad-9999.2.ebuild 2017-01-12 08:59:42.011493120 -0500 @@ -28,8 +28,8 @@ dev-qt/qtopengl:4 dev-qt/qtsvg:4 dev-qt/qtwebkit:4 - media-libs/coin - || ( sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 ) + media-libs/coin || ( sci-libs/opencascade:6.9.0[vtk] sci-libs/opencascade:6.8.0 sci-libs/opencascade:6.7.1 ) + sci-libs/libmed sys-libs/zlib virtual/glu ${PYTHON_DEPS}" @@ -61,8 +61,6 @@ einfo remove bundled libs rm -rf src/3rdParty/{boost,Pivy*} - epatch "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch - #bug 518996 sed -e "/LibDir = /s:'lib':'"$(get_libdir)"':g" \ -i src/App/FreeCADInit.py || die
thank you for the patch.
*** This bug has been marked as a duplicate of bug 596958 ***