Bzip2 and SSL issue with sourceware.org

While trying to install node on a Pi I ran across an issue that I assume impacts other brews as well. Bzip2 is a dep, but its download link points to sourceware.org, which has an invalid SSL cert. If I had to guess it is because the cert is for cygwin, but I honestly don’t know. I could have just bypassed this with insecure, but that isn’t best practice…

Anyway, other things that direct to sourceware have mirrors and use those instead (in my case debian), but no bzip2. If you change that or add a mirror the rest of the install works fine. I used https://fossies.org/linux/misc/bzip2-1.0.8.tar.gz just to verify that it would work, but obviously any other source should work as well.

Hopefully I didn’t post this in entirely the wrong place.

Thanks for the suggestion, Matt! Feel free to open a PR if you like. https://github.com/Homebrew/homebrew-core/blob/master/Formula/bzip2.rb