I get errors like the following when using motif-config to switch between lesstif and openmotif and vica-versa: rm: cannot remove `/usr/lib/X11': Is a directory ln: `/usr/lib/X11/X11': File exists Here's a log of whats going on: aconite ~ # motif-config -l [1] lesstif [2] openmotif-2.2 * aconite ~ # ls -al /usr/lib/libXm.* /usr/lib/X11/X11 ls: /usr/lib/X11/X11: No such file or directory lrwxrwxrwx 1 root root 30 Mar 1 17:38 /usr/lib/libXm.a -> /usr/lib/openmotif-2.2/libXm.a lrwxrwxrwx 1 root root 31 Mar 1 17:38 /usr/lib/libXm.la -> /usr/lib/openmotif-2.2/libXm.la lrwxrwxrwx 1 root root 31 Mar 1 17:38 /usr/lib/libXm.so -> /usr/lib/openmotif-2.2/libXm.so lrwxrwxrwx 1 root root 33 Mar 1 17:38 /usr/lib/libXm.so.3 -> /usr/lib/openmotif-2.2/libXm.so.3 lrwxrwxrwx 1 root root 37 Mar 1 17:38 /usr/lib/libXm.so.3.0.2 -> /usr/lib/openmotif-2.2/libXm.so.3.0.2 aconite ~ # motif-config -s lesstif * /usr/bin/motif-config: New default Profile is: lesstif aconite ~ # ls -al /usr/lib/libXm.* /usr/lib/X11/X11 lrwxrwxrwx 1 root root 20 Mar 1 17:39 /usr/lib/X11/X11 -> /usr/lib/lesstif/X11 lrwxrwxrwx 1 root root 25 Mar 1 17:39 /usr/lib/libXm.la -> /usr/lib/lesstif/libXm.la lrwxrwxrwx 1 root root 25 Mar 1 17:39 /usr/lib/libXm.so -> /usr/lib/lesstif/libXm.so lrwxrwxrwx 1 root root 27 Mar 1 17:39 /usr/lib/libXm.so.2 -> /usr/lib/lesstif/libXm.so.2 lrwxrwxrwx 1 root root 31 Mar 1 17:39 /usr/lib/libXm.so.2.0.1 -> /usr/lib/lesstif/libXm.so.2.0.1 aconite ~ # motif-config -s lesstif rm: cannot remove `/usr/lib/X11': Is a directory ln: `/usr/lib/X11/X11': File exists * /usr/bin/motif-config: New default Profile is: lesstif aconite ~ # ls -al /usr/lib/libXm.* /usr/lib/X11/X11 lrwxrwxrwx 1 root root 20 Mar 1 17:39 /usr/lib/X11/X11 -> /usr/lib/lesstif/X11 lrwxrwxrwx 1 root root 25 Mar 1 17:39 /usr/lib/libXm.la -> /usr/lib/lesstif/libXm.la lrwxrwxrwx 1 root root 25 Mar 1 17:39 /usr/lib/libXm.so -> /usr/lib/lesstif/libXm.so lrwxrwxrwx 1 root root 27 Mar 1 17:39 /usr/lib/libXm.so.2 -> /usr/lib/lesstif/libXm.so.2 lrwxrwxrwx 1 root root 31 Mar 1 17:39 /usr/lib/libXm.so.2.0.1 -> /usr/lib/lesstif/libXm.so.2.0.1 aconite ~ # aconite ~ # motif-config -s openmotif-2.2 rm: cannot remove `/usr/lib/X11': Is a directory * /usr/bin/motif-config: New default Profile is: openmotif-2.2 aconite ~ # ls -al /usr/lib/libXm.* /usr/lib/X11/X11 lrwxrwxrwx 1 root root 20 Mar 1 17:39 /usr/lib/X11/X11 -> /usr/lib/lesstif/X11 lrwxrwxrwx 1 root root 30 Mar 1 17:40 /usr/lib/libXm.a -> /usr/lib/openmotif-2.2/libXm.a lrwxrwxrwx 1 root root 31 Mar 1 17:40 /usr/lib/libXm.la -> /usr/lib/openmotif-2.2/libXm.la lrwxrwxrwx 1 root root 31 Mar 1 17:40 /usr/lib/libXm.so -> /usr/lib/openmotif-2.2/libXm.so lrwxrwxrwx 1 root root 33 Mar 1 17:40 /usr/lib/libXm.so.3 -> /usr/lib/openmotif-2.2/libXm.so.3 lrwxrwxrwx 1 root root 37 Mar 1 17:40 /usr/lib/libXm.so.3.0.2 -> /usr/lib/openmotif-2.2/libXm.so.3.0.2 If I manually delete the symlink /usr/lib/X11/X11 than everything is happy until I switch to lesstif again, then the process starts over. System is mostly ~x86 and I unmerged openmotif 2.2.3-r1 earlier today (because its SLOT=0) and then emerged both openmotif and then lesstif. Versions are: [ebuild R ] x11-libs/motif-config-0.2-r1 0 kB [ebuild R ] x11-libs/lesstif-0.94.0-r1 -debug 0 kB [ebuild R ] x11-libs/openmotif-2.2.3-r2 -debug 0 kB Another thing I noticed is that lesstif and openmotif install different verisons of libXm.so thus programs like xpdf are built linked to one and if motif-config is used to switch then running xpdf results in linking errors (cannot find libXm.so.3). I don't know if this is another bug or not.
ls -l /usr/lib/lesstif try to remerge lesstif again
Will try remerging lesstif. $ ls -lR /usr/lib/lesstif/ /usr/lib/lesstif/: total 1564 drwxr-xr-x 4 root root 4096 Mar 1 17:05 X11 -rwxr-xr-x 1 root root 847 Mar 1 17:05 libDtPrint.la lrwxrwxrwx 1 root root 19 Mar 1 17:05 libDtPrint.so -> libDtPrint.so.1.0.0 lrwxrwxrwx 1 root root 19 Mar 1 17:05 libDtPrint.so.1 -> libDtPrint.so.1.0.0 -rwxr-xr-x 1 root root 27552 Mar 1 17:05 libDtPrint.so.1.0.0 -rwxr-xr-x 1 root root 823 Mar 1 17:05 libMrm.la lrwxrwxrwx 1 root root 15 Mar 1 17:05 libMrm.so -> libMrm.so.2.0.1 lrwxrwxrwx 1 root root 15 Mar 1 17:05 libMrm.so.2 -> libMrm.so.2.0.1 -rwxr-xr-x 1 root root 71352 Mar 1 17:05 libMrm.so.2.0.1 -rwxr-xr-x 1 root root 823 Mar 1 17:05 libUil.la lrwxrwxrwx 1 root root 15 Mar 1 17:05 libUil.so -> libUil.so.2.0.1 lrwxrwxrwx 1 root root 15 Mar 1 17:05 libUil.so.2 -> libUil.so.2.0.1 -rwxr-xr-x 1 root root 77120 Mar 1 17:05 libUil.so.2.0.1 -rwxr-xr-x 1 root root 799 Mar 1 17:05 libXm.la lrwxrwxrwx 1 root root 14 Mar 1 17:05 libXm.so -> libXm.so.2.0.1 lrwxrwxrwx 1 root root 14 Mar 1 17:05 libXm.so.2 -> libXm.so.2.0.1 -rwxr-xr-x 1 root root 1387200 Mar 1 17:05 libXm.so.2.0.1 /usr/lib/lesstif/X11: total 8 drwxr-xr-x 2 root root 4096 Mar 1 17:05 app-defaults drwxr-xr-x 2 root root 4096 Mar 1 17:05 mwm /usr/lib/lesstif/X11/app-defaults: total 12 -rw-r--r-- 1 root root 8785 Mar 1 17:05 Mwm /usr/lib/lesstif/X11/mwm: total 16 -rw-r--r-- 1 root root 4370 Mar 1 17:05 README -rw-r--r-- 1 root root 34 Mar 1 17:05 alt.map -rw-r--r-- 1 root root 2964 Mar 1 17:05 system.mwmrc
Now using [ebuild R ] x11-libs/motif-config-0.3 0 kB [ebuild R ] x11-libs/openmotif-2.2.3-r4 -debug 0 kB [ebuild R ] x11-libs/lesstif-0.94.0-r4 -debug 0 kB I unmerged the previous versions. Then "emerge openmotif lessitf". When I typed motif-config for the first time, neither entry had a * by it. I think tried: $ motif-config -s lesstif-2.1 ln: `/usr/lib/libDtPrint.la': File exists ln: `/usr/lib/libDtPrint.so': File exists ln: `/usr/include/Dt': File exists ln: `/usr/share/man/man5/VirtualBindings.5.gz': File exists ln: `/usr/share/man/man5/mwmrc.5.gz': File exists ln: `/usr/share/man/man1/lesstif.1.gz': File exists ln: `/usr/share/man/man1/ltversion.1.gz': File exists ln: `/usr/share/man/man3/XmSash.3.gz': File exists ln: `/usr/share/man/man3/XmWorld.3.gz': File exists ln: `/usr/share/man/man3/Rect.3.gz': File exists ln: `/usr/share/man/man3/XmClipboard.3.gz': File exists ln: `/usr/share/man/man3/XmDesktop.3.gz': File exists ln: `/usr/share/man/man3/WmShell.3.gz': File exists ln: `/usr/share/man/man3/XmGrabShell.3.gz': File exists ln: `/usr/share/man/man3/XmProtocol.3.gz': File exists ln: `/usr/share/man/man3/UnNamedObj.3.gz': File exists ln: `/usr/share/man/man3/XmDialogShellExt.3.gz': File exists ln: `/usr/share/man/man3/XmDropSiteManager.3.gz': File exists ln: `/usr/share/man/man3/XmTearOffButton.3.gz': File exists ln: `/usr/share/man/man3/XmVendorShell.3.gz': File exists ln: `/usr/share/man/man3/LessTifInternals.3.gz': File exists ln: `/usr/share/man/man3/XmDragOverShell.3.gz': File exists * /usr/bin/motif-config: New default Profile is: lesstif-2.1 $ motif-config -s openmotif-2.2 * /usr/bin/motif-config: New default Profile is: openmotif-2.2 $ motif-config -s lesstif-2.1 * /usr/bin/motif-config: New default Profile is: lesstif-2.1 $ motif-config -s lesstif-2.1 * /usr/bin/motif-config: New default Profile is: lesstif-2.1 $ motif-config -s openmotif-2.2 * /usr/bin/motif-config: New default Profile is: openmotif-2.2 I never got those ln warnings again... Reemerged lesstif, still now warnings when using motif-config. Anyway, it certainly seems better than the earlier versions (not X11 in /usr/lib/lesstif anymore anyway!).
so you don't get any warnings anymore, whatever you do, right?
Thats correct just the ln: file exists messages. However, as I mentioned, there doesn't seem to be a motif setup after a fresh install. I also noticed that in this case, building xpdf doesn't built the stuff that depends on motif (i.e. the xpdf program). After doing a motif-config -s to either lesstif or openmotif, xpdf builds properly. Will double check this again later today, but I would say there are still some problems on the initial install of lesstif.
you shouldn't get this file-exists messages. please try to emerge lesstif once again, whats the output of "equery files lesstif" now?
Created attachment 52624 [details] equery files lesstif I unmerged openmotif, lesstif and motif-config. Then reemerged: no more errors. Seems like this can be closed. I attached the output of equery files lesstif in case its still relevant.
Closing