SliTaz SliTaz Forum

You are not logged in.

#1 2013-01-02 11:17:01

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

clamtk receipt typo

This change in clamtk receipt

http://hg.slitaz.org/wok/rev/6fe86b6fecff

introduced an error in clamtk execution

root@slitaz:/home/tux55 clamtk

Can't locate ClamTk/App.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.12.3/i686-linux /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/5.12.3/i686-linux /usr/lib/perl5/5.12.3 .) at /usr/bin/clamtk line 20.

BEGIN failed--compilation aborted at /usr/bin/clamtk line 20.

the libs install command should point to $fs/usr/lib and not %fs/usr/share

@INC does not contain /usr/share/perl5/site_perl so maybe the  PERL_VER in the old receipt should be preserved and used in the path, which should be

$fs/usr/lib/perl5/site_perl/$PERL_VER/ClamTk/[c]basename $n[/c]

Offline

#2 2013-01-02 11:17:55

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

Re: clamtk receipt typo

the %fs was a typo :-)

Offline

#3 2013-01-02 11:19:34

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

Re: clamtk receipt typo

and forum does not preserve backtick, i did not know it, sorry

Offline

#4 2013-01-02 11:49:12

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: clamtk receipt typo

Hi ernia,

In this forum backticks used for code format. Like this:

[c]text backtick inline_code backtick text[/c]

and

[c]backtick
    code
      listing
backtick[/c]
Sometime, when you write your own code, you can use shell equivalent for inline code:

[c]$(inline_code)[/c]

It is good both for shell scripts and forum.

(you can even put code into code: $(ls /home/tux/$(date '+%x')) using this technique, and I use it).

Offline

#5 2013-01-02 13:49:05

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: clamtk receipt typo

Pushed & sync'd http://hg.slitaz.org/wok-stable/rev/1da21b594b35

Thanks

Offline

#6 2013-01-02 14:17:58

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

Re: clamtk receipt typo

thanks to you :-)

Offline

#7 2013-01-03 19:37:03

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

Re: clamtk receipt typo

it think that in rolling the PERL_VER variable got an empty value, probably for the lack of the Wok variable:

receipt

[c]PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')[/c]
rolling

[c]tux@slitaz:~ $ env
TERM=xterm
XDG_MENU_PREFIX=lxde-
SHELL=/bin/bash
LC_ALL=it_IT
USER=tux
OOO_FORCE_DESKTOP=gnome
PAGER=less -EM
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin
DESKTOP_SESSION=LXDE
MAIL=/var/mail/tux
PWD=/home/tux
EDITOR=leafpad
LANG=it_IT
TZ=UTC
PS1=\[\e[34;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] $
_LXSESSION_PID=1368
SHLVL=1
HOME=/home/tux
XDG_CONFIG_HOME=/home/tux/.config
LOGNAME=tux
G_FILENAME_ENCODING=UTF-8
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-OjJcUOgMlM,guid=bd8a744936887e39784244cf50e5ccff
DISPLAY=:0.0
XDG_CURRENT_DESKTOP=LXDE
XAUTHORITY=/home/tux/.Xauthority
_=/usr/bin/env
tux@slitaz:~ $ echo $WOK

tux@slitaz:~ $[/c]
[c]root@slitaz:/home/tux9 find / -name App.pm
/usr/lib/perl5/site_perl/5.12.3/i686-linux/SDL/App.pm
/usr/share/perl5/site_perl/ClamTk/App.pm[/c]
4.0 clamtk package get correctly installed in /usr/lib/perl5/5.12.3/ClamTk/App.pm and works well in rolling too.

Offline

#8 2013-01-04 12:42:27

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

Re: clamtk receipt typo

if the cook server runs rolling maybe this could do the job

[c]PERL_VER=$(perl -v | grep version | sed 's/^.*(v//' | sed 's/).*$//')[/c]

Offline

#9 2013-01-06 13:43:36

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: clamtk receipt typo

Was is wrong with

http://cook.slitaz.org/cooker.cgi?files=clamtk

http://cook.slitaz.org/stable/cooker.cgi?files=clamtk  ?

Offline

#10 2013-01-06 17:09:20

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

Re: clamtk receipt typo

sorry, it probably was my fault.

i think that i had the non-working clamtk in /var/cache/tazpkg/cooking so tazpkg did not install the new one but did reinstall the non working one and i did not note that.

[c]root@slitaz:/home/tux2 tazpkg get-install clamtk --forced
clamtk-4.36 already in the cache: /var/cache/tazpkg/cooking/packages

Installation of: clamtk
=====================================================================================================================================================================================================================
Copying clamtk...                                                                                                                                                                                         [ Done ]
Extracting clamtk...                                                                                                                                                                                      [ Done ]
Extracting the pseudo fs...                                                                                                                                                                               [ Done ]
Installing clamtk...                                                                                                                                                                                      [ Done ]
Removing all tmp files...                                                                                                                                                                                 [ Done ]
=====================================================================================================================================================================================================================
clamtk (4.36) is installed.[/c]
again, sorry

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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