Page 1 of 1

Uninstalling gcc-go also uninstalls a lot of unrelated packages

Posted: 29. Mar 2023, 21:19
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.

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

Posted: 30. Mar 2023, 08:11
by djemos
Always, packages removed using sudo spkg -d package_name or removepkg

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

Posted: 30. Mar 2023, 08:26
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.

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

Posted: 30. Mar 2023, 10:15
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!

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

Posted: 31. Mar 2023, 15:15
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!