Emerging openssl > 1.0.2 fails on musl systems due to a bug in the perl index function. The letter at the end gets truncated causing a version mismatch. This happens on every version later than 1.0.2. Reproducible: Always Steps to Reproduce: 1. Emerge openssl-1.1.* on musl Actual Results: Emerge fails close to the end. Expected Results: Emerge succeeds. The index function shouldn't truncate the letter e.g. 1.1.0"j"
Could you please attach the entire build log to this bug report?
Created attachment 570698 [details] emerge --info
Created attachment 570700 [details] Build log
This is the same bug, also tried with different gcc options and also with profile 42 and 43 (current). https://github.com/openssl/openssl/issues/8032
Some other musl user I talked to were able to confirm problem. Applying https://gist.github.com/anarchpenguin/da0344e9d37ab05f675313a1a66ca015 fixed the issue.
Created attachment 570790 [details] perl-5.28.1 upstream patches
Created attachment 570792 [details] perl-5.26.3 upstream patches upstream patches that need to be applied to both 5.26.x and 5.28.x are being attached in a tarball. This should speed up the inclusion into the tree hopefully.
Can confirm, the patches solved it.
5.26.3/5.28.1 added to musl overlay with appropriate patches.
5.28.2 is now stable and works as expected with musl so closing.