On Fri, Apr 01, 2022 at 12:16:58PM -0600, Ashlen wrote:
> Hi, I'm on this snapshot with updated packages:
>
>
> $ sysctl -n kern.version
> OpenBSD 7.1 (GENERIC.MP) #454: Thu Mar 31 09:28:09 MDT 2022
> deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
>
> sysclean(8) from ports recommends to delete
> /usr/X11R6/lib/libX11.so.17.1 and /usr/lib/libutil.so.15.1 but if these
> files are removed, xmonad(1) will fail to start and it quits back to
> xenodm(1) login. These are the relevant messages in ~/.xsession-errors
> (I've seen both cause this).
>
>
> XMonad is recompiling and replacing itself with another XMonad process because the current process is called "xmonad" but the compiled configuration should be called "xmonad-x86_64-openbsd"
> XMonad will use build script at "/home/ashlen/.config/xmonad/build" to recompile.
> XMonad recompiling because a custom build script is being used.
> [2022-04-01|12:07:54]: /home/ashlen/.cache/xmonad/xmonad-x86_64-openbsd is newer than xmonad.hs.
> XMonad recompilation process exited with success!
> ld.so: xmonad-x86_64-openbsd: can't load library 'libX11.so.17.1'
> Killed
>
>
> I should mention that sysclean -p does not report that xmonad(1) needs
> these files, and that sysclean was used without flags here.
sysclean uses ports tree information for reporting libraries removal.
xmonad has X11 and util in WANTLIB (since long time), so sysclean will take care
of the dependences.
the current xmonad-0.17.0p0 package has:
- @wantlib X11.18.0
- @wantlib util.16.0
so xmonad package doesn't need libX11.so.17.1 neither libutil.so.15.1, so
sysclean reports them as not need by currently installed packages.
here, sysclean worked as advertised:
sysclean compares a reference root directory against the currently
installed files, taking files from both the base system and packages into
account.
now, going back to the problem. the port doesn't need these libraries, but you
have a *locally build* binary (~/.cache/xmonad/xmonad-x86_64-openbsd) which need
them.
I am unsure how xmonad itself work. if I recall well, the configuration is done
at compile time. so I assume it needs recompilation at some point, specially
after updating xmonad package (and potentially before removing unused
libraries).
how do you recompile it ? your mail mentions ~/.config/xmonad/build. it is a
binary ? a script ? do you made it or it is a 'part' of xmonad ?
Thanks.
--
Sebastien Marie
No comments:
Post a Comment