Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605478 - media-gfx/freecad-9999: missing Libmed Dependency
Summary: media-gfx/freecad-9999: missing Libmed Dependency
Status: RESOLVED DUPLICATE of bug 596958
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Michael Weber (RETIRED)
Keywords: PATCH
Depends on:
Reported: 2017-01-12 13:57 UTC by jacob.pelletier
Modified: 2017-01-18 19:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

patch for media-gfx/freecad-9999 (freecad-9999.2.ebuild.patch,734 bytes, patch)
2017-01-12 13:57 UTC, jacob.pelletier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jacob.pelletier 2017-01-12 13:57:17 UTC
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/;/usr/lib64/;/usr/lib64/;/usr/lib64/ (found version "1.8.18")  
-- Check for medfile (libmed and libmedc) ...
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  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   /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 Call stack:
 [31;01m*[0m, 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 @@
-	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
@@ -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/ || die
Comment 1 Jonas Stein gentoo-dev 2017-01-16 23:54:07 UTC
thank you for the patch.
Comment 2 David Seifert gentoo-dev 2017-01-18 19:51:38 UTC

*** This bug has been marked as a duplicate of bug 596958 ***