On 2020-11-06, Jan Stary <hans@stare.cz> wrote:
> sysupgrade just failed because it could not remove
> /usr/local/lib/X11/app-defaults (see log below).
>
> Is it intended that X11 app defaults
> should removed during a sysupgrade?
>
> It is indeed nonempty, namely, it contains
> /usr/local/lib/X11/app-defaults/GV
> as installed by the gv port.
It is supposed to be a symbolic link;
$ ls -l /usr/local/lib/X11/app-defaults
lrwxr-xr-x 1 root wheel 21 Nov 1 00:54 /usr/local/lib/X11/app-defaults -> /etc/X11/app-defaults
in which case it would extract the new symlink over the old one,
resulting in no change.
I suspect that at some point either a previous install was done without
the xshare set, or there was some corruption or excessive cleaning
on /usr/local.
> tar: Unable to remove directory ./usr/local/lib/X11/app-defaults: Directory not empty
> Installation of xshare68.tgz failed. Continue anyway? [no] no
I would fix this by;
mv /usr/local/lib/X11/app-defaults/* /etc/X11/app-defaults/
rmdir /usr/local/lib/X11/app-defaults
ln -s /etc/X11/app-defaults /usr/local/lib/X11/app-defaults
No comments:
Post a Comment