Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: jazzbiker on March 14, 2023, 09:12:06 AM

Title: [Solved]: Missing dep in gpicview.tcz.dep
Post by: jazzbiker on March 14, 2023, 09:12:06 AM
Greetings!

I think it would be correct to add shared-mime-info.tcz to the gpicview.tcz.dep file. Though ususally shared-mime-info.tcz is already used by some other software, still very ascetic configs may miss it.

Regards!
Title: Re: Missing dep in gpicview.tcz.dep
Post by: Rich on March 14, 2023, 11:20:04 PM
Hi jazzbiker
I did some testing and agree. TC10 through TC14, x86 and x86_64 repos updated.

Turns out gpicview needs shared-mime-info for the  All Supported Images  file filter
in the file chooser to work. Setting it to  All Files  allowed selecting and displaying
images. Under TC14  All Files  allowed selecting, but trying to display an image
caused an error dialog to pop up. In addition, the  Flip  and  Rotate  icons showed
up as blank white boxes.
Title: Re: Missing dep in gpicview.tcz.dep
Post by: jazzbiker on March 15, 2023, 04:42:10 AM
Hi Rich,

Your investigation is comprehensive and exhaustive as usual :-) By the way here we can see an example of dependency hidden from ldd's all-seeing eye.

Thank You, would You be so kind to mark the thread as solved?
Title: Re: [Solved]: Missing dep in gpicview.tcz.dep
Post by: Rich on March 15, 2023, 12:12:18 PM
Hi jazzbiker
Yes, ldd will only find libraries that have been linked to. If a library
is loaded with dlopen at runtime, it won't show up.
This might happen
with a program that adapts to its environment. It's likely gparted uses
dlopen to test if various libraries are available and uses this information
for the chart it displays when you click  View -> File System Support.
However, ldd will list  libdl.so  if a program calls  dlopen.
Of course config, icon, data, etc. files won't show up either.

... would You be so kind to mark the thread as solved?
Of course.  :)