Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713996 - sys-apps/baselayout-java-0.1.0-r1: post install fails with active ROOT variable (PATCH)
Summary: sys-apps/baselayout-java-0.1.0-r1: post install fails with active ROOT variab...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-03-22 14:30 UTC by Stefan Langenmaier
Modified: 2020-03-22 23:41 UTC (History)
1 user (show)

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


Attachments
ebuild that respects the root variable (baselayout-java-0.1.0-r2.ebuild,1.31 KB, text/plain)
2020-03-22 14:32 UTC, Stefan Langenmaier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Langenmaier 2020-03-22 14:30:22 UTC
I'm using the ROOT variable to install packages in another directory. 

The package sys-apps/baselayout-java-0.1.0-r1 fails with the following error during the post install step:
 * Generating java cacerts file from system ca-certificates
/build/rootfs/etc/ca-certificates/update.d/java-cacerts: line 2: exec: trust: not found

The problem seems to be that the executable `trust` is not available on the host system but only in directory structure referenced by the ROOT variable and cannot be found on the path.

I'll add an ebuild that fixes the issue for me by referencing it by its absolute path.

Reproducible: Always

Steps to Reproduce:
1. ROOT=/build/rootfs/ emerge -1 sys-apps/baselayout-java -av
Actual Results:  
 * Generating java cacerts file from system ca-certificates
/build/rootfs/etc/ca-certificates/update.d/java-cacerts: line 2: exec: trust: not found
Comment 1 Stefan Langenmaier 2020-03-22 14:32:45 UTC
Created attachment 624476 [details]
ebuild that respects the root variable