homebrew-test-bot icon indicating copy to clipboard operation
homebrew-test-bot copied to clipboard

Build failure due to deleted `etc` files from built dependencies

Open cho-m opened this issue 2 years ago • 1 comments

I was debugging ocaml bump failure (Homebrew/homebrew-core#102436) and noticed that newly built ocaml-findlib was causing failures for subsequent formulae that depended on it due to missing etc/findlib.conf.

I think the issue is due to the etc files getting cleaned up and not being restored for dependents that are also being bottled:

https://github.com/Homebrew/homebrew-test-bot/blob/c2c4be711d4dc8b5459388dda87ac3d0409b1e42/lib/tests/formulae.rb#L450-L451

Was able to test that modifying etc to pkgshare/"etc" avoided issue, but that loses the advantage of preserving user-modifications via etc directory.

cho-m avatar May 28 '22 21:05 cho-m

Good catch @cho-m. This will need a bug fix to test-bot.

MikeMcQuaid avatar May 30 '22 08:05 MikeMcQuaid