Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833301 - sci-electronics/kicad-6.0.1[occ] configure doesn't use the sci-libs/opencascade includes
Summary: sci-electronics/kicad-6.0.1[occ] configure doesn't use the sci-libs/opencasca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-14 03:07 UTC by cJ
Modified: 2022-03-16 23:27 UTC (History)
5 users (show)

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


Attachments
patch for kicad-6.0.2.ebuild to use proper include directory. (kicad-6.0.2.ebuild.patch,632 bytes, patch)
2022-03-14 02:17 UTC, Alex Orange
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cJ 2022-02-14 03:07:27 UTC
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
Comment 1 Alex Orange 2022-03-14 02:17:09 UTC
Created attachment 767001 [details, diff]
patch for kicad-6.0.2.ebuild to use proper include directory.
Comment 2 Alex Orange 2022-03-14 02:17:48 UTC
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.
Comment 3 Alex Orange 2022-03-15 01:11:48 UTC
Update, it installed and works just fine. I'd say this patch should be applied to the ebuild please!
Comment 4 Alex Orange 2022-03-15 17:11:28 UTC
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.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-16 22:44:19 UTC
(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.
Comment 6 Larry the Git Cow gentoo-dev 2022-03-16 22:51:13 UTC
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(-)