Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 681720

Summary: dev-libs/openssl-1.1.0j fails to emerge on musl due to a perl bug
Product: Gentoo Linux Reporter: Marvin <marvin_164>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, musl
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 677012    
Attachments: emerge --info
Build log
perl-5.28.1 upstream patches
perl-5.26.3 upstream patches

Description Marvin 2019-03-25 10:45:56 UTC
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"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-25 10:49:03 UTC
Could you please attach the entire build log to this bug report?
Comment 2 Marvin 2019-03-25 10:56:32 UTC
Created attachment 570698 [details]
emerge --info
Comment 3 Marvin 2019-03-25 10:57:01 UTC
Created attachment 570700 [details]
Build log
Comment 4 Marvin 2019-03-25 12:13:47 UTC
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
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-25 18:55:55 UTC
Some other musl user I talked to were able to confirm problem.

Applying https://gist.github.com/anarchpenguin/da0344e9d37ab05f675313a1a66ca015 fixed the issue.
Comment 6 Jory A. Pratt gentoo-dev 2019-03-25 19:08:25 UTC
Created attachment 570790 [details]
perl-5.28.1 upstream patches
Comment 7 Jory A. Pratt gentoo-dev 2019-03-25 19:10:01 UTC
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.
Comment 8 Marvin 2019-03-26 11:32:39 UTC
Can confirm, the patches solved it.
Comment 9 Jory A. Pratt gentoo-dev 2019-04-13 19:24:11 UTC
5.26.3/5.28.1 added to musl overlay with appropriate patches.
Comment 10 Jory A. Pratt gentoo-dev 2019-06-13 00:50:18 UTC
5.28.2 is now stable and works as expected with musl so closing.