Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672348 - =sci-electronics/kicad-5.0.0-r1[-oce,occ] fails to find opencascade headers
Summary: =sci-electronics/kicad-5.0.0-r1[-oce,occ] fails to find opencascade headers
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: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2018-12-01 18:05 UTC by Bernd
Modified: 2019-03-31 08:43 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,12.86 KB, text/plain)
2018-12-01 18:05 UTC, Bernd
Details
kicad-5.0.0-r1-occ.patch (kicad-5.0.0-r1-occ.patch,606 bytes, text/plain)
2018-12-01 18:06 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2018-12-01 18:05:05 UTC
Created attachment 556886 [details]
emerge --info

The ebuild fails to find the include directory for opencascade-7.3.0

*** OpenCascade header files missing ***
Verify your OpenCascade installation or pass CMake
  the header directory as '-DOCC_INCLUDE_DIR=<path>'

CMake Error at CMakeModules/FindOpenCASCADE.cmake:158 (message):
Call Stack (most recent call first):
  CMakeLists.txt:638 (find_package)

A simple patch in src_configure solves this issue.
Comment 1 Bernd 2018-12-01 18:06:15 UTC
Created attachment 556888 [details]
kicad-5.0.0-r1-occ.patch

Patch to detect include directories for kicad-5.0.0-r1 using opencascade-7.3.0
Comment 2 Fabio Rossi 2019-01-03 22:00:12 UTC
This patch is needed because the opencascade ebuild changes its default path for include files. The standard solution for opencascade is to install files to

/usr/lib64/opencascade-7.3.0/ros/lin/

while the ebuild shortens this base path to 

/usr/lib64/opencascade-7.3.0/

Additionally, the relative path ../inc is changed to ../include. As we are changing the default paths, i.e. some effort is already foreseen to fix things, why don't install the files in the proper places? E.g. the includes would go below:

/usr/include/opencascade-${PV}/
Comment 3 Zoltan Puskas 2019-03-25 02:50:10 UTC
Patched in kicad-5.0.1, as kicad-5.0.0 has some bugs too, I'm actually dropping it from tee in favour of 5.0.1. Finally, 5.1.0 has been released and I should be ready with the ebuilds for that shortly.
Comment 4 Larry the Git Cow gentoo-dev 2019-03-31 08:43:56 UTC
The bug has been closed via the following commit(s):

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

commit 94e6bff5744cbe1ddf0bff4774dd10e018ac972b
Author:     Zoltan Puskas <zoltan@sinustrom.info>
AuthorDate: 2019-03-25 01:45:58 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-03-31 08:43:40 +0000

    sci-electronics/kicad: Drop 5.0.0
    
    Closes: https://bugs.gentoo.org/672348
    Closes: https://bugs.gentoo.org/672350
    Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info>
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Closes: https://github.com/gentoo/gentoo/pull/11486
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sci-electronics/kicad-footprints/Manifest          |   1 -
 .../kicad-footprints/kicad-footprints-5.0.0.ebuild |  18 ---
 sci-electronics/kicad-i18n/Manifest                |   1 -
 sci-electronics/kicad-i18n/kicad-i18n-5.0.0.ebuild |  18 ---
 sci-electronics/kicad-meta/kicad-meta-5.0.0.ebuild |  27 -----
 sci-electronics/kicad-packages3d/Manifest          |   1 -
 .../kicad-packages3d/kicad-packages3d-5.0.0.ebuild |  21 ----
 sci-electronics/kicad-symbols/Manifest             |   1 -
 .../kicad-symbols/kicad-symbols-5.0.0.ebuild       |  18 ---
 sci-electronics/kicad-templates/Manifest           |   1 -
 .../kicad-templates/kicad-templates-5.0.0.ebuild   |  18 ---
 sci-electronics/kicad/Manifest                     |   1 -
 sci-electronics/kicad/kicad-5.0.0-r1.ebuild        | 133 ---------------------
 13 files changed, 259 deletions(-)