Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629052 - dev-libs/opencl-clhpp-2.0.10::science - wrong install location
Summary: dev-libs/opencl-clhpp-2.0.10::science - wrong install location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2017-08-27 12:00 UTC by Ilja ”Zucca” Sara
Modified: 2020-03-16 17:39 UTC (History)
3 users (show)

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


Attachments
-r1 ebuild (opencl-clhpp-2.0.10-r1.ebuild,643 bytes, text/plain)
2017-08-27 12:00 UTC, Ilja ”Zucca” Sara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilja ”Zucca” Sara 2017-08-27 12:00:01 UTC
Created attachment 490862 [details]
-r1 ebuild

Hi.
It seems that dev-libs/opencl-clhpp-2.0.10::science needs a custom src_install() at it installs headers in /usr/CL rather than in /usr/include/CL.

$ equery f opencl-clhpp
 * Searching for opencl-clhpp ...
 * Contents of dev-libs/opencl-clhpp-2.0.10:
/usr
/usr/CL
/usr/CL/cl.hpp
/usr/CL/cl2.hpp
/usr/share
/usr/share/doc
/usr/share/doc/opencl-clhpp-2.0.10
/usr/share/doc/opencl-clhpp-2.0.10/README.txt.bz2

I don't know much about c++ or cmake build systems, but with little a searching I managed to work out the problem by adding one line to src_configure():

src_configure() {
        local mycmakeargs=(
                -DCMAKE_INSTALL_PREFIX="/usr/include"
                -DBUILD_DOCS=OFF
                -DBUILD_EXAMPLES=OFF
                -DBUILD_TESTS=OFF
        )
        cmake-utils_src_configure
}

The whole ebuild attached to this message.

I hope that is all.
Comment 1 Ilja ”Zucca” Sara 2017-08-27 12:13:48 UTC
Oops. Wrong title. Should have been: [science-overlay] dev-libs/opencl-clhpp-2.0.10: Wrong install path

Anyways. I created an issue also on github: https://github.com/gentoo/sci/issues/808

For future reports... Which one is the preferred way?
Comment 2 Matt Turner gentoo-dev 2020-03-13 19:15:25 UTC
This package should be removed from the science overlay if it's still there. dev-util/clhpp has been in the tree for a while.
Comment 3 Larry the Git Cow gentoo-dev 2020-03-16 00:31:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/sci.git/commit/?id=b631136324c895af14944a58564eefc92d5d30bc

commit b631136324c895af14944a58564eefc92d5d30bc
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2020-03-16 00:29:27 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2020-03-16 00:31:18 +0000

    dev-libs/opencl-clhpp: migrated to gentoo repo as clhpp.
    
    Reported-By: Ilja ”Zucca” Sara
    Closes: https://bugs.gentoo.org/629052
    Closes: https://github.com/gentoo/sci/issues/808
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 dev-libs/opencl-clhpp/Manifest                   |  1 -
 dev-libs/opencl-clhpp/metadata.xml               | 15 -------------
 dev-libs/opencl-clhpp/opencl-clhpp-2.0.10.ebuild | 28 ------------------------
 3 files changed, 44 deletions(-)
Comment 4 Ilja ”Zucca” Sara 2020-03-16 17:39:38 UTC
Thanks. :)
I can now remove the package in question from my overlay.