Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge fails because rm tries to delete not existing files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Sat Nov 10, 2012 2:23 pm    Post subject: Emerge fails because rm tries to delete not existing files Reply with quote

I'm trying to add Plymouth support to my Dracut initramfs. When sys-boot/plymouth-0.8.4 is emerged, it compiles fine but when it comes to installation, it fails, with the following error (key line highlighted):
Code:

 * ERROR: sys-boot/plymouth-0.8.4 failed (install phase):
[b] *   rm '/var/tmp/portage/sys-boot/plymouth-0.8.4/image//usr/lib64/plymouth/*.la'[/b]
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 3072:  Called die
 * The specific snippet of code:
 *               rm "${la}" || die "rm '${la}'";
 *

The problem is that it tries to remove files which aren't there. I am not really sure what to do about this. Should I file a bug?


Last edited by Xander314 on Sat Nov 10, 2012 3:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Sat Nov 10, 2012 2:58 pm    Post subject: Reply with quote

Okay I have a temporary solution working now. I just removed the offending invocation of rm from the ebuild file.

I wonder if anyone has any better ideas? If I file a bug report, I assume it's with the Gentoo developers rather than the Plymouth ones since this problem appears to be related to the ebuild process.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sat Nov 10, 2012 4:01 pm    Post subject: Reply with quote

Yes, please file a bug. If the relevant libtool files are never present, then the ebuild should not try to delete them. If they are conditionally present, then it needs either to ignore their absence or to delete them only when they were generated.
Back to top
View user's profile Send private message
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Sat Nov 10, 2012 5:50 pm    Post subject: Reply with quote

Okay. Bug filed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum