New comment by ar-jan on void-packages repository https://github.com/void-linux/void-packages/pull/41812#issuecomment-1732591052 Comment: I'm stuck. I've changed it to install to `/usr/lib/grass83`. I'm not quite sure why `/opt` was picked, but before that it was already strange to first install to `/usr/share` and then move the whole install dir to `/usr/lib` anyway. Grass has `--includedir=DIR` and `--libdir=DIR` options but I couldn't get those options to work, setting it to e.g. `--includedir=/usr/include` appears to do nothing. The library paths for `grass.pc` had to be fixed, but I'm still getting the `unresolvable shlib` problem. Grass compile and install appears to work fine. QGIS can be compiled with grass and the configure phase reports finding grass, but then when actually installing qgis the grass libraries can't be found (if I remove grass-devel from qgis makedepends it can be installed). If I compile QGIS with grass-devel in makedepends, it starts like this: > ./xbps-src pkg -C qgis > Package grass was not found in the pkg-config search path. > Perhaps you should add the directory containing `grass.pc' > to the PKG_CONFIG_PATH environment variable > No package 'grass' found But despite that, qgis__do_configure.log then says: > -- Found GRASS 8: /usr/lib/grass83 (8.3.0, off_t size = ) (Maybe because of passing setting the location with configure arg `GRASS_PREFIX8`?) When I install the grass-devel built in that same branch, I get this when testing: > pkg-config --variable=prefix grass > /usr/lib/grass83 While without `grass-devel` installed, I get the same `PKG_CONFIG_PATH` warning. So the issue seems to come from pkg-config? Anyone want to try building it and see if they spot what's happening? `https://github.com/ar-jan/void-packages/tree/qgis-proj`