[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gperf 3.1 breaks module unicase
From: |
Tim Ruehsen |
Subject: |
Re: gperf 3.1 breaks module unicase |
Date: |
Wed, 15 Feb 2017 13:02:14 +0100 |
User-agent: |
KMail/5.2.3 (Linux/4.9.0-1-amd64; KDE/5.28.0; x86_64; ; ) |
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
signature.asc
Description: This is a digitally signed message part.