Idézem/Quoting Steffen Nurpmeso <stef...@sdaoden.eu>:

Ciao, ciao Martin.

Martin Lucina wrote in <20190326161158.dselagbgx7krl...@nodbug.lucina.net>:
 |On Tuesday, 26.03.2019 at 17:01, Steffen Nurpmeso wrote:
 |> Hmmm.  Could you please run
 |>
 |>   $ make VERBOSE=y
 |>
 |> and give me everything before "Joining in ./make.rc", please?
 |> The error either points to a shell or an awk error.
 |
 |Not a lot gets output there:
 |
 |--- cut here ---
 | . ${uname} ... /bin/uname
 |Operating system is Linux
 |Checking for basic utility set
 | . ${awk} ... /usr/bin/awk
 | . ${rm} ... /bin/rm
 | . ${tr} ... /usr/bin/tr
 |Setting up configuration options ... done
 |--- cut here ---
 |
 |> I have commented out the shell case to test awks, and i cannot
 |> reproduce with all of nawk, gawk, busybox awk and also mawk, which
 |> i think (have heard) is the default awk on Debian.  So dead end
 |> also there.
 |
 |FWIW mawk 1.3.3 seems to be installed as /usr/bin/awk on my Debian systems.

I have 1.3.4 here.  This is the snippet in question

   < ${rc} ${awk} 'BEGIN{line = ""}{
      gsub(/^[[:space:]]+/, "", $0)
This removes leading indentation
      gsub(/[[:space:]]+$/, "", $0)
      if(gsub(/\\$/, "", $0)){
         line = line $0
         next
      }else
         line = line $0
      if(index(line, "#") == 1){
         line = ""
This strips comments
      }else if(length(line)){
         print line
         line = ""
      }
   }' |

So looking at this it seems to be a bug in the Debian mawk you are
using.  Or have i missed a glitch in the code above, hmmm.

In Debian, there is another mawk.
To build s-nail issue apt-get install git build-essential original-awk

All the best!


SZÉPE Viktor, webes alkalmazás üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
~~~
ügyelet/hotline: +36-20-4242498  s...@szepe.net  skype: szepe.viktor
Budapest, III. kerület





Reply via email to