Kicad's configure step, with the occ USE, is specifying -DOCC_INCLUDE_DIR=/usr/include/opencascade, whereas opencascade (7.5.3 here), which is slotted, is installed in /usr/include/opencascade-7.5.3. I don't know what a better mechanism would be to pass the right location; perhaps there is a limitation to the env.d files of opencascade. Reproducible: Always
Created attachment 767001 [details, diff] patch for kicad-6.0.2.ebuild to use proper include directory.
I created this patch based on Bug 827102. It's still building, but it's past the configure step so I'm pretty sure it fixes this.
Update, it installed and works just fine. I'd say this patch should be applied to the ebuild please!
Okay, note here: I'm not exactly sure what's going on, but on my work machine opencascade's include folder doesn't have the version: $ ls -d /usr/include/opencascade/ /usr/include/opencascade/ Then I rebuilt and it's still in the same location. Someone else is going to have to comment on why certain opencascade installs get a version number and others don't.
(In reply to Alex Orange from comment #4) > Okay, note here: I'm not exactly sure what's going on, but on my work > machine opencascade's include folder doesn't have the version: > > $ ls -d /usr/include/opencascade/ > /usr/include/opencascade/ > > > Then I rebuilt and it's still in the same location. Someone else is going to > have to comment on why certain opencascade installs get a version number and > others don't. opencascade has been unslotted, so no new ones should have a version number.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=691d5e8641e51ba68c12d524604daecba34d6a92 commit 691d5e8641e51ba68c12d524604daecba34d6a92 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-03-16 22:46:39 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-03-16 22:50:55 +0000 sci-electronics/kicad: depend on :0 for opencascade This avoids tolerating the old slotted versions. Closes: https://bugs.gentoo.org/833301 Signed-off-by: Sam James <sam@gentoo.org> .../kicad/{kicad-5.1.12-r2.ebuild => kicad-5.1.12-r3.ebuild} | 4 ++-- sci-electronics/kicad/{kicad-6.0.2.ebuild => kicad-6.0.2-r1.ebuild} | 3 ++- sci-electronics/kicad/kicad-9999.ebuild | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-)