SliTaz SliTaz Forum

You are not logged in.

#1 2013-01-18 10:02:51

tkoun
Member
Registered: 2012-12-04
Posts: 21

tazpkg rdepends awk and gawk problems

tazpkg rdepends seems to only work with awk from busybox. Once gawk is installed it miserably breaks with awk errors.

I guess the busybox awk and gawk are not fully compatible.

It seems that 2 initialization in a for loop are not supported by gawk. However after correcting this problem in one place other awk errors pop up. Unfortunately I have no knowledge of awk in order to propose a patch at this time.

has anybody bumped into this problem ?

Offline

#2 2013-01-18 12:59:32

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

Re: tazpkg rdepends awk and gawk problems

Thanks: http://hg.slitaz.org/tazpkg/rev/889e293abdc7

Offline

#3 2013-01-18 18:21:55

tkoun
Member
Registered: 2012-12-04
Posts: 21

Re: tazpkg rdepends awk and gawk problems

nice! (pourquoi je n'y ai pas pensé ? c'est presque embarassant...)

however a comment would be in order to understand and remember why this particular reference to awk is preceded by the busybox workaround...

Offline

#4 2013-01-18 20:42:23

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

Re: tazpkg rdepends awk and gawk problems

In my 3+ years with slitaz a similar issue came up in tazpkg with busybox wget and users installing gnu wget. All slitaz scripts are written using busybox applets.

Unfortunately there can be differences in the busybox applet and the full version installed from the repo which will cause a script to malfunction.

By specifying busybox awk in the script it uses the awk applet in busybox instead of the full version of awk from gawk.tazpkg which is in your $PATH so the tazpkg script works as intended.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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