In gcc 4.8 default warnings have changed and -Wformat is no longer on by default. This means -Werror doesn't imply -Werror=format. Therefore the test in python for __attribute((format(PyArg_ParseTuple, 1, 2))) passes. However pygobject has -Wformat=error and it fails to build because of an error in a python header. This is present both in python 2.7 and python 3.2. Reproducible: Always
Created attachment 332468 [details, diff] Fix for python 3.2.3-r2 I promised to supply patches with bugs, so here is a patch for python 3.2.3-r2.
Add epatch_user to the ebuilds for python.
The Summary says gcc 4.7 but your Description says gcc 4.8. Which?
4.8. Sorry for the typo.
GCC 4.8 isn't in the official tree. Please reopen this bug report when it is, and if this is then still a problem.
gcc 4.8 is out
-Wformat by default is a patch we add ourselves. When we add 4.8 to the tree it will have the same behaviour.
I've verified that with our patchset the python configure check (checking whether gcc supports ParseTuple __format__...) fails like it should. It does seem to me that your patch is correct anyways and the check is broken without it, but I don't know the context so I'll let the python guys decide what to do with it.