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

Bug 682810

Summary: sys-apps/openrc: a 1-liner under /etc/local.d/ gives "no $HOME found in environment."
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: OpenRC Team <openrc>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2019-04-07 10:33:19 UTC
(not sure if this is an eix issue are PAM or base or ....)

This 1-liner works fine when running from the command line (as root):

$ cat /etc/local.d/sync.start 
#!/bin/bash

eix-sync &>/tmp/sync.log


But after reboot I do found in /tmp/sync.log:

$ cat /tmp/sync.log 
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
no $HOME found in environment.
 * Running emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
/usr/bin/git fetch origin
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys from keyserver ...                                    [ ok ]
 * Trusted signature found on top commit
Already up to date.
=== Sync completed for gentoo
q: Updating ebuild cache for /var/db/repos/gentoo ... 
q: Finished 36420 entries in 2.113381 seconds
>>> Syncing repository 'libressl' into '/var/db/repos/libressl'...
/usr/bin/git fetch origin
Already up to date.
=== Sync completed for libressl
q: Updating ebuild cache for /var/db/repos/libressl ... 
q: Finished 23 entries in 0.002316 seconds

Action: sync for repo: gentoo, returned code = 0
Action: sync for repo: libressl, returned code = 0


 * Main gentoo tree does not appear to have changed: exiting
 * Use -a or set have_changed=: in a ! hook to override this check
 * Time statistics:
    11 seconds for syncing
    11 seconds total



*shrug* ?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-07 12:28:41 UTC
I have no clue what this script is or where it comes from, so please explicitly state the package name.
Comment 2 Toralf Förster gentoo-dev 2019-04-07 14:52:08 UTC
(In reply to Michał Górny from comment #1)
> I have no clue what this script is or where it comes from, so please
> explicitly state the package name.

This is just a reproducer of a longer script, the (only) interesting fact is that "eix-sync" is called
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-07 15:13:57 UTC
Please include the full package name in the summary line, then assign the bug correctly.