How to prevent dylib from linkage fixing

(Alex Bobrikovich) #1

Hi Homebrew Community

I have started developing own formula and faced with [issue](

Error: Failed changing dylib ID of /usr/local/Cellar/metanorma/1.1.0/libexec/lib/node_modules/puppeteer/.local-chromium/mac-609904/chrome-mac/ Framework.framework/Versions/A/Libraries/libEGL.dylib
from @rpath/libEGL.dylib
to /usr/local/opt/metanorma/libexec/lib/node_modules/puppeteer/.local-chromium/mac-609904/chrome-mac/ Framework.framework/Versions/A/Libraries/libEGL.dylib
Error: Failed to fix install linkage

Problem happens for which embedded in [puppeteer] ( npm package.

I’m %99 sure that we should not try to fix linkage for those dylib which inside some .app

I have found logic which control this but looks like it will remote linkage fix at all


  • Is there a way to prevent linkage fix for particular files?
  • Maybe make sense to skip linkage for dylib inside app bundle?

(Sean Molenaar) #2

App files should really be installed with casks instead of formula, there’s also no way to prevent this behavior as far as I know.

(Alex Bobrikovich) #3

Thanks for help, BTW I have found workaround already I just download on post_install step in this case it will not be fixed

But I will think about your suggestion because it more transparent