Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 775179

Summary: 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
Product: Gentoo Linux Reporter: Alessandro Barbieri <lssndrbarbieri>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: netmon, orbea, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 765709    
Attachments: buildlog

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