Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564678 - dev-cpp/tbb-4.3.20150611: USE=debug does not install debug libraries
Summary: dev-cpp/tbb-4.3.20150611: USE=debug does not install debug libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-02 03:21 UTC by Konstantin (elxa)
Modified: 2015-11-08 17:48 UTC (History)
1 user (show)

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


Attachments
sci-libs/opencascade-6.9.0 build.log from cnnx (irc) (opencascade-6.9.0_build.log.gz,29.67 KB, application/gzip)
2015-11-02 03:23 UTC, Konstantin (elxa)
Details
Patch install function to respect USE=debug and install the debug libs (tbb-4.3.20150611_install_debug_libs.patch,785 bytes, patch)
2015-11-02 03:25 UTC, Konstantin (elxa)
Details | Diff
tbb-4.3.20150611.ebuild with the patch applied and renamed to tbb-4.3.20150611-r1.ebuild (tbb-4.3.20150611-r1.ebuild,3.22 KB, text/plain)
2015-11-02 03:27 UTC, Konstantin (elxa)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin (elxa) 2015-11-02 03:21:50 UTC
While src_prepare checks for USE=debug, multilib_src_install does not. The latter only installs the release build. I fiddled with the ebuild and came up with a solution that worked for me, see attachments.

Before the patches to the build:

qlist tbb | grep debug (returns nothing)

After the patches to the ebuild:

qlist tbb | grep debug
/usr/lib64/libtbbmalloc_proxy_debug.so
/usr/lib64/libtbbmalloc_debug.so
/usr/lib64/libtbb_debug.so
/usr/lib64/libtbbmalloc_proxy_debug.so.2
/usr/lib64/libtbbmalloc_debug.so.2
/usr/lib64/libtbb_debug.so.2

I came accross this issue because cnnx from #gentoo was trying to build sci-libs/opencascade-6.9.0 (build.log attached), which failed with

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltbb_debug
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltbbmalloc_debug

Reproducible: Always
Comment 1 Konstantin (elxa) 2015-11-02 03:23:11 UTC
Created attachment 415920 [details]
sci-libs/opencascade-6.9.0 build.log from cnnx (irc)
Comment 2 Konstantin (elxa) 2015-11-02 03:25:31 UTC
Created attachment 415922 [details, diff]
Patch install function to respect USE=debug and install the debug libs
Comment 3 Konstantin (elxa) 2015-11-02 03:27:47 UTC
Created attachment 415924 [details]
tbb-4.3.20150611.ebuild with the patch applied and renamed to tbb-4.3.20150611-r1.ebuild
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2015-11-08 16:22:24 UTC
Thanks for the patch. Would you like to send a PR on Github or should I take it from here?
Comment 5 Konstantin (elxa) 2015-11-08 17:25:33 UTC
Please take it, thanks.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2015-11-08 17:48:00 UTC
commit ccb7ff1a98f902c510ba58052a0ad428384224f0
Author: Justin Lecher <jlec@gentoo.org>
Date:   Sun Nov 8 18:47:33 2015 +0100

    dev-cpp/tbb: Properly install debug libs

    thanks Konstantin (elxa) for the patch

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=564678

    Package-Manager: portage-2.2.23
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

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