Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517236 - java-vm-2.eclass: pkg_postinst does not handle EPREFIX
Summary: java-vm-2.eclass: pkg_postinst does not handle EPREFIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-16 11:58 UTC by Michael Haubenwallner (RETIRED)
Modified: 2014-07-22 06:39 UTC (History)
1 user (show)

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


Attachments
use EROOT in java-vm-2_pkg_postinst (java-vm-2_eprefix.diff,1.11 KB, patch)
2014-07-16 11:58 UTC, Michael Haubenwallner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Haubenwallner (RETIRED) gentoo-dev 2014-07-16 11:58:37 UTC
Created attachment 380812 [details, diff]
use EROOT in java-vm-2_pkg_postinst

As JAVA_VM_SYSTEM and JAVA_VM_DIR are relative to EPREFIX, pkg_postinst() should use EROOT instead of ROOT for them.

Without this patch, installing java in Prefix on a Gentoo host (with configured java) leaves the Prefix java unconfigured, as the host-java symlinks are found.

Thanks!
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2014-07-21 19:39:58 UTC
EROOT=$ROOT -> EROOT=${ROOT} for consitency. Other than that please go ahead.
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2014-07-22 06:39:16 UTC
Done, thanks!