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

Bug 665272

Summary: dev-libs/openssl-1.0.2p fails in prefixed environment
Product: Gentoo Linux Reporter: rwgardner <rwgardner>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description rwgardner 2018-09-05 13:09:52 UTC
Sorry I don't have the emerge --info available because I am running this via the bootstrap-prefix.sh script from the Gentoo Prefix project and I don't have a working prefix environment yet.  (However, I don't think it's too important here.)

This emerge fails in a prefix environment because it tries to install in /usr, outside the prefix.

I believe the problem in the ebuild is summarized by the following manually-created poor-man's "patch".


multilib_src_install() {  
--      # We need to create ${D}/usr on our own to avoid a race condition #665130
--      if [[ ! -d "${D%/}/usr" ]]; then
++      # We need to create ${ED}/usr on our own to avoid a race condition #665130
++      if [[ ! -d "${ED%/}/usr" ]]; then
                # We can only create this directory once
--              mkdir "${D%/}"/usr || die
++              mkdir "${ED%/}"/usr || die
        fi
                                                                                                                                        
        emake INSTALL_PREFIX="${D%/}" install                                                                                           
}

If you need more info, let me know, and hopefully I will be able to get it when my system is in a better state.  Thanks.
Comment 1 Larry the Git Cow gentoo-dev 2018-09-05 14:04:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0c2e3314fb21e805502c41e23b6e6e784389d63

commit d0c2e3314fb21e805502c41e23b6e6e784389d63
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-09-05 14:03:19 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-09-05 14:03:59 +0000

    dev-libs/openssl: fix broken prefix support
    
    Commit ed7230d4486049fdd155ac6b86e07578d624aeb0 has broken prefix
    support which this commit will fix.
    
    Closes: https://bugs.gentoo.org/665272
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 dev-libs/openssl/openssl-1.0.2p.ebuild     | 6 +++---
 dev-libs/openssl/openssl-1.1.1_pre9.ebuild | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)