Comment 5 for bug 645082

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 645082] Re: bacula misses requirement of gawk

Quoting Fred Baumgarten (<email address hidden>):
> Is the fix really that simple ?
>
> Actually make_catalog_backup_awk holds the first line:
>
> #!/usr/bin/gawk -f
>
> which is obviously correct. Durung the bacula call mawk got involved (it
> was a server installation). I guess the callee does a command like "awk
> -f /etc/bacula/scripts/make_catalog_backup_awk" which is even wrong if
> mawk has precendence over gawk by using /etc/alternatives/awk. I guess
> you need to inspect a bit deeper.

I'm not convinced this matters. If mawk /etc/alternatives/awk points to
mawk, then mawk is installed. If mawk is not installed, then 'awk' will
run gawk, since we are depending on gawk being installed.

> there the /usr/bin/awk needs to be changed to /usr/bin/gawk as well.

Again, not convinced.