Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830964 - sci-electronics/kicad-6.0.0: configure fails with sci-libs/opencascade 7.6, succeeds with 7.5
Summary: sci-electronics/kicad-6.0.0: configure fails with sci-libs/opencascade 7.6, s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords:
: 831028 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-10 21:02 UTC by Scott Alfter
Modified: 2022-01-12 18:01 UTC (History)
10 users (show)

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


Attachments
build.log (build.log,8.53 KB, text/plain)
2022-01-10 23:12 UTC, Scott Alfter
Details
root-level CMakeLists.txt (CMakeLists.txt,37.75 KB, text/plain)
2022-01-10 23:14 UTC, Scott Alfter
Details
FindOCC.cmake (FindOCC.cmake,6.00 KB, text/plain)
2022-01-10 23:14 UTC, Scott Alfter
Details
emerge --info (file_830964.txt,6.85 KB, text/plain)
2022-01-10 23:15 UTC, Scott Alfter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Alfter 2022-01-10 21:02:34 UTC
If opencascade 7.6 is installed, KiCad installation fails in the configure phase:

*** OpenCascade library missing
Verify your OpenCascade installation or pass CMake
  the library directory as '-DOCC_LIBRARY_DIR=<path>'

CMake Error at CMakeModules/FindOCC.cmake:147 (message):
Call Stack (most recent call first):
  CMakeLists.txt:731 (find_package)

If I mask opencascade 7.6, KiCad will configure and build against opencascade 7.5.3.


Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-10 21:19:35 UTC
Please do include the full build.log and any CMake files it mentions in the log.
Comment 2 Jonas Stein gentoo-dev 2022-01-10 22:38:53 UTC
...as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 3 Scott Alfter 2022-01-10 23:12:42 UTC
Created attachment 761832 [details]
build.log
Comment 4 Scott Alfter 2022-01-10 23:14:18 UTC
Created attachment 761833 [details]
root-level CMakeLists.txt
Comment 5 Scott Alfter 2022-01-10 23:14:40 UTC
Created attachment 761834 [details]
FindOCC.cmake
Comment 6 Scott Alfter 2022-01-10 23:15:25 UTC
Created attachment 761835 [details]
emerge --info
Comment 7 Matt Turner gentoo-dev 2022-01-11 07:00:45 UTC
I see this too, and specifically I see:

> !!! File Not Found: '/etc/env.d/51opencascade'                                                                                             

and eselect cascade list shows nothing:

> # eselect opencascade list
> Installed opencascade
> #
Comment 8 Bernd 2022-01-11 08:41:21 UTC
(In reply to Matt Turner from comment #7)
> I see this too, and specifically I see:
> 
> > !!! File Not Found: '/etc/env.d/51opencascade'                                                                                             
> 
> and eselect cascade list shows nothing:
> 
> > # eselect opencascade list
> > Installed opencascade
> > #

The eselect module for opencascade is obsolete and going to get masked and removed. It's no longer needed with 7.6.

The kicad ebuild specifically mentions CAS_VERSION=7.5.3, so I assume it's not yet tested with 7.6. If it's not yet ready for 7.6, the dependency could be restricted to versions <7.6.
Comment 9 email200202 2022-01-11 11:21:18 UTC
The ebuild is expecting opencascade library to be at "/usr/lib64/opencascade-7.6.0" instead it is at "/usr/lib64/opencascade".

As workaround, create a link:

ln -s /usr/lib64/opencascade  /usr/lib64/opencascade-7.6.0
Comment 10 email200202 2022-01-11 12:24:04 UTC
And you need also include link:

ln -s /usr/include/opencascade /usr/include/opencascade-7.6.0
Comment 11 gentoo 2022-01-11 12:55:58 UTC
I can confirm that the workaround fixes the problem.
Comment 12 email200202 2022-01-11 14:11:32 UTC
Opencascade ebuild writes the env.d file to /etc/env.d/99opencascade and not to /etc/env.d/51opencascade.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-11 19:47:02 UTC
*** Bug 831028 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2022-01-11 23:46:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b2814dddcdf0bf52b99fb0769a1ae6e3643d13

commit e4b2814dddcdf0bf52b99fb0769a1ae6e3643d13
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-01-11 23:45:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-11 23:45:34 +0000

    sci-electronics/kicad: adapt to opencascade changes
    
    No longer slotted.
    
    Closes: https://bugs.gentoo.org/830964
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-electronics/kicad/kicad-6.0.0.ebuild |  9 ++-------
 sci-electronics/kicad/kicad-9999.ebuild  | 15 +++++----------
 2 files changed, 7 insertions(+), 17 deletions(-)