Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: robc on October 08, 2010, 11:21:10 AM

Title: ncurses and ncurses-dev
Post by: robc on October 08, 2010, 11:21:10 AM
ncurses is missing libtermcap, this just needs to be a link to libncurses:
Code: [Select]
sudo ln -s libncurses.so /usr/local/lib/libtermcap.so
ncurses-dev has its startup script named ncurses so it does run if ncurses-dev is installed after ncurses. Also the current ncurses-dev startup script manually links every header and static lib in /usr/local from ncurses to /usr/lib. Couldn't this be done with:
Code: [Select]
cp -as /tmp/tcloop/ncurses-dev/usr/local/include /usr
cp -as /tmp/tcloop/ncurses-dev/usr/local/lib /usr
or include the links in the extension itself?

Edit: ncurses-dev startup script does not run, forgot the not  ::)
Title: Re: ncurses and ncurses-dev
Post by: bmarkus on October 08, 2010, 11:53:10 AM
Thanks for feedback, will take care.
Title: Re: ncurses and ncurses-dev
Post by: bmarkus on October 08, 2010, 12:46:36 PM
Couldn't this be done with:
Code: [Select]
cp -as /tmp/tcloop/ncurses-dev/usr/local/include /usr
cp -as /tmp/tcloop/ncurses-dev/usr/local/lib /usr

Just a technical note, your solution expects mounted extension and doesn't work when copied to RAM.
Title: Re: ncurses and ncurses-dev
Post by: bmarkus on October 08, 2010, 01:08:04 PM

or include the links in the extension itself?


No, if you want to keep it PPI compatible.
Title: Re: ncurses and ncurses-dev
Post by: robc on October 08, 2010, 02:07:12 PM
Couldn't this be done with:
Code: [Select]
cp -as /tmp/tcloop/ncurses-dev/usr/local/include /usr
cp -as /tmp/tcloop/ncurses-dev/usr/local/lib /usr

Just a technical note, your solution expects mounted extension and doesn't work when copied to RAM.
Good point, it looks like the startup scripts are ran after the extension has unmounted in a copy to RAM setup.