Hi,

just want to share my solution (project Wget), in case anyone needs a quick 
solution to work with gperf < 3.1 and latest gnulib (using unicode stuff).

Darshit updated gnulib for Wget yesterday and that broke my builds (Debian 
unstable, gperf 3.0.4). I added the following to bootstrap.conf:

bootstrap_post_import_hook ()
{
  # We need to patch unicase/special-casing-table.h for gperf < 3.1
  GPERF_VER=$(gperf --version | {
    IFS=' .' read x y major minor bugfix _
    printf "%d%02d%02d" $major $minor $bugfix
  })

  if [ $GPERF_VER -lt 30100 ]; then
    echo "Patching lib/unicase/special-casing-table.h for gperf < 3.1"
    sed -i "s/gl_unicase_special_lookup.*/gl_unicase_special_lookup\ \(const 
char \*str, size_t len\)/g" lib/unicase/special-casing-table.h
  fi
}


Best Regards,

        Tim Rühsen

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to