RE: [E] Re: x3270
> On 4/15/2018 2:48 AM, Chris Johnson wrote:
> > Hi.
> > Not sure when this happened but I now have a complaint for cygwin on
> > exit about x3270.sh returning exit code 1. I found it listed in
> > /etc/setup/install.db and remove it. No joy. Do I recall the x3270
> >is defunct? Either way, how do I get rid of this error. It's annoying.
> x3270 is still an active package
> run /etc/postinstall/x3270.sh from bash and if you have no error rename it as /etc/postinstall/x3270.sh.done
Manually ran x3270.sh and ran into a couple of issues that looks like they could use addressing:
First time I ran it, got this:
./x3270.sh: line 9: /usr/bin/mkfontdir: No such file or directory
Installed mkfontdir package (need a dependency maybe?), then ran it again
and got this:
$ bash -x x3270.sh
+ /usr/bin/mkfontdir -e /usr/share/fonts/encodings /usr/share/fonts/misc
opendir: No such file or directory
I "think" the issue here is that the encoding directory we want is actually
in /usr/share/X11/fonts/encoding instead of /usr/share/fonts/encoding.
Solved this by creating a soft link:
$ ln -sf /usr/share/x11/fonts/encodings .
drwxr-xr-x+ 1 v808297 Domain Users 0 Apr 16 13:23 ./
drwxr-xr-x+ 1 v808297 Domain Users 0 Apr 16 11:44 ../
drwxr-xr-x+ 1 v808297 Domain Users 0 Feb 26 08:50 dejavu/
lrwxrwxrwx 1 v808297 Domain Users 30 Apr 16 13:23 encodings -> /usr/share/x11/fonts/encodings/
drwxr-xr-x+ 1 v808297 Domain Users 0 Feb 26 08:57 microsoft/
drwxr-xr-x+ 1 v808297 Domain Users 0 Feb 26 08:53 misc/
After these 2 corrections the x3270.sh script ran successfully and
I was able to rename it to x3270.sh.done