WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: lighttpd missing dep.  (Read 3238 times)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
lighttpd missing dep.
« on: June 29, 2011, 12:57:57 PM »
lighttpd depends on ncurses.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: lighttpd missing dep.
« Reply #1 on: June 29, 2011, 01:30:18 PM »
Added to dep file.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: lighttpd missing dep.
« Reply #2 on: June 29, 2011, 01:34:05 PM »
Thanks.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: lighttpd missing dep.
« Reply #3 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.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: lighttpd missing dep.
« Reply #4 on: June 29, 2011, 02:49:28 PM »
run 'ldd /usr/local/sbin/lighttpd' and you will see that it requires libncurses.so.5.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: lighttpd missing dep.
« Reply #5 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.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: lighttpd missing dep.
« Reply #6 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.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: lighttpd missing dep.
« Reply #7 on: June 29, 2011, 04:26:29 PM »
Ok, ncurses.tcz dependency moved to readline.tcz.dep.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: lighttpd missing dep.
« Reply #8 on: June 29, 2011, 04:40:08 PM »
Gerald, please confirm if that fixes your issue.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: lighttpd missing dep.
« Reply #9 on: June 29, 2011, 10:37:07 PM »
readline.tcz.dep has not been updated as seen from AppBrowser "Depends" tab.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: lighttpd missing dep.
« Reply #10 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.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: lighttpd missing dep.
« Reply #11 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.