Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638526 - dev-cpp/tbb-2017.20170226 does not install correctly on Mac OSX because of hard-coded ".so" extension
Summary: dev-cpp/tbb-2017.20170226 does not install correctly on Mac OSX because of ha...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-22 22:25 UTC by Anton
Modified: 2017-12-29 13:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton 2017-11-22 22:25:18 UTC
TL;DR: Line 120 of tbb-2017.20170226.ebuild says:
		for l in $(find . -name lib\*.so.\*); do
and it should probably be:
		for l in $(find . -name lib\*${libname}.\*); do


Observed behavior: emerge -1 tbb completes successfully, but no library files are installed in ${EPREFIX}/usr/lib

Correct behavior: libtbb.dylib, libtbbmalloc.dylib, and libtbbmalloc_proxy.dylib are installed into ${EPREFIX}/usr/lib

Testing done: emerging a dependent package sci-biology/flexbar from the science overlay. With the original version of tbb ebuild, the compilation of flexbar would fail with at the link phase, complaining that -ltbb could not be found; with the corrected as above version of tbb ebuild, the compilation of flexbar completes successfully.

Note: the "corrected" version also installs symlinks:
 ${EPREFIX}/usr/lib/libtbb -> libtbb.dylib
 ${EPREFIX}/usr/lib/libtbbmalloc -> libtbbmalloc.dylib
 ${EPREFIX}/usr/lib/libtbbmalloc_proxy -> libtbbmalloc_proxy.dylib
I'm not sure that's intended, but does not seem to hurt either.
Comment 1 Larry the Git Cow gentoo-dev 2017-12-29 13:35:09 UTC
The bug has been closed via the following commit(s):

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

commit 5bfd22c5b483ee6b15d3dfba66b6a8256d7c415e
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2017-12-29 13:34:53 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2017-12-29 13:34:53 +0000

    dev-cpp/tbb: use get_libname to deal with the right files, bug #638526
    
    Thanks Anton for the suggestion.
    
    Closes: https://bugs.gentoo.org/638526
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-cpp/tbb/tbb-2017.20170226.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)