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/': 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...
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
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: ---

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

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 /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/ /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/
slibtool: install: ln -s /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/
slibtool: install: ln -s /var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/
rm: cannot remove '/var/tmp/portage/dev-libs/ntl-11.4.4/image/usr/lib64/': No such file or directory
 * ERROR: dev-libs/ntl-11.4.4::gentoo failed (install phase):
 *   (no error message)
 * Call stack:
 *, 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]

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

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):

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

    dev-libs/ntl: handle removing .la differently
    Signed-off-by: Sam James <>

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