Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gnome-base/librsvg won't update
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
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 180

PostPosted: Tue Sep 06, 2022 2:21 pm    Post subject: gnome-base/librsvg won't update Reply with quote

Hi, for some reason gnome-base/librsvg won't update.

The build log is a bit weird, not like the usual ones: https://gist.github.com/ignamartinoli/c4707c9d8385c31ed3fe67e443fb4896

It says that the package got installed, but when I do emerge -auD @world, I get prompted again, asking to update it.

Does anybody know why does this happens? Or what is making it fail?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31085
Location: here

PostPosted: Tue Sep 06, 2022 2:26 pm    Post subject: Reply with quote

Try to disable ccache.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1889

PostPosted: Tue Sep 06, 2022 2:34 pm    Post subject: Re: gnome-base/librsvg won't update Reply with quote

fedeliallalinea wrote:
Try to disable ccache.


Since when does ccache support rust? And what does it have to do with portage asking to update again?

sicr0 wrote:
Hi, for some reason gnome-base/librsvg won't update.

The build log is a bit weird, not like the usual ones: https://gist.github.com/ignamartinoli/c4707c9d8385c31ed3fe67e443fb4896

It says that the package got installed, but when I do emerge -auD @world, I get prompted again, asking to update it.

Does anybody know why does this happens? Or what is making it fail?


please provide the output of emerge -pvuD @world
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22088

PostPosted: Tue Sep 06, 2022 4:03 pm    Post subject: Reply with quote

The build log says that cargo is trying to access the user's home directory. This is wrong, and it should not do that. My guess is that this is the same problem I tried to get sicr0 to deal with last time: environment variables in the root environment that point to the user's home directory.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1786

PostPosted: Tue Sep 06, 2022 4:39 pm    Post subject: Reply with quote

Hu wrote:
The build log says that cargo is trying to access the user's home directory. This is wrong, and it should not do that. My guess is that this is the same problem I tried to get sicr0 to deal with last time: environment variables in the root environment that point to the user's home directory.


In short, running sudo emerge causes random issues like this.

Best to become root with either 'sudo -i' or 'su -' first to get a clean, root login shell. Then, issue emerge and other maintenance commands as needed
Back to top
View user's profile Send private message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 180

PostPosted: Tue Sep 06, 2022 7:58 pm    Post subject: Reply with quote

I tried it with a root shell but it didn't work.

After removing this environment variables it worked

Code:
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"


Should I report this upstream?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1767

PostPosted: Sat Oct 01, 2022 7:16 am    Post subject: Reply with quote

I've posted an update on the Rust issue after OP pointed me to this thread, see https://bugs.gentoo.org/873802#c6.

TL;DR: The reason the env unsetting stuff we have fails for librsvg is complicated but it should be sorted soon (in at least one of two ways). It'll be fixed when bug 753764 is closed.
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1829

PostPosted: Sun Oct 02, 2022 3:58 pm    Post subject: Reply with quote

grknight wrote:
In short, running sudo emerge causes random issues like this.

Best to become root with either 'sudo -i' or 'su -' first to get a clean, root login shell.
I got burned by this many years ago. I was going nuts trying to figure out why the build of busybox was failing. The issue was that my non-root user had a variable $s set to a directory I currently reference, and I was becoming root using just "su" as apposed to "su -", and that variable was breaking something in a build script. To do most anything as root, it's always best to have the full root ENV for sure.

Tom
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