Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775179 - net-analyzer/snort-2.9.16-r100 rm: cannot remove '/var/tmp/portage/net-analyzer/snort-2.9.16-r100/image/usr/lib64/snort_dynamicengine/libsf_engine.la': No such file or directory when using slibtool
Summary: net-analyzer/snort-2.9.16-r100 rm: cannot remove '/var/tmp/portage/net-analyz...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-10 00:22 UTC by Alessandro Barbieri
Modified: 2021-03-16 21:50 UTC (History)
3 users (show)

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


Attachments
buildlog (snort-2.9.16-r100:20210310-001559.tar.xz,39.49 KB, application/x-xz)
2021-03-10 00:29 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-10 00:22:13 UTC
rm: cannot remove '/var/tmp/portage/net-analyzer/snort-2.9.16-r100/image/usr/lib64/snort_dynamicengine/libsf_engine.la': No such file or directory
 * ERROR: net-analyzer/snort-2.9.16-r100::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 3753:  Called die
 * The specific snippet of code:
 *       rm "${ED}"/usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die;
Comment 1 Alessandro Barbieri 2021-03-10 00:29:57 UTC
Created attachment 690408 [details]
buildlog
Comment 2 orbea 2021-03-16 15:59:24 UTC
This is an ebuild bug.

https://gitweb.gentoo.org/repo/gentoo.git/tree/net-analyzer/snort/snort-2.9.16.ebuild#n157

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:50:59 UTC
The bug has been closed via the following commit(s):

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

commit e9bf9cb3caad389d0908af434eb09b268907c18b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-16 21:45:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-16 21:45:16 +0000

    net-analyzer/snort: forcefully remove .la files
    
    Fixes build with slibtool where they don't exist in the first place.
    
    Closes: https://bugs.gentoo.org/775179
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/snort/snort-2.9.15.1.ebuild    | 6 +++---
 net-analyzer/snort/snort-2.9.16-r100.ebuild | 6 +++---
 net-analyzer/snort/snort-2.9.16.ebuild      | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)