[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#912605: splitvt hard codes locations of various libc headers



Source: splitvt
Version: 1.6.6-13
Tags: patch upstream
Control: block 798955 by -1

splitvt has a strange build system. There is a configure script that
compiles and runs a config.c, which does most of the checks.
Unfortunately, the weirdness does not stop there. It checks for headers
in hard coded locations and that breaks with non-glibc libcs as well as
a glibc that fixes #798955. Then, config.c will deem required headers as
absendt and splitvt will fail to build.

I looked and tried to fix config.c (which is already patched to cope
with a multiarch libtermcap.so). It was too difficult. Thus I went ahead
and translated config.c to shell. The resulting config.sh is a little
shorter, it fixes the hard coded headers (by invoking the preprocessor)
and it works with cross compiling if you supply a suitable CC. Other
than that, I tried to keep close to the original implementation. Please
consider replacing config.c with config.sh. It's an invasive change, but
without it, splitvt will ftbfs before too long.

Helmut

Attachment: config.sh
Description: Bourne shell script


Reply to: