bash_utils find_lib error check

Create issue
Issue #2110 open
Ian Hinder created an issue

I recently ran into a problem where the package location returned by pkg-config was wrong due to a messed-up system installation. The find_lib function in could check that the library location it returns actually exists. That would have made it much easier to track down this problem. Is there ever any situation where it is valid for find_lib to return a path which doesn't exist?


Comments (2)

  1. Roland Haas
    • removed comment

    The only situation I can think of is when one sets XXX_DIR=NO_BUILD which used to work due to exploiting this type of flaw and should by now be explicitly looked for.

  2. Log in to comment