following this guide
http://hg.slitaz.org/cookutils/raw-file/tip/doc/cookutils.en.html
i've set up a chrooted cooker environment.
two questions:
-the chrooted environment keeps LC_ALL=it_IT variable as in my host but does not have /usr/lib/locale/it_IT , which is installed by tazlocale in slitaz, so i have some messages about missing locale. can this cause problem in building packages? would it be better to install the locale with a localedef command?
-web interface to cooker is in http://localhost/cgi-bin/cooker/cooker.cgi and not in ttp://localhost/cooker/cooker.cgi as stated inside the guide, should the guide be updated or cookutils be corrected?
thanks

rolling cookutils info
(5 posts) (2 voices)-
Posted 12 years ago #
-
This may be related to your locale issue:
Locale="" is set in /etc/slitaz/cook.conf
The applicable script in cook:
# $LOCALE is set in cook.conf
if [ "$LOCALE" -a "$WANTED" = "" ]; then
if [ -d "$install/usr/share/locale" ]; then
mkdir -p $fs/usr/share/locale
for i in $LOCALE
do
if [ -d "$install/usr/share/locale/$i" ]; then
cp -a $install/usr/share/locale/$i $fs/usr/share/locale
fi
done
fi
fiBooting into slitaz-4.0.iso the cooker web interface is at http://localhost/cooker/cooker.cgi
This could explain your issue:
i've set up a chrooted cooker environment
Applications/Documentation/Cookutils Doc => Cooker CGI/Web
If you don't use a chroot and the Busybox httpd web server is running, the web interface will work without configuration and should be reachable at: http://localhost/cooker/cooker.cgiPosted 12 years ago # -
thanks for your answer.
if i did not get it wrong the Locale="it" in /etc/slitaz/cook.conf makes build localized packages and the part of the script that you cite should copy the related localization file if locale is setas stated in the guide i pointed the host /etc/slitaz/cook.conf's SLITAZ variable to /home/slitaz/cooking/chroot/home/slitaz , but it seems that in rolling cooker.cgi has been moved:
root@slitvaio:/home/fabio# find / -name cooker.cgi /home/slitaz/cooking/chroot/var/www/cgi-bin/cooker/cooker.cgi /var/www/cgi-bin/cooker/cooker.cgi
probably doc (or cookutils) will be fixed when 5.0 will be released
Posted 12 years ago # -
Your right, path to cooker changed here: http://hg.slitaz.org/cookutils/rev/e60f4a6df297
This removed cooker from busybox httpd server root which is set in /etc/httpd.conf as
H:/var/www
Symlink in /var/www to /var/www/cgi-bin/cooker in cookutils fix's the issue:
http://hg.slitaz.org/wok/rev/22d2275b30ecPosted 12 years ago # -
thanks a lot for the fix.
Posted 12 years ago #
Reply
You must log in to post.