Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832874 - =sci-electronics/kicad-5.1.12-r1 incorrectly searching for opencascade
Summary: =sci-electronics/kicad-5.1.12-r1 incorrectly searching for opencascade
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:
Depends on:
Blocks:
 
Reported: 2022-02-08 01:41 UTC by David Flogeras
Modified: 2022-02-08 05:46 UTC (History)
1 user (show)

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


Attachments
Proposed fix for 5.1.12-r1.ebuild (ebuild_fix.patch,1.05 KB, patch)
2022-02-08 05:41 UTC, David Flogeras
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2022-02-08 01:41:51 UTC
The ebuild thinks that opencascade-7.5.2 installs in /usr/{lib/include/..}/opencascade-7.5.2, but it seems that it installs in plain /usr/{lib/include/..}/opencascade/.

I hand edited my ebuild to get rid of the special versioned case and it detects it and seems to build properly.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-08 01:45:08 UTC
This is true, but any reason to not be on 6.x now?
Comment 2 David Flogeras 2022-02-08 01:48:34 UTC
I spoke too soon, it also fails to link.

Reason to be on 5.x for me is I am working for a company that requires me to stay on 5 for a bit until we can migrate in a controlled fashion.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-08 04:39:36 UTC
(In reply to David Flogeras from comment #2)
> I spoke too soon, it also fails to link.
> 
> Reason to be on 5.x for me is I am working for a company that requires me to
> stay on 5 for a bit until we can migrate in a controlled fashion.

OK, good excuse :)

Please attach the log of it failing to link if you adjusted the ebuild (and how) so I know what not to try.
Comment 4 David Flogeras 2022-02-08 05:40:45 UTC
(In reply to Sam James from comment #3)
> 
> OK, good excuse :)
> 
> Please attach the log of it failing to link if you adjusted the ebuild (and
> how) so I know what not to try.

OK, after actually slowing down, I made it build _and_ link (my dumb).

In the end, I _think_ the multiway if/else handling the occ 7.5.2, 7.5.1, and then 'anything older' can be boiled down to handling it one way (since 7.5.1 and older are no longer in tree, and following the 6.x ebuild).  Attaching an ebuild patch for 5.1.12-r1.
Comment 5 David Flogeras 2022-02-08 05:41:31 UTC
Created attachment 764558 [details, diff]
Proposed fix for 5.1.12-r1.ebuild
Comment 6 Larry the Git Cow gentoo-dev 2022-02-08 05:46:07 UTC
The bug has been closed via the following commit(s):

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

commit ed92943627a2995fd815d7ba7a383e2a85826150
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-08 05:44:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-08 05:44:45 +0000

    sci-electronics/kicad: fix finding opencascade
    
    Sync with logic in newer ebuilds to accommodate opencascade ebuild changes
    (slotting was abandoned).
    
    Closes: https://bugs.gentoo.org/832874
    Thanks-to: David Flogeras <dflogeras2@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...icad-5.1.12-r1.ebuild => kicad-5.1.12-r2.ebuild} | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)