Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: gerald_clark on June 29, 2011, 12:57:57 PM

Title: lighttpd missing dep.
Post by: gerald_clark on June 29, 2011, 12:57:57 PM
lighttpd depends on ncurses.
Title: Re: lighttpd missing dep.
Post by: Jason W on June 29, 2011, 01:30:18 PM
Added to dep file.
Title: Re: lighttpd missing dep.
Post by: gerald_clark on June 29, 2011, 01:34:05 PM
Thanks.
Title: Re: lighttpd missing dep.
Post by: danielibarnes on June 29, 2011, 02:11:52 PM
Why does it require ncurses? None of the binaries have a dependency on it, and I could find no reference to ncurses in the source.
Title: Re: lighttpd missing dep.
Post by: gerald_clark on June 29, 2011, 02:49:28 PM
run 'ldd /usr/local/sbin/lighttpd' and you will see that it requires libncurses.so.5.
Title: Re: lighttpd missing dep.
Post by: danielibarnes on June 29, 2011, 03:46:33 PM
I did exactly that, with the lighttpd.tcz currently in the repository:

tc@box:~$ ldd /usr/local/sbin/lighttpd
        linux-gate.so.1 =>  (0xb77c1000)
        libpcre.so.0 => not found
        libdl.so.2 => /lib/libdl.so.2 (0xb77b6000)
        libssl.so.0.9.8 => /usr/local/lib/libssl.so.0.9.8 (0xb776e000)
        libcrypto.so.0.9.8 => /usr/local/lib/libcrypto.so.0.9.8 (0xb7623000)
        libfam.so.0 => not found
        libc.so.6 => /lib/libc.so.6 (0xb74df000)
        /lib/ld-linux.so.2 (0xb77c2000)

Check the md5 sum of your .tcz and make sure it matches the repository. The MySQL-based vhosting module (lighttpd-mysql.tcz) depends on mysql, which in turn depends on ncurses, but the current lighttpd binary does not.
Title: Re: lighttpd missing dep.
Post by: danielibarnes on June 29, 2011, 03:58:20 PM
On second thought, libpcre depends on readline, which should have ncurses as a dependency, but does not. I checked my email when submitting the readline extension in May 2010, and I did not include the .dep file.

Jason, please put the ncurses dependency in readline.tcz.dep instead. Readline was apparently updated to 6.2 in February, and I did not notice. I will rebuild and issue a proper update soon.
Title: Re: lighttpd missing dep.
Post by: Jason W on June 29, 2011, 04:26:29 PM
Ok, ncurses.tcz dependency moved to readline.tcz.dep.
Title: Re: lighttpd missing dep.
Post by: danielibarnes on June 29, 2011, 04:40:08 PM
Gerald, please confirm if that fixes your issue.
Title: Re: lighttpd missing dep.
Post by: gerald_clark on June 29, 2011, 10:37:07 PM
readline.tcz.dep has not been updated as seen from AppBrowser "Depends" tab.
Title: Re: lighttpd missing dep.
Post by: Jason W on June 30, 2011, 12:05:44 AM
The dep file was updated and would have drawn in ncurses.tcz as a dep, but the tree file was not, and the tree file is what appbrowser gets it's info for the depends tab but it does not use it to solve dependencies.    The tree file is now updated.
Title: Re: lighttpd missing dep.
Post by: gerald_clark on June 30, 2011, 12:56:09 AM
Yes it works now.
It is necessary to remove and re-install readline.
Readline had no dep file, and neither tce-update nor AppsAudit can deal with this.