dev-db/postgresql should depend on sys-apps/mktemp. Otherwise the init-script will fail with: # /etc/init.d/postgresql start * Caching service dependencies ... sh: /bin/mktemp: No such file or directory * Failed to create temporary cache! bash: /var/lib/init.d/depcache: No such file or directory sh: /bin/mktemp: No such file or directory * Failed to create temporary cache! gawk: /lib/rcscripts/awk/gendepends.awk:506: fatal: expression for `>>' redirection has null string value * Failed to cache service dependencies [ !! ] * Error running '/sbin/depscan.sh'! * Please correct any problems above. Reproducible: Always Steps to Reproduce: 1. emerge postgresql (without mktemp on the system) 2. /etc/init.d/postgresql start emerge mktemp fixes the problem
Have you system in ~arch? If yes, update your coreutils first.