Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21681 - openmotif-2.2.2-r1: demos are installed, but are unusable (missing libMrm)
Summary: openmotif-2.2.2-r1: demos are installed, but are unusable (missing libMrm)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-25 15:15 UTC by Phil Richards
Modified: 2003-06-06 15:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
updated ebuild (openmotif-2.2.2-r2.ebuild,5.41 KB, text/plain)
2003-06-05 17:36 UTC, bartron
Details
required patch (mwm-configdir.patch,1.51 KB, patch)
2003-06-05 17:39 UTC, bartron
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Richards 2003-05-25 15:15:55 UTC
fileview is installed as part of openmotif-2.2.2-r1.

This is what I get when I run it:

$ /usr/X11R6/bin/fileview
/usr/X11R6/bin/fileview: error while loading shared libraries: libMrm.so.3:
cannot open shared object file: No such file or directory

It's true - there is no libMrm installed.

It must have existed during the build process otherwise
it would have failed at that stage.  Since it isn't installed, this
suggests that it is built by openmotif-2.2.2-r1 - and checking the
source, this *is* the case.

Either, the demos (of which fileview is one) shouldn't be installed,
or libMrm should be.

(I should point out that I don't actually want to use the
program - I'm just trying to make my revdep-rebuild output clean:

Checking dynamic linking consistency...
  broken /usr/X11R6/bin/xmanimate (requires libMrm.so.3)
  broken /usr/X11R6/bin/fileview (requires libMrm.so.3)
  broken /usr/X11R6/bin/hellomotif (requires libMrm.so.3)
  broken /usr/X11R6/bin/periodic (requires libMrm.so.3)
  broken /usr/X11R6/bin/helloint (requires libMrm.so.3)
  broken /usr/X11R6/bin/uil (requires libMrm.so.3)

All of these programs are "owned" by openmotif.)

(My openmotif build was performed immediately before this check...)
Comment 1 Patrick Lynch 2003-06-03 11:50:14 UTC
I have the same problem too. I think anybody with openmotif 2.2 will have this 
issue. 
 
It also creates non-fatal errors when running prelink(missing libMrm). 
 
Installing openmotif 2.1.30 fixes the problem. And I think most packages are happy 
with that version. 
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-05 09:04:09 UTC
investigating
Comment 3 bartron 2003-06-05 17:34:08 UTC
  The missing libMrm is a problem with the included libtool which 
doesn't work with DESTDIR != "/".

  What happens here is, libMrm, as well as libUil, is linked 
twice; once during `make' against libXm in the source tree 
(succeeds) and again in `make install' against 
`/usr/X11R6/lib/libXm' (fails because -lXm is still in 
`${D}/usr/X11R6/lib', but the Makefiles for some reason ignore
these errors).  Thus, libMrm is around at the time the demos 
are built, but is gone after `make install'.  To add to 
the confusion, when remerging openmotif, the linker will 
pick up the already installed copy of -lXm, linking succeeds, 
libUil and libMrm are there...

...so the easiest fix is to just reemerge...

I've created a new ebuild with the following additions:
* fixed the libtool issue
* dropped the demo programs; most of them won't work correctly 
  even if libMrm is there because of missing app-defaults 
  and/or .uid files. 
  The other big distros don't install the demos either.
* fixed location of Mwm configuration file (FHS compliance)
* added Mwm app-defaults file.
* compress man pages.
* added missing docfiles in /usr/share/doc
Comment 4 bartron 2003-06-05 17:36:41 UTC
Created attachment 12854 [details]
updated ebuild
Comment 5 bartron 2003-06-05 17:39:08 UTC
Created attachment 12855 [details, diff]
required patch
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-06 15:57:42 UTC
hi, your ebuild was great.  The few things I changed: inherit the libtool eclass and run elibtoolize instead.  Also, the app-defaults file is just placed into ${FILESDIR} and newins'd.  Thanks a bunch for that, bartron.