Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: cosmin_ap on May 10, 2011, 03:16:21 AM

Title: libpng not listed as dependency of php5
Post by: cosmin_ap on May 10, 2011, 03:16:21 AM
Hi. I noticed that php5 needs libpng to run but libpng is not listed as dependency, eg. try

  tce-audit dependson php5 |grep png
Title: Re: libpng not listed as dependency of php5
Post by: tinypoodle on May 10, 2011, 03:20:41 AM
As expected, being shipped with TC base.
Title: Re: libpng not listed as dependency of php5
Post by: cosmin_ap on May 10, 2011, 03:34:00 AM
I don't have it in microcore. Is that different than tinycore?
Title: Re: libpng not listed as dependency of php5
Post by: Juanito on May 10, 2011, 03:45:17 AM
It's in Xlibs.tcz

microcore + Xlibs + Xprogs + flwm + wbar = tinycore
Title: Re: libpng not listed as dependency of php5
Post by: cosmin_ap on May 10, 2011, 04:28:49 AM
Sorry I wasn't explicit before: I have microcore, and after tce-load -wi php5, if you run php it gives the error that it doesn't find libpng12. Shouldn't therefore libpng be listed as a dependency of php5? I'm not sure I understand the answer that "it ships with TC base", but I don't have libpng in the base microcore install. I have to install it with tce-load -wi libpng.
Title: Re: libpng not listed as dependency of php5
Post by: tinypoodle on May 10, 2011, 04:40:39 AM
I'm not sure I understand the answer that "it ships with TC base"

It is included in Tiny Core base.
Title: Re: libpng not listed as dependency of php5
Post by: cosmin_ap on May 10, 2011, 04:56:12 AM
Ok, I finally got it :) It's in Xlibs.tcz which is in tinycore but not in microcore. So what do you think, should it be added as a dep. so that it works with microcore too out of the box?
Title: Re: libpng not listed as dependency of php5
Post by: tinypoodle on May 10, 2011, 05:03:35 AM
No.

This subject has been discussed to death already in several threads in this forum.
Until you understand you may be better off to use TC instead of MC if you want to rely on any graphics stuff.
Title: Re: libpng not listed as dependency of php5
Post by: Guy on May 10, 2011, 05:08:47 AM
In the short term, this info should be added to the php5 info file.

See if someone can come up with a way of installing it when using microcore, but not when using Tiny Core. It actually only needs to be installed when microcore is installed but not Xlibs.

If you include other similar situations, that is, install something in one situation and not in another, it is not easy, as there are many different things to take into consideration.

In the long term, that would be a good solution. But it is not straight forward.
Title: Re: libpng not listed as dependency of php5
Post by: cosmin_ap on May 10, 2011, 05:43:03 AM
I don't want any graphics stuff but php doesn't start without it.

First I want to understand this: is it expected that a program (any program) in tinycore or microcore be able to start out of the box, i.e. should I report it as a bug at all when it doesn't, or is it more complicated than that?

Can you give me some search terms to find out these beaten threads please? I'm new to tinycore and trying to scan the threads as fast as I can :)
Title: Re: libpng not listed as dependency of php5
Post by: tinypoodle on May 10, 2011, 06:03:03 AM
First I want to understand this: is it expected that a program (any program) in tinycore or microcore be able to start out of the box

In brief: with MC not necessarily.

http://forum.tinycorelinux.net/index.php?topic=7314.0
http://forum.tinycorelinux.net/index.php?topic=8977.0
Title: Re: libpng not listed as dependency of php5
Post by: cosmin_ap on May 10, 2011, 07:12:35 AM
Alright, thanks for the links. I won't report missing dependencies regarding MC then. Sorry for the noise.
Title: Re: libpng not listed as dependency of php5
Post by: Guy on May 10, 2011, 07:17:40 AM
I think it is important that this is added to the info file.

Where a similar thing happens with other extensions, it should be added to the info file.