Ryan Skraba created AVRO-2660:
---------------------------------
Summary: Travis build should verify glibc and musl compilation.
Key: AVRO-2660
URL: https://issues.apache.org/jira/browse/AVRO-2660
Project: Apache Avro
Issue Type: Improvement
Components: c
Reporter: Ryan Skraba
The C language can be compiled with glibc and
[musl|https://github.com/apache/avro/pull/740]. We should add a check to the
build to ensure that this is true.
(To verify: uclibc-ng?)
A minimum environment to test musl using alpine docker:
docker run --rm -it -v $PWD:$HOME/avro -w $HOME/avro alpine:3.7 sh -c "apk add
g++ cmake bash jansson-dev make && cd lang/c && ./build.sh test"
For glibc (like the build process uses), we can do the equivalent:
docker run --rm -it -v $PWD:$HOME/avro -w $HOME/avro gcc:9.2 bash -c "apt-get
update -y && apt-get -y install cmake libjansson-dev && cd lang/c && ./build.sh
test"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)