Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394421 - dev-java/ibm-jdk-bin-1.6.0.9_p2-r1 fails with -nsplugin
Summary: dev-java/ibm-jdk-bin-1.6.0.9_p2-r1 fails with -nsplugin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 09:53 UTC by Yvan Royon
Modified: 2011-12-12 13:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yvan Royon 2011-12-12 09:53:17 UTC
USE="-nsplugin" emerge =dev-java/ibm-jdk-bin-1.6.0.9_p2-r1

Fails on rm "${ED}${plugin}" || die

Snippet from ebuild:
    if use x86 || use ppc; then
        if use nsplugin; then
            local plugin="/opt/${P}/jre/plugin/$(get_system_arch)/ns7/libjavaplugin_oji.so"
            install_mozilla_plugin "${plugin}"
        else
            rm "${ED}${plugin}" || die 
        fi  
    fi  

With -nsplugin, $plugin is unset; rm tries to delete the $ED directory and dies.

Please switch the 2 lines:
    if use x86 || use ppc; then
        local plugin="/opt/${P}/jre/plugin/$(get_system_arch)/ns7/libjavaplugin_oji.so"
        if use nsplugin; then
            install_mozilla_plugin "${plugin}"
        else
            rm "${ED}${plugin}" || die 
        fi  
    fi  


Reproducible: Always
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2011-12-12 13:53:28 UTC
Fixed, thanks for the report.