Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596036 - sci-libs/lapack-reference-3.6.0 ebuild removes pkgconfig under install stage on non-amd64
Summary: sci-libs/lapack-reference-3.6.0 ebuild removes pkgconfig under install stage ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-03 13:23 UTC by Dmitry Derevyanko
Modified: 2016-10-12 01:45 UTC (History)
1 user (show)

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 Dmitry Derevyanko 2016-10-03 13:23:50 UTC
Line in ebuild:
rm -rf "${ED}"/usr/lib/ || die
removes pkgconfig file and libs.
Without it lapack-reference ebuild installs all needed files.
Comment 1 Matthias Maier gentoo-dev 2016-10-09 03:32:00 UTC
The rm -rf you quote simply cleans up after the ebuild moved all relevant installation files to /usr/lib64/lapack/reference.

Have you selected the appropriate lapack provider via eselect?


lapack-reference installs the following files:

# qlist lapack-reference
[...]
/usr/lib64/lapack/reference/liblapack.so.3.6.0
/usr/lib64/lapack/reference/lapack.pc
/usr/lib64/lapack/reference/liblapack.so.3
/usr/lib64/lapack/reference/liblapack.so


if lapack-reference is chosen as lapack provider the following symlinks are created:

in /usr/lib64 (for amd64):
liblapack.a -> lapack/reference/liblapack.a
liblapack.so -> lapack/reference/liblapack.so
liblapack.so.3 -> lapack/reference/liblapack.so.3

in /usr/lib64/pkgconfig (for amd64):
lapack.pc -> ../lapack/reference/lapack.pc
Comment 2 Dmitry Derevyanko 2016-10-09 08:17:41 UTC
lapack-reference # git diff -u lapack-reference-3.6.0.ebuild
diff --git a/sci-libs/lapack-reference/lapack-reference-3.6.0.ebuild b/sci-libs/lapack-reference/lapack-reference-3.6.0.ebuild
index 273bf10..0369750 100644
--- a/sci-libs/lapack-reference/lapack-reference-3.6.0.ebuild
+++ b/sci-libs/lapack-reference/lapack-reference-3.6.0.ebuild
@@ -72,7 +72,7 @@ src_install() {
        mv "${ED}/usr/$(get_libdir)"/lib* "${ED}/usr/$(get_libdir)/pkgconfig"/* \
                "${ED}/usr/$(get_libdir)/lapack/reference" || die
        rmdir "${ED}/usr/$(get_libdir)/pkgconfig" || die
-       rm -rf "${ED}"/usr/lib/ || die
+       #rm -rf "${ED}"/usr/lib/ || die
 
        eselect lapack add $(get_libdir) "${T}"/eselect.lapack.reference ${ESELECT_PROF}
 }
lapack-reference # ls -l /var/tmp/portage/sci-libs/lapack-reference-3.6.0/image/usr/lib/
total 16K
drwxr-xr-x 3 root root 4.0K Oct  9 11:04 cmake
drwxr-xr-x 3 root root 4.0K Oct  9 11:04 lapack
~ $ qlist lapack-reference
/etc/env.d/lapack/lib/reference
/usr/lib/cmake/lapack-3.6.0/lapack-config-version.cmake
/usr/lib/cmake/lapack-3.6.0/lapack-config.cmake
/usr/lib/cmake/lapack-3.6.0/lapack-targets-gentoo.cmake
/usr/lib/cmake/lapack-3.6.0/lapack-targets.cmake
/usr/lib/lapack/reference/lapack.pc
/usr/lib/lapack/reference/liblapack.so
/usr/lib/lapack/reference/liblapack.so.3
/usr/lib/lapack/reference/liblapack.so.3.6.0
/usr/share/doc/lapack-reference-3.6.0/README.bz2

This will remove all files for x86.

With line after emerge -1 lapack-reference I get this:
~ $ qlist lapack-reference
/etc/env.d/lapack/lib/reference         
/usr/share/doc/lapack-reference-3.6.0/README.bz2
Comment 3 Matthias Maier gentoo-dev 2016-10-12 01:40:50 UTC
> This will remove all files for x86.

Thanks for the pointer. I was blind, will fix.
Comment 4 Matthias Maier gentoo-dev 2016-10-12 01:45:50 UTC
commit 26d97e9632138e5fcfe879ea30bc6b897269d55f
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Tue Oct 11 20:44:55 2016 -0500

    sci-libs/lapack-reference: do not remove /usr/lib, bug #596036
    
    Non non-amd64 systems "$(get_libdir)" might actually be "lib". So do not
    blindly delete this folder.
    
    Package-Manager: portage-2.3.0