user/py3-psycopg2: FTBFS: error: lvalue required as left operand of assignment
Found on ppc64:
...
gcc -DNDEBUG -g -fwrapv -O3 -Wall -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -DTHREAD_STACK_SIZE=0x100000 -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -fPIC "-DPSYCOPG_VERSION=2.8.5 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=140003 -DHAVE_LO64=1 -I/usr/include/python3.11 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.linux-ppc64-cpython-311/psycopg/psycopgmodule.o -Wdeclaration-after-statement
psycopg/psycopgmodule.c: In function ‘add_module_types’:
psycopg/psycopgmodule.c:921:36: error: lvalue required as left operand of assignment
Py_TYPE(typetable[i].type) = &PyType_Type;
^
psycopg/psycopgmodule.c: In function ‘datetime_init’:
psycopg/psycopgmodule.c:953:30: error: lvalue required as left operand of assignment
Py_TYPE(&pydatetimeType) = &PyType_Type;
^
psycopg/psycopgmodule.c: In function ‘PyInit__psycopg’:
psycopg/psycopgmodule.c:1085:28: error: lvalue required as left operand of assignment
Py_TYPE(&typecastType) = &PyType_Type;
^
psycopg/psycopgmodule.c:1088:25: error: lvalue required as left operand of assignment
Py_TYPE(&chunkType) = &PyType_Type;
^
psycopg/psycopgmodule.c:1091:25: error: lvalue required as left operand of assignment
Py_TYPE(&errorType) = &PyType_Type;
^
error: command '/usr/local/bin/gcc' failed with exit code 1
>>> ERROR: py3-psycopg2: build failed
Caused by recent Python 3.11
bump.