Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775884 - dev-libs/ntl-11.4.4 rm: cannot remove '/var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/libntl.la': No such file or directory when using slibtool
Summary: dev-libs/ntl-11.4.4 rm: cannot remove '/var/tmp/portage/dev-libs/ntl-11.4.4/i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-13 22:21 UTC by Alessandro Barbieri
Modified: 2021-03-16 21:33 UTC (History)
2 users (show)

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


Attachments
ntl-11.4.4:20210313-013144.log (ntl-11.4.4:20210313-013144.log,68.98 KB, text/plain)
2021-03-13 22:22 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2021-03-13 22:21:05 UTC
>>> Install dev-libs/ntl-11.4.4 into /var/tmp/portage/dev-libs/ntl-11.4.4/image
make LIBTOOL=slibtool -j12 -l15 DESTDIR=/var/tmp/portage/dev-libs/ntl-11.4.4/image install 
mkdir -p -m 755 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/include
rm -rf /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/include/NTL
mkdir -m 755 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/include/NTL
cp -p ../include/NTL/*.h /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/include/NTL
chmod -R a+r /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/include/NTL
mkdir -p -m 755 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/share/doc
rm -rf /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/share/doc/NTL
mkdir -m 755 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/share/doc/NTL
cp -p ../doc/*.txt /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/share/doc/NTL
cp -p ../doc/*.html /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/share/doc/NTL
cp -p ../doc/*.gif /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/share/doc/NTL
chmod -R a+r /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/share/doc/NTL
mkdir -p -m 755 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64
slibtool --mode=install cp -p libntl.la /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64 #LSHAR
slibtool: install: cp .libs/libntl.a /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64
slibtool: install: cp -p .libs/libntl.so.43.0.2 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/libntl.so.43.0.2
slibtool: install: ln -s libntl.so.43.0.2 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/libntl.so
slibtool: install: ln -s libntl.so.43.0.2 /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/libntl.so.43
rm: cannot remove '/var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/libntl.la': No such file or directory
 * ERROR: dev-libs/ntl-11.4.4::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 2318:  Called die
 * The specific snippet of code:
 *           rm "${ED}/usr/$(get_libdir)"/libntl.{la,a} || die;
Comment 1 Alessandro Barbieri 2021-03-13 22:22:03 UTC
Created attachment 691251 [details]
ntl-11.4.4:20210313-013144.log

buildlog
Comment 2 orbea 2021-03-16 21:30:08 UTC
This is an ebuild bug.

https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/ntl/ntl-11.4.4.ebuild#n58

slibtool does not install .la files by default and the ebuild should either use find(1) so that only existing files are removed or 'rm -f' so that it doesn't fail when the files are not present.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-16 21:33:08 UTC
The bug has been closed via the following commit(s):

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

commit 5e60c807e905109484bcca17eaba8c46dd58c40d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-16 21:32:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-16 21:32:46 +0000

    dev-libs/ntl: handle removing .la differently
    
    Closes: https://bugs.gentoo.org/775884
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/ntl/ntl-11.4.4.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)