Page 1 of 1

perl-tk compatible with perl [Solved]

Posted: 05 Jun 2018, 08:21
by rych
I'm having a problem finding a compatible perl-tk for Porteus 4.0. I use TexLive GUI manager which required a "Perl/Tk module". In the past, getting the perl-tk from USM and activating the perl-tk-804.033-x86_64-2_slonly.xzm worked. Not anymore:

Code: Select all

# tlmgr -gui
Event.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xde00080)
I've tried downloading and converting some .rpms for the next version of perl-tk, .034, but couldn't get it to work: after an apparently successful "handshake" other errors are printed anyway. Seems like matching perl-tk with the current perl is a task too difficult for me, please help.

perl-tk compatible with perl of Porteus 4.0

Posted: 05 Jun 2018, 19:04
by jssouza
rych, I am traveling so will not be able to create an xzm. Since nobody has replied, try this:
1. Activate 05-devel.xzm module
2. Update usm using usm -u all
3. After that, exit that terminal and in a new terminal run usm sbo -b perl-tk
I guess you know this nuance, the terminal needs to be exited before another usm command can be run
4. If usm builds a package, use installpkg to install /tmp/perl-tk-*.tgz. (I dont know the exact name, but it must be a slackware tgz package in /tmp)
You can also try to convert this tgz package to xzm using txz2xzm

perl-tk compatible with perl of Porteus 4.0

Posted: 06 Jun 2018, 07:51
by rych
@jssouza, thank you, I've just followed your procedure and it worked! I guess this is how we build from source - good to know for future. I'll use the module by itself tomorrow and if it still works, this is solved!

perl-tk compatible with perl [Solved]

Posted: 18 Sep 2021, 08:09
by rych
Help again is needed with this please: the old perl-tk module doesn't work with 5.0rc3 and the one I tried to convert from another distro results in a very small, (system?) bitmap fonts -- I'm astonished to even see such fonts included somewhere in my system. So I'm asking for someone please to build a perl-tk module proper so that

Code: Select all

/usr/bin/widget
works and displays a legible font

perl-tk compatible with perl [Solved]

Posted: 18 Sep 2021, 09:27
by ncmprhnsbl
here is perl-tk-804.036-x86_64-1_ncm.xzm 1.9 mb
compatible with 5.0rc3(perl 5.34.0), seems to work ok..

perl-tk compatible with perl [Solved]

Posted: 19 Sep 2021, 05:56
by rych
ncmprhnsbl, Thank you! Works great, and I can now even do, tlmgr gui -font "18" -- scaling up the font in my application which means fonts are handled nicely. Except, n the Ctrl-Alt-F1 console the FreeType: complains it couldn't find DejaVu Sans-ExtraLight.ttf which is indeed trimmed from the porteus stock fonts. But who cares, as now the font it ends up using is nice and legible.

Anyway, _ncm.xzm modules are my favorite. How do you make them?

perl-tk compatible with perl [Solved]

Posted: 19 Sep 2021, 13:42
by ncmprhnsbl
rych wrote:
19 Sep 2021, 05:56
How do you make them?
in this case:
0. activate the 05-devel.xzm
1. i search ddgo: !sbo perl-tk (at the very least, this tells what folder in Ponce's slackbuild repo to look in)
2. i check https://github.com/Ponce/slackbuilds/perl/ if there is a newer version or some other update or patch (this repo is meant for slackware current)
i have this repo cloned locally, so i just copy out the folder: perl-tk to my work dir
3. edit perl-tk tag line from SBo to TAG=${TAG:-_ncm} (to show who compiled it ..ie who to blame ;) )
4. open the perl-tk.info file and you'll see DOWNLOAD="https://cpan.metacpan.org/authors/id/S/ ... 036.tar.gz"
5. open a terminal in the perl-tk dir and: wget https://cpan.metacpan.org/authors/id/S/ ... 036.tar.gz
6. su
7. sh perl-tk.SlackBuild (actually i'm lazy and just do: sh p*.S*)
8. resulting txz or tgz appears in /tmp (if all goes well....othertimes multiple attempts may be required to supply all necessary deps)
9. for a single package, simply txz2xzm it..
(for multiple pkgs: mkdir /tmp/mod && ROOT=/tmp/mod installpkg <folder_of_txzs>/*.t*z && dir2xzm /tmp/mod /tmp/the_mod.xzm )

perl-tk compatible with perl [Solved]

Posted: 10 Feb 2024, 07:02
by rych
TeXLive 2023, with perl-5.34.0-x86_64-2_slack15.0.xzm and perl-tk-804.036-x86_64-1_ncm.xzm activated...
this GUI doesn't quite work anymore: keyboard input into the GUI fields isn't working:

Code: Select all

tlmgr gui 
Instead they recommend using a newer GUI:

Code: Select all

tlshell
That needs a tk module, I got the getmod build me a tk-8.6.12-x86_64-1.xzm, and it works (although the latest tk should be 8.6.13 but okay)

Hopefully I can now remove perl and perl-tk completely.