New issue by newbluemoon on void-packages repository https://github.com/void-linux/void-packages/issues/33559 Description: automake 1.16.4 made some changes to `python.m4` which leads to `$PYTHON_PREFIX` instead of `$prefix` ending up in pkg-config .pc files. So far I have found two: /usr/lib/pkgconfig/compizconfig-python.pc has a line `pyexecdir=${PYTHON_EXEC_PREFIX}/lib/python3.10/site-packages` and /usr/lib/pkgconfig/xcb-proto.pc has `pythondir=${pc_sysrootdir}${PYTHON_PREFIX}/lib/python3.10/site-packages` xcb-proto is a dependency of polybar which fails to build right now because `$PYTHON_PREFIX` cannot be resolved. There is a newer automake 1.16.5 where they again made some changes to `python.m4`, but the problem consists. I found following patch (against 1.16.5) solves it (it actually reverts the lines to what they were before the change): ``` --- a/m4/python.m4 2021-10-04 04:51:12.000000000 +0200 +++ b/m4/python.m4 2021-10-15 08:38:08.575081215 +0200 @@ -263,7 +263,7 @@ case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` - am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` + am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,${PYTHON_PREFIX},"` ;; *) case $am_py_prefix in @@ -305,7 +305,7 @@ case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` - am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` + am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,${PYTHON_EXEC_PREFIX},"` ;; *) case $am_py_exec_prefix in ``` But I’m not sure about any implications. I filed a bug report upstream and as soon as it appears on their mailing list I will post the link. For reference: https://git.savannah.gnu.org/cgit/automake.git/log/m4/python.m4 The problematic commits are the ones from 2021-05-18 and 2021-09-19.