New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/46109#issuecomment-1732371437 Comment: > > Rebasing should allow you to drop everything outside of the original scope of this PR. Thanks for your participation in improving the build helpers to make mesonpy builds less painful. > > Whereas your pybind11 change put cmake and pkg-config files in `/usr/lib`, I kept them in `/usr/share` simply because they are in `share/` in the python package hierarchy. Hopefully this doesn't cause any problems with contourpy. (Most packages favor `/usr/lib` over `/usr/share` for these files, but there are some that stick to `/usr/share`.) We can move them if it causes a problem. > > I think you missed the `--follow-symlinks` in `common/hooks/post-install/13-pkg-config-clean-xbps-cross-base-ref.sh`. Aren't you getting a non-symlink file at `/usr/share/pkgconfig/pybind11.pc`? In case it's useful, this is what I mean: ```diff --- a/common/hooks/post-install/13-pkg-config-clean-xbps-cross-base-ref.sh +++ b/common/hooks/post-install/13-pkg-config-clean-xbps-cross-base-ref.sh @@ -16,7 +16,8 @@ hook() { # s,/usr/armv7l-linux-musleabihf/usr,/usr,g # trailing /usr to avoid clashing with # other $XBPS_CROSS_BASE and $XBPS_CROSS_TRIPLET. - sed -i -e "s,$XBPS_CROSS_BASE/usr,/usr,g" "$f" + sed -i --follow-symlinks \ + -e "s,$XBPS_CROSS_BASE/usr,/usr,g" "$f" fi done } ``` I don't think the `/usr/share` vs `/usr/lib` causes any issue. I went with `/usr/lib` since it seemed more common, but it's reasonable to follow upstream choice.