SliTaz SliTaz Forum

You are not logged in.

#1 2013-01-08 21:39:25

ernia
Member
Registered: 2011-05-20
Posts: 299

rolling cookutils info

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

Offline

#2 2013-01-08 23:29:39

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: rolling cookutils info

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

fi

Booting 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.cgi

Offline

#3 2013-01-09 05:57:07

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: rolling cookutils info

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 set

as 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:

[c]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[/c]
probably doc (or cookutils) will be fixed when 5.0 will be released

Offline

#4 2013-01-10 19:56:28

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: rolling cookutils info

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/22d2275b30ec

Offline

#5 2013-01-10 20:07:02

ernia
Member
Registered: 2011-05-20
Posts: 299

Re: rolling cookutils info

thanks a lot for the fix.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]