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

Bug 713996

Summary: sys-apps/baselayout-java-0.1.0-r1: post install fails with active ROOT variable (PATCH)
Product: Gentoo Linux Reporter: Stefan Langenmaier <stefan.langenmaier+gentoo>
Component: Current packagesAssignee: Java team <java>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild that respects the root variable

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