The devel/pango package seems to suffer from the same issues with rpath as devel/gobject-introspection and others. Here is my analysis and solution. During the build phase, the devel/pango package runs help2man to generate a man page. In turn, help2man runs a just-built, uninstalled executable (pango-view in this case) with help options and harvests the output for the man page. At least on MacOS, executing uninstalled programs fails because of rpath issues. LD_LIBRARY_PATH would resolve this, but help2man does not pass along its environment. However, it is possible to wrap the executable in a script that does insert LD_LIBRARY_PATH into the environment. I propose the following patch to existing files, a new patch, and a wrapper script. This works perfectly for me on MacOS and should not affect other platforms as far as I can tell. Suggestions for improvements welcome. Thanks. Cheers, Brook
Attachment:
patch
Description: Binary data
Attachment:
patch-utils_meson.build
Description: Binary data
Attachment:
pango-view.sh
Description: Binary data