Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: softwaregurl on January 28, 2009, 06:45:39 PM

Title: Recursion of.dep's on boot v.s optional
Post by: softwaregurl on January 28, 2009, 06:45:39 PM
I created a simple extension that replaces the apache2.tce httpd.conf file so perl works with apache and has a sym link to perl from /usr/bin/perl (the standard location).  The .dep is
Code: [Select]
perl.tczl
apache2.tce
the file name is apache-perl-patch.tce
this depends on my extension loading loading after the dependencies so it can overwrite the apache httpd.conf and works great when loaded optional.  on boot it looks like my extension loads first (maybe alphabetical order) so apache2 overwrites it instead.  instead of my perl stuff executing the code shows like a text file.

using 1.1rc2
Title: Re: Recursion of.dep's on boot v.s optional
Post by: mikshaw on January 29, 2009, 04:26:59 AM
TCE* loads first, alphabetically, then TCZ* loads alphabetically.
You may need to use backup/restore to load the config file, rather than put it in a tce package.
I'm not 100% clear about what you're doing, though.
Title: Re: Recursion of.dep's on boot v.s optional
Post by: roberts on January 29, 2009, 08:15:06 AM
Knowning that extenions load alphabetically first alltces followed by all tczs, You can always avoid the backup/resotore and achieve the order you wish my naming your custom patch extension accordingly.
Title: Re: Recursion of.dep's on boot v.s optional
Post by: danielibarnes on January 29, 2009, 05:30:06 PM
A quick check in tc-config shows that there is a gettceapps() function to load extensions on bootup. I see what you mean: the extensions are loaded alphabetically and the .dep file is not consulted.

It would be a nice feature to loop through the .dep file, verify the existence of the dependencies, and then recursively load them. If I get time, I may draft some code to do that.
Title: Re: Recursion of.dep's on boot v.s optional
Post by: roberts on January 29, 2009, 08:19:42 PM
I purposely avoided it at boot because it occurs at download time (appbrowser) and optional loading.
I did not want to further slow the boot process.