Uninstalling gcc-go also uninstalls a lot of unrelated packages

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Papasot
Donor
Posts: 247
Joined: 3. May 2015, 18:37
Location: Patras, Greece

Uninstalling gcc-go also uninstalls a lot of unrelated packages

Post by Papasot »

I temporarily installed gcc-go (I'm not interested in golang, I just wanted to try something). When I tried to uninstall gcc-go, many packages (gcc, gcc-gfortran, LMMS and many others) were also marked for uninstall. Those packages are installed in the system long before gcc-go, and they are clearly not depended on it. I used them extensively without gcc-go installed and without any issue since 15.0 released.

The system just thinks gcc-go is required for gcc itself, and since many packages are depended on gcc, they are depended on gcc-go as well (see, e.g., the record for gcc-11.2.0-x86_64-2.txz here; it includes gcc-go as "required", which is not correct). If I didn't install gcc-go then uninstall it, I would never realize the problem. I uninstalled gcc-go with removepkg gcc-go since slapt-get won't let me do it without uninstalling a ton of unrelated packages, but I think this should be fixed as it may confuse some users.
A pleasant detail in this forum: several people pick a picture of their pet as their avatar. Who am I to do otherwise? ;-)
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Uninstalling gcc-go also uninstalls a lot of unrelated packages

Post by djemos »

Always, packages removed using sudo spkg -d package_name or removepkg
User avatar
Papasot
Donor
Posts: 247
Joined: 3. May 2015, 18:37
Location: Patras, Greece

Re: Uninstalling gcc-go also uninstalls a lot of unrelated packages

Post by Papasot »

djemos wrote: 30. Mar 2023, 08:11 Always, packages removed using sudo spkg -d package_name or removepkg
That's what I did, but I still don't understand why gcc itself (which is the base GCC with just the C compiler) has gcc-go as "required". It doesn't make any sense.
A pleasant detail in this forum: several people pick a picture of their pet as their avatar. Who am I to do otherwise? ;-)
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: Uninstalling gcc-go also uninstalls a lot of unrelated packages

Post by gapan »

Yeah, the dependency was there because something in the gcc package actually depends on gcc-go. It's the /usr/libexec/gcc/x86_64-slackware-linux/11.2.0/test2json file. But gcc-go is not really needed for anything else in the gcc package. I've now removed the dependency. Thanks for noticing!
Image
Image
User avatar
Papasot
Donor
Posts: 247
Joined: 3. May 2015, 18:37
Location: Patras, Greece

Re: Uninstalling gcc-go also uninstalls a lot of unrelated packages

Post by Papasot »

The repository mirror I am using was updated today and indeed, uninstalling gcc-go (with slapt-get or Gslapt) just uninstalls gcc-go now - and nothing else. Thank you George!
A pleasant detail in this forum: several people pick a picture of their pet as their avatar. Who am I to do otherwise? ;-)
Post Reply