debug-print: use PORTAGE_GROUP iso hardcoded portage
authorFabian Groffen <grobian@gentoo.org>
Sun, 30 Sep 2012 12:11:25 +0000 (14:11 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 30 Sep 2012 12:11:25 +0000 (14:11 +0200)
With the new chown wrapper we get spammed to death by each and every
ebuild due to us chgrp-ing to a non-existant group.  Use the once
determined for Portage at configure time instead.

bin/ebuild.sh

index d4dde0591074bde6d74b0ab31c9b19b6cf621fa3..9df77ee6d1c438f244a2b9b20c53625e36e74ba8 100755 (executable)
@@ -176,7 +176,7 @@ debug-print() {
                # default target
                printf '%s\n' "${@}" >> "${T}/eclass-debug.log"
                # let the portage user own/write to this file
-               chgrp portage "${T}/eclass-debug.log" &>/dev/null
+               chgrp ${PORTAGE_GROUP} "${T}/eclass-debug.log" &>/dev/null
                chmod g+w "${T}/eclass-debug.log" &>/dev/null
        fi
 }