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

Bug 791184

Summary: ssl-cert.eclass: gen_key() fails when pre-compiled binary package is being installed
Product: Gentoo Linux Reporter: Tomoatsu Shimada <shimarin>
Component: EclassesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo, martin.dummer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Tomoatsu Shimada 2021-05-20 10:15:45 UTC
When package is being installed with emerge -k,  "environment" and "eclass-debug.log" are not there unser ${T} during install process.

In that case, "openssl genrsa" fails as gen_key() passes those filenames as random seed.

Reproducible: Always

Steps to Reproduce:
1. emerge -b apache
2. rm -rf /etc/ssl/apache2
3. emerge -k apache
Actual Results:  
Directory /etc/ssl/apache2 is not created

Expected Results:  
Default ssl cert is generated under /etc/ssl/apache2
Comment 1 Martin Dummer 2023-01-12 19:47:52 UTC
I am working on that.