Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690668 - [? overlay] media-gfx/freecad-9999 opencascade 7.0.3 path change breaks compilation
Summary: [? overlay] media-gfx/freecad-9999 opencascade 7.0.3 path change breaks compi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-24 19:57 UTC by Guillaume Ranquet
Modified: 2019-07-25 20:51 UTC (History)
2 users (show)

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


Attachments
fix OCC include/lib path. (0002-freecad-fix-OCC-include-and-lib-path.patch,1.05 KB, patch)
2019-07-24 19:59 UTC, Guillaume Ranquet
Details | Diff
fix libmed/fem dependency (0001-freecad-fix-fem-dependency-on-libmed.patch,1.00 KB, patch)
2019-07-24 20:01 UTC, Guillaume Ranquet
Details | Diff
build.log commit: 0f6fb8a1c5d2e8b478c720c8a192d9698ab30769 (freecad-build.log,10.50 KB, text/x-log)
2019-07-25 13:24 UTC, Guillaume Ranquet
Details
emerge --info (emerge.info,6.62 KB, application/x-info)
2019-07-25 13:25 UTC, Guillaume Ranquet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Ranquet 2019-07-24 19:57:16 UTC
opencascade path structure seems to have changed a little bit... which breaks freecad compilation.

Reproducible: Always

Actual Results:  
CMake Error at cMake/FindOpenCasCade.cmake:95 (file):
  file STRINGS file
  "/usr/lib64/opencascade-7.3.0/ros/inc/Standard_Version.hxx" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:699 (find_package)


CMake Error at cMake/FindOpenCasCade.cmake:98 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:699 (find_package)


CMake Error at cMake/FindOpenCasCade.cmake:99 (file):
  file STRINGS file
  "/usr/lib64/opencascade-7.3.0/ros/inc/Standard_Version.hxx" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:699 (find_package)
Comment 1 Guillaume Ranquet 2019-07-24 19:59:04 UTC
Created attachment 584458 [details, diff]
fix OCC include/lib path.
Comment 2 Guillaume Ranquet 2019-07-24 20:01:23 UTC
Created attachment 584460 [details, diff]
fix libmed/fem dependency

I'm adding this as a kind of bonus... as it's not directly related to the bug.

but I got fed up with having to fight with libmed and found out libmed is actually required if you enabled BUILD_FEM too.

not happy with the patch as I'm sure there's a better way to express the fact that enabling fem actually enables smesh, which then depends on libmed.
Comment 3 Andreas Sturmlechner gentoo-dev 2019-07-24 20:31:23 UTC
freecad is not even in Gentoo ebuild repository.

- missing emerge --info
- missing build.log
Comment 4 Guillaume Ranquet 2019-07-25 07:27:03 UTC
(In reply to Andreas Sturmlechner from comment #3)
> freecad is not even in Gentoo ebuild repository.
> 
> - missing emerge --info
> - missing build.log

you are right. it's in the fordfrog overlay.
is it the proper place to report bugs in "official" overlays?
https://gitweb.gentoo.org/dev/fordfrog.git/
Comment 5 Miroslav Šulc gentoo-dev 2019-07-25 08:26:19 UTC
i'll have a look at it, probably this evening europe time. though i compile freecad daily and have no issues at this moment so i'm not able to reproduce it myself. `emerge --info` and build.log would be really helpful.
Comment 6 Guillaume Ranquet 2019-07-25 13:24:17 UTC
Created attachment 584468 [details]
build.log commit: 0f6fb8a1c5d2e8b478c720c8a192d9698ab30769
Comment 7 Guillaume Ranquet 2019-07-25 13:25:06 UTC
Created attachment 584470 [details]
emerge --info
Comment 8 Guillaume Ranquet 2019-07-25 13:27:31 UTC
(In reply to Miroslav Šulc from comment #5)
> i'll have a look at it, probably this evening europe time. though i compile
> freecad daily and have no issues at this moment so i'm not able to reproduce
> it myself. `emerge --info` and build.log would be really helpful.

there you go.

~ # eselect opencascade list
Installed opencascade
  [1]   7.3.0 *

~ # tree -L 1 /usr/lib64/opencascade-7.3.0/ros/
/usr/lib64/opencascade-7.3.0/ros/
|-- bin
|-- include
|-- lib
`-- share


HTH,
Guillaume.
Comment 9 Miroslav Šulc gentoo-dev 2019-07-25 20:51:39 UTC
Guillaume Ranquet, i applied your patch for occ as it is definitely correct. with regard to libmed, i did it in a different way:
1) i added check whether smesh module is enabled when fem module is enabled
2) and i also enabled smesh module by default as as you wrote, it s built when fem is enabled and so it makes no sense to have fem enabled by default and smesh not

i did also some other fixes to the ebuild.

thank you for reporting the bugs and providing the patches.