Bug #13180
closedRemove printmgr, as it doesn't work with any current java
100%
Description
If you try and run printmgr, it appears to have been broken for a while. You get:
$ printmgr
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/sadm/admin/printmgr/lib/libpmgr.so.1: ld.so.1: java: fatal: /usr/sadm/admin/printmgr/lib/libpmgr.so.1: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1124)
at com.sun.admin.pm.server.DoPrinterNS.<clinit>(DoPrinterNS.java:54)
at com.sun.admin.pm.server.NameService.checkAuth(NameService.java:137)
at com.sun.admin.pm.client.pmTop.pmTopInit(pmTop.java:147)
at com.sun.admin.pm.client.pmTop.<init>(pmTop.java:120)
at com.sun.admin.pm.client.pmTop.main(pmTop.java:1264)
All current supported JVMs are 64-bit (8 or 11), so the jni library (libpmgr.so.1) needs to be 64-bit as well.
Updated by Joshua M. Clulow about 3 years ago
My vote would be for removing this stuff, to be honest, given it hasn't been working for ages and nobody has noticed. The future of printing feels like it is probably just CUPS?
Updated by Peter Tribble about 3 years ago
Joshua M. Clulow wrote:
My vote would be for removing this stuff, to be honest, given it hasn't been working for ages and nobody has noticed. The future of printing feels like it is probably just CUPS?
Well, sure. But that would apply to the whole of the legacy print system, not just printmgr. Either way, we should kill it or fix it, not ship something that can't possibly run.
Updated by Joshua M. Clulow about 3 years ago
Forgive my ignorance here, but is printmgr a Swing GUI for managing the legacy print stuff on a workstation? I used the Solaris print stuff a lot for years and never touched it. It feels like it's an optional part of the printing bits, and we could delete it without having to make that larger decision at the same time. Does that make sense?
Updated by Toomas Soome about 3 years ago
Joshua M. Clulow wrote:
Forgive my ignorance here, but is printmgr a Swing GUI for managing the legacy print stuff on a workstation? I used the Solaris print stuff a lot for years and never touched it. It feels like it's an optional part of the printing bits, and we could delete it without having to make that larger decision at the same time. Does that make sense?
it is GUI frontend for management tools. All "modern" systems are using cups now, the old solaris printing system is carried for trusted + IPP, cups does provide IPP. If anyone is caring about trusted printing, should create cups based solution.
So yea, printmgr can go, but then (later) also lp system should get some love.
Updated by Peter Tribble about 3 years ago
With a little work, I was able to build and run printmgr.
It didn't immediately appear to offer useful functionality.
It requires a 64-bit libprint, so the blast radius is increasing.
Updated by Peter Tribble 7 months ago
- Subject changed from printmgr doesn't work with any current java to Remove printmgr, as it doesn't work with any current java
Given that it doesn't work, is linked to the legacy print stack, and no distro that I'm aware of still ships a compatible Java (7 or below), changing to remove rather than fix.
The pkg:/print/lp/print-manager/legacy contains a number of helper scripts that can also be removed, and also contains the ppdmgr utility and an associated SMF service to maintain the PPD cache; that service is still referenced elsewhere (usr/src/lib/smbsrv/libmlsvc/common/svcctl_scm.c) so its removal is out of scope for this issue.
Updated by Peter Tribble 4 months ago
Testing: Build is clean, verified that no print manager artefacts are
present in the proto area or in the generated packages. Viewed the
modified manual pages with the man utility.
Updated by Electric Monk 4 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit ab1dc24c6acfdc9f747c86754a3465807c31869c
commit ab1dc24c6acfdc9f747c86754a3465807c31869c Author: Peter Tribble <peter.tribble@gmail.com> Date: 2023-06-05T18:38:30.000Z 13180 Remove printmgr, as it doesn't work with any current java Reviewed by: Andy Fiddaman <illumos@fiddaman.net> Reviewed by: Bill Sommerfeld <sommerfeld@alum.mit.edu> Reviewed by: Dan Cross <cross@oxidecomputer.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Richard Lowe <richlowe@richlowe.net>