Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629292 - media-gfx/freecad-9999 src_configure() needs to set variables to /usr/share/... not share/....
Summary: media-gfx/freecad-9999 src_configure() needs to set variables to /usr/share/....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-29 14:32 UTC by smellyfis
Modified: 2017-12-30 00:16 UTC (History)
1 user (show)

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


Attachments
ebuild with working paths (freecad-9999.ebuild,3.45 KB, text/plain)
2017-11-10 20:35 UTC, Jack MacNaught
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smellyfis 2017-08-29 14:32:54 UTC
When building the current freecad-9999 it tries to install things in <sandbox>/<sandbox>/share where as it should install in <sandbox>/usr/share. This causes src_install() to fail on line 111: pushd "${ED%/}"/usr/share/${P} || die

to fix change the following lines to(inside src_configure):
line 84:        -DCMAKE_INSTALL_DATADIR=/usr/share/${P}
line 85:        -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
line 86:        -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/${P}





Reproducible: Always

Steps to Reproduce:
1.emerge =media-gfx/freecad-9999
2.????
3.failure



if already mid install I fixed by:
rm /var/tmp/portage/media-gfx/freecad-9999/.{configure,compile}
vi var/tmp/portage/media-gfx/freecad-9999/temp/environment
    - change the line for mycmakeargs (for me ~line 4863) to match the suggested changes to the ebuild
ebuild <path_to_ebuild> merge
Comment 1 Jack MacNaught 2017-11-10 20:35:32 UTC
Created attachment 503514 [details]
ebuild with working paths
Comment 2 Jack MacNaught 2017-11-10 20:36:41 UTC
Had the same issue, changed paths in the ebuild as suggested above allowed Freecad to install successfully
Comment 3 Andreas Sturmlechner gentoo-dev 2017-11-14 20:26:59 UTC
Please attach unified diffs when you make changes to ebuilds, so they can be reviewed easily. Yes, we can compare ebuilds after downloading, but that quickly escalates when you consider the huge amount of packages per dev.
Comment 4 Andreas Sturmlechner gentoo-dev 2017-12-30 00:16:22 UTC
Fixed by fordfrog in commit a6ae8d1452396e5c06820e26565d1a1b5ccec6e3