Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
erasing emerge --info installed portage set report [Solved]
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
CaptainBlood
l33t
l33t


Joined: 24 Jan 2010
Posts: 887

PostPosted: Sat May 19, 2018 1:16 pm    Post subject: erasing emerge --info installed portage set report [Solved] Reply with quote

Hi, here
Code:
emerge --info
report 1 user defined set
Code:
...
x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @gcc-toolchain
ACCEPT_KEYWORDS="amd64"
...
How 2 remove this report & avoid its reccurence @ set use?
Thks 4 ur attention.


Last edited by CaptainBlood on Sat May 19, 2018 7:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5117
Location: The Peanut Gallery

PostPosted: Sat May 19, 2018 4:28 pm    Post subject: Reply with quote

It looks like you ran: emerge @gcc-toolchain at some point, which put it in the world file. (Missing out -1 is very common.)

I'd guess: emerge --deselect=y @gcc-toolchain would remove it, but I am not sure whether it also removes set elements.

Check with:
Code:
grep -Fn gcc-toolchain /var/lib/portage/world
If that's empty then I'm wrong about the issue.
If the set does show up, you can just remove the line by hand with nano (or another editor.)

I'd backup the world file, and then either try the deselect, and run a diff; or edit the file by hand. Either way you have a backup in case of mistake.
Back to top
View user's profile Send private message
OldTango
Guru
Guru


Joined: 21 Feb 2004
Posts: 596

PostPosted: Sat May 19, 2018 5:25 pm    Post subject: Reply with quote

steveL wrote:
It looks like you ran: emerge @gcc-toolchain at some point, which put it in the world file. (Missing out -1 is very common.)
I'd be interested to know the answer to this question. When I run
Code:
emerge -pv @gcc-toolchain
I receive the resopnse
Code:
There are no sets to satisfy 'gcc-toolchain'
However that doesn't mean that it didn't exist at some point in time.

Usually when I see "Installed sets: @<???>"portage is referring to sets, configured and installed at /etc/portage/sets/?, typically user sets. So I thought anyway.
Back to top
View user's profile Send private message
CaptainBlood
l33t
l33t


Joined: 24 Jan 2010
Posts: 887

PostPosted: Sat May 19, 2018 7:21 pm    Post subject: Reply with quote

Indeed I'm quite sure I must have run
Code:
emerge @gcc-toolchain
at some point.
/var/lib/portage/world doesn't contain any reference in this respect.
So I'm still wondering where to look for it ...
Code:
cat  /etc/portage/sets/gcc-toolchain | while read line; do quickpkg --include-config y $line ; done
as a safety measure. Now let's pretend to go for it
Code:
emerge -p --deselect=y @gcc-toolchain
>>> Would remove @gcc-toolchain from "world_sets" favorites file...
Code:
emerge  --deselect=y @gcc-toolchain
Now in real life
Code:
emerge --deselect=y @gcc-toolchain
>>> Removing @gcc-toolchain from "world_sets" favorites file...
Code:
echo File size is $(stat -c%s /var/lib/portage/world_sets)
File size is 0
Final checking
Code:
x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
Reference gone indeed!
Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5117
Location: The Peanut Gallery

PostPosted: Sun May 20, 2018 11:02 am    Post subject: Reply with quote

Ah cool, so sets go in /var/lib/portage/world_sets. Good to know, thanks :)
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