Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: nitram on August 26, 2016, 08:00:17 AM

Title: gtkfind
Post by: nitram on August 26, 2016, 08:00:17 AM
gtkfind from prebuilt doesn't work in dCore-jessie.

Installs and opens okay, just can't perform 'find':
Unable to load output font -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1

Also clicking Help:
sh: exec: line 1: /usr/X11R6/bin/xterm: not found
Title: Re: gtkfind
Post by: Juanito on August 26, 2016, 08:48:29 AM
the gtk1 apps are still the best  ;)
Title: Re: gtkfind
Post by: nitram on August 26, 2016, 10:30:02 AM
Indeed gtk1 still rocks. Successfully compiled gtkfind, help now works so probably my import configuration, but still font error when performing 'find'. Tried installing different fonts, no luck. Doesn't look like it's still maintained. Nonetheless v1.1 is available, prebuilt uses v1.0. The developer's download site is no longer available, found these:
https://www.freshports.org/misc/gtkfind/
http://www.bayofrum.net/dist/gtkfind/
http://www.purplehat.org/downloads/gtkfind/
Title: Re: gtkfind
Post by: Juanito on August 26, 2016, 10:52:25 AM
The core and corepure64 gtkfind versions are both 1.1
Title: Re: gtkfind
Post by: Jason W on August 26, 2016, 02:10:47 PM
Thanks, I will look into this tonight.
Title: Re: gtkfind
Post by: Jason W on August 27, 2016, 12:50:33 AM
I have rebuilt and uploaded updated gtk1 and glib1 packages using Slackware current's patches, Slackware is one of the only other distros that still supports gtk1.  Please retest gtkfind and I will rebuild it against these updated gtk1 libraries if needed in case the bugs are still there.  The gtk1 and any other dCore prebuilt build happens on dCore-wheezy so all dCore x86 ports can use the resulting packages, fwiw. 
Title: Re: gtkfind
Post by: nitram on August 27, 2016, 04:47:20 AM
Sorry no fix with the gtk1 and glib1 updates.
Title: Re: gtkfind
Post by: curaga on August 27, 2016, 01:33:00 PM
Maybe you need to install the X11 bitmap fonts? It's possible some distros don't ship them anymore.

7x13-ISO8859-1.pcf.gz is the file you want.
Title: Re: gtkfind
Post by: Jason W on August 27, 2016, 08:21:36 PM
Thanks curaga, the file is still in Debian Jessie in xfonts-base. 

I rebuilt and updated gtkfind to version 1.1, please test.
Title: Re: gtkfind
Post by: nitram on August 27, 2016, 10:29:36 PM
Updated latest gtkfind no success, same issue.

Error message:
Code: [Select]
Unable to load output font -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1

...inspecting gtkfind.sce does not appear to include 8859-1:
Code: [Select]
tc@box:/tmp/tcloop/gtkfind/usr/local/etc/gtk$ ll | grep 8859
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.bg_BG.iso88595 -> gtkrc.iso-8859-5
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.cs -> gtkrc.iso-8859-2
lrwxrwxrwx 1 root root  17 Aug 27 19:42 gtkrc.cy -> gtkrc.iso-8859-14
lrwxrwxrwx 1 root root  17 Aug 27 19:42 gtkrc.et -> gtkrc.iso-8859-15
lrwxrwxrwx 1 root root  17 Aug 27 19:42 gtkrc.ga -> gtkrc.iso-8859-14
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.hr -> gtkrc.iso-8859-2
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.hu -> gtkrc.iso-8859-2
-rw-r--r-- 1 root root 349 Aug 26 23:43 gtkrc.iso-8859-13
-rw-r--r-- 1 root root 350 Aug 26 23:43 gtkrc.iso-8859-14
-rw-r--r-- 1 root root 350 Aug 26 23:43 gtkrc.iso-8859-15
-rw-r--r-- 1 root root 556 Aug 26 23:43 gtkrc.iso-8859-2
-rw-r--r-- 1 root root 330 Aug 26 23:43 gtkrc.iso-8859-3
-rw-r--r-- 1 root root 555 Aug 26 23:43 gtkrc.iso-8859-5
-rw-r--r-- 1 root root 316 Aug 26 23:43 gtkrc.iso-8859-7
-rw-r--r-- 1 root root 330 Aug 26 23:43 gtkrc.iso-8859-9
lrwxrwxrwx 1 root root  17 Aug 27 19:42 gtkrc.lt -> gtkrc.iso-8859-13
lrwxrwxrwx 1 root root  17 Aug 27 19:42 gtkrc.lv -> gtkrc.iso-8859-13
lrwxrwxrwx 1 root root  17 Aug 27 19:42 gtkrc.mi -> gtkrc.iso-8859-13
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.mk -> gtkrc.iso-8859-5
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.pl -> gtkrc.iso-8859-2
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.ro -> gtkrc.iso-8859-2
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.ru_RU.iso88595 -> gtkrc.iso-8859-5
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.sk -> gtkrc.iso-8859-2
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.sl -> gtkrc.iso-8859-2
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.sp -> gtkrc.iso-8859-5
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.sq -> gtkrc.iso-8859-2
lrwxrwxrwx 1 root root  16 Aug 27 19:42 gtkrc.sr -> gtkrc.iso-8859-2

Selecting 'Print to stdout' vs 'Print to window' works, just poorly formatted output so not as functional.
Title: Re: gtkfind
Post by: Jason W on August 28, 2016, 01:13:26 AM
Added xfonts-base to the deps of gtkfind.  gtkfind runs without issue here on a large desktop install, re-import and test again, thanks.
Title: Re: gtkfind
Post by: nitram on August 28, 2016, 06:44:42 PM
Hi Jason. Thanks for your help, still can't get the view window to display, same font error message.

Note sce-update did not detect the extra dependencies, re-importing got them, however. Not sure if sce-update bug with changed dependencies, just reporting.

Despite the error, i now have: /usr/share/fonts/X11/misc/7x13-ISO8859-1.pcf.gz.

Things i've tried: disabling sce.purge, re-importing all sceboot.lst extensions, compiling from source with new dependencies present, modifying source code to utilize a different font. Then gtkfind just reports not having the other font, so the output error message may be misleading.

For some reason gtkfind does not appear to find the font. Not familiar with fonts, symlink issue, something i need to activate, font-config? My system is lean unlike your full-featured system, so maybe still something missing? Is gtkfind working well for you in dCore-Jessie or another flavour?

Edit: The extra dependencies bloated a 2MB extension to 14MB, no problem if it worked :)
Title: Re: gtkfind
Post by: Jason W on August 28, 2016, 09:28:39 PM
I removed the xfonts-base package from the deps of gtkfind.

I booted dCore-jessie with only xorg-all, flwm_topside, and gtkfind loaded, and gtkfind works for me as expected with both 'Print to Window' and 'Print to Stdout', ran from a terminal and saw no errors or warnings.
Title: Re: gtkfind
Post by: nitram on August 28, 2016, 10:41:55 PM
Now we're cooking with peanut oil, my system runs xorg-intel not xorg-all. Importing xorg-all and reboot, now the gtkfind output window finally works! Took note of the import, seems additional packages not in xorg-intel: xfonts-scalable, x11-apps, xfonts-75dpi. Not sure this makes sense, possibly even xterm, shouldn't that be in xorg-intel (will investigate)?  Even gtkfind -> Help works now, previously gave an xterm error. Might take a few reboots to figure out the culprit package, will report back later, thanks for your help and the hint.
Title: Re: gtkfind
Post by: Jason W on August 28, 2016, 11:07:51 PM
My video card is supported by xorg-intel, I will load that with gtkfind and flwm_topside and help test.  Thanks.
Title: Re: gtkfind
Post by: Jason W on August 29, 2016, 01:28:42 AM
xfonts-base and fontconfig have been added to xorg-base which is pulled in by any xorg-* package, which is where it should be if it is needed for gtk1 apps to function.  It works here with only xorg-intel, flwm_topside and gtkfind.

Thank you for your time and testing.
Title: Re: gtkfind
Post by: nitram on August 29, 2016, 08:32:23 AM
With xorg-intel 'Print to window' now works great. Accessing 'Help' requires loading man-db, certainly optional, just mentioning in case it helps others. All fixed, thank-you.