Date: Tue, 27 Sep 2016 17:19:12 +0200 From: Franco Fichtner <franco@lastsummer.de> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Margaret <scratch65535@att.net>, FreeBSD Ports list <ports@freebsd.org> Subject: Re: Pkg doesn't care about conflict Message-ID: <FB47E511-6B33-4AE2-BDC1-29CD55F2866D@lastsummer.de> In-Reply-To: <57EA8AD4.9080706@quip.cz> References: <gdtiubl0dm7tanmv6pfegt72dtlh6f5jfi@4ax.com> <57EA5AB1.4000200@quip.cz> <0kqkubh107mm74h9hlpga2uomesqsfo1e3@4ax.com> <57EA8AD4.9080706@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 27 Sep 2016, at 5:05 PM, Miroslav Lachman <000.fbsd@quip.cz> wrote: >=20 > Margaret wrote on 09/27/2016 14:55: >=20 > [...] >=20 >>> Did you stop pkg in the middle or did you let it go? I think it will >>> show you conflict message and ask you if you would like to deinstall = PHP >>> 7.0 and install 5.6 instead. >>>=20 >>> Miroslav Lachman >>=20 >> I stopped it immediately. >>=20 >> If you're right about it showing a conflct message (my memory >> says you are), I'd think it would be friendlier to print the >> message first, before anything is downloaded. It routinely >> checks versions, so putting out the conflict message immediately, >> even before showing the proposed downloads, shouldn't be hard. >=20 > I think that conflicts are defined in package metadata so pkg don't = know about conflict until package is downloaded. Maybe I am wrong. I = didn't examine pkg internals too deep. There is no concept of conflicts in package metadata. The resolver will figure out if packages conflict at runtime and it may run into conflicts later due to replacing or installing packages that use the same files, different shared libraries and maybe more (IDK). It has occasionally stripped innocent top packages in systems for me. It looks like it doesn't virtually resolve through the whole process but goes ahead with some operations that it later can't roll back and just goes on taking a previous "y" as a base line. Cheers, Franco=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FB47E511-6B33-4AE2-BDC1-29CD55F2866D>