On 2019-11-02, Theodore Wynnychenko <[email protected]> wrote: > I decided to just try updating gettext, so (this is the full output on that > system):
Well, that's the problem. Partial updates work sometimes but they can't be relied upon, in particular won't work around some types of restructuring changes as happened to the gettext port. > After staring at this for a while, I started to wonder (because it had been > a while since I last updated...) if the fact that "gettext" is now listed as > "getttext-runtime" (I guess this is just a "flavor," right?, but the change > was something I noticed) could be an issue. Flavours are after the version number (mutt-1.12.2v3-gpgme: this is the "gpgme" flavour of mutt). gettext was split into multiple parts (runtime, tools, and libtextstyle) in separate packages and there is no more package just named "gettext". Say you have A+B installed and want to update them, both use gettext. A(old)+B(old) depend on gettext; A(new)+B(new) depend on gettext-runtime. gettext and gettext-runtime contain same files so can't be installed together. Therefore you can't update A(old) to A(new) without also updating B(old) to B(new). Not that this is necessary to know in this case - just remember that after updating base, you need to run pkg_add -u to update all packages. Maybe add -Dsnap if the conditions require it, and flags like -V/-i are ok, but the other pkg_add -D flags are for special cases only, usually just for ports developers. > I then looked at the pkg_info for one of the "don't match" packages on my > system, and compared them to the new/current packages. > > So, for a local problem package I saw (in the depend list): > @depend devel/gettext:gettext-*:gettext-0.19.8.1p3 > > When I looked at the -current package I saw: > @depend devel/gettext,-runtime:gettext-runtime-*:gettext-runtime-0.20.1p0 > > Now, I really have little idea of what this means, or what I am doing, but I > decided I would just manually "fix" the @depend line in my local > "/var/db/pkg/[package]/+CONTENTS" to the "new" line (with > "gettext-runtime-0.20.1p0" in it). That probably didn't cause any big problems in this case, but I just want to make sure that it's showing in the thread for the list archives: don't do that :-) > I did that for all the "don't match" conflict packages, then re-ran "pkg_add > -vui -Dsnap" (although, I now understand the need or lack thereof for > "-Dsnap" better - thanks) and the package update completed without any real > issues. Specifically, gettext and all the "don't match" packages were > updated to the -current packages available yesterday. > > As I said, I have little idea of what I am doing, but this (at least for the > last 30 hours) seems to have worked and the system appears to be "stable" > (and, once again, -current). I would suggest running pkg_check now for a sanity check of the package database.

