perl-tk compatible with perl [Solved]

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

perl-tk compatible with perl [Solved]

Post#1 by rych » 05 Jun 2018, 08:21

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.
Last edited by rych on 08 Jun 2018, 07:20, edited 1 time in total.

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

perl-tk compatible with perl of Porteus 4.0

Post#2 by jssouza » 05 Jun 2018, 19:04

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

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

perl-tk compatible with perl of Porteus 4.0

Post#3 by rych » 06 Jun 2018, 07:51

@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!

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

perl-tk compatible with perl [Solved]

Post#4 by rych » 18 Sep 2021, 08:09

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

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

perl-tk compatible with perl [Solved]

Post#5 by ncmprhnsbl » 18 Sep 2021, 09:27

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

perl-tk compatible with perl [Solved]

Post#6 by rych » 19 Sep 2021, 05:56

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?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

perl-tk compatible with perl [Solved]

Post#7 by ncmprhnsbl » 19 Sep 2021, 13:42

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 )
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

perl-tk compatible with perl [Solved]

Post#8 by rych » 10 Feb 2024, 07:02

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.

Post Reply