On Mon, 16 Apr 2018, mark.pau...@verizon.com wrote:
Greetings, Mark, Marco & Chris (original poster),
Date: Mon, 16 Apr 2018 19:37:36 +0000
From: mark.pau...@verizon.com
To: Marco Atzeri <marco.atz...@gmail.com>,
"cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: [E] Re: x3270
-----Original Message-----
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.
Thanks.
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
Regards
Marco
The issue with mkfontdir in the postinstall script is already known
(reported back in 2016, yikes!). I just haven't gotten around to issuing
an update.
The path to the encodings dir is wrong (was moved as part of an X update).
I have plans to better determine which directory to use, but haven't
completed that. I also need to build the latest version, but the
maintainer has drastically re-org'd the code. So, still work in progress.
The "workaround" is to either add a symlink, as you've noted below, or
update the script to point to the "correct" place:
/usr/bin/mkfontdir -e /usr/share/x11/fonts/encodings /usr/share/fonts/misc
Oh, and, yes, adding a dependency on mkfontdir is needed.
Thanks for helping to poke me about getting this addresses.
:)
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
./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
+ FONTDIR=/usr/share/fonts
+ ENCODINGSDIR=/usr/share/fonts/encodings
+ MKFONTDIR=/usr/bin/mkfontdir
+ /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:
/usr/share/fonts
$ ln -sf /usr/share/x11/fonts/encodings .
/usr/share/fonts
$ ll
total 93
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
Thanks,
Mark
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
--
--=> Peter A. Castro
Email: doctor at fruitbat dot org / Peter dot Castro at oracle dot com
"Cats are just autistic Dogs" -- Dr. Tony Attwood
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple