slapt-src doesn't detect package conflicts

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

slapt-src doesn't detect package conflicts

Post by GJones »

Today I installed the dump package via slapt-src, and discovered to my consternation that it overwrote an existing binary (/usr/bin/restore). Does spkg have any way of detecting conflicts like this, so that stuff from SBO doesn't make a mess of my system?
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: slapt-src doesn't detect package conflicts

Post by gapan »

No. spkg has nothing like that and it shouldn't. Packages having common files are very usual and having common files is not a conflict by itself. You should just make sure you read the README before installing anything from SBo. In this case it clearly says:
CONFLICT: The restore application conflicts with the tar package.

On installing this dump package "/usr/sbin/restore" will be overwritten.

Should you remove the dump package, you may note that this file will not be
deleted because it is "shared" with the tar package. You may opt to reinstall
the stock tar package after uninstalling the dump package.
Image
Image
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: slapt-src doesn't detect package conflicts

Post by thenktor »

GJones wrote:Does spkg have any way of detecting conflicts like this
Features like this usually make me hate rpm based distributions. They are bugging me much too often about dependencies, conflicts, ... ;)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: slapt-src doesn't detect package conflicts

Post by mimosa »

So in a situation like this, what is the best way to go about it? Just go ahead and install? What about if you decide to remove the package later? Just go ahead and remove, ignoring any complaints? Will there even be any, taking this particular case as an example?

I can't recall anything like this happening to me, but it's bound to one day :mrgreen:
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: slapt-src doesn't detect package conflicts

Post by gapan »

In this case, if you remove the dump package, just reinstall the tar package as it says in the README.
Image
Image
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Re: slapt-src doesn't detect package conflicts

Post by GJones »

Ah... I guess I'll have to get used to reading the READMEs for Slackbuilds. Probably a good habit anyway. :D
Post Reply