lxml >= 5 broken on RHEL6
while debugging pipeline-definition#221 (closed) I found https://gitlab.com/redhat/red-hat-ci-tools/kernel/cki-internal-pipelines/cki-internal-contributors/-/jobs/5961634390#L660 with
gcc -pthread -shared build/temp.linux-x86_64-cpython-39/src/lxml/etree.o -lxslt -lexslt -lxml2 -lrt -lz -lm -o build/lib.linux-x86_64-cpython-39/lxml/etree.cpython-39-x86_64-linux-gnu.so
building 'lxml.objectify' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/builds/5961634390/software/venv/include -I/usr/local/include/python3.9 -c src/lxml/objectify.c -o build/temp.linux-x86_64-cpython-39/src/lxml/objectify.o -w
In file included from src/lxml/etree_api.h:10,
from src/lxml/objectify.c:1284:
src/lxml/etree.h:241: error: wrong number of arguments specified for ‘__deprecated__’ attribute
Compile failed: command '/usr/lib64/ccache/gcc' failed with exit code 1
creating tmp
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitd_yxpg9p.c -o tmp/xmlXPathInitd_yxpg9p.o
cc tmp/xmlXPathInitd_yxpg9p.o -lxml2 -o a.out
error: command '/usr/lib64/ccache/gcc' failed with exit code 1
[end of output]