New comment by ahesford on void-packages repository https://github.com/void-linux/void-packages/issues/33559#issuecomment-944984595 Comment: I'm not exactly sure what `automake` is trying to accomplish here. If you rebuild `xcb-proto` with your patched `automake`, which of the following lines do you see in `/usr/lib/pkgconfig/xcb-proto.pc`? - `pythondir=${pc_sysrootdir}/usr/lib/python3.10/site-packages`, or - `pythondir=${pc_sysrootdir}${prefix}/lib/python3.10/site-packages` The latter is what currently appears in the `xcb-proto` package. In `polybar`, what happens if you `export PYTHON_PREFIX=/usr` either outside of any function or in a `pre_configure` function? Will `pkg-config` to the right thing?