Bug#354401: Error "chown: `root:UNKNOWN': invalid group" when setting up tex-common
On Mon, 27 Feb 2006, Norbert Preining wrote:
> > dixsept:~> echo ".$(/usr/bin/stat --format="%G" /var/cache/fonts)."
> > .UNKNOWN.
>
> Ahh, so I assume that /var/cache/fonts exists, but it is owned by a
> group id NOT listed in /etc/groups, so stat cannot find it.
I suggest the following fix to the tex-common config script:
--- config.in (Revision 949)
+++ config.in (Arbeitskopie)
@@ -59,6 +59,10 @@
PERMS=$(stat --format="%a" /var/cache/fonts 2>/dev/null)
GROUP=$(stat --format="%G" /var/cache/fonts 2>/dev/null)
+ if [ "$GROUP" = "UNKNOWN" ] ; then
+ GROUP=$(stat --format="%g" /var/cache/fonts 2>/dev/null)
+ fi
+
# see wether we already have asked this question once
db_fget tex-common/managecache seen || true
SEEN="$RET"
Ie if the group cannot be found, take instead the numeric id. The user
can later change the group id to a group name, but if he wants to leave
the group id as is, we do
chown "root:$GROUP"
in the postinst script, which also works with numeric ids. So I would
say that would be a solution.
Comments from the rest of the group?
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at> Università di Siena
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
LYBSTER (n., vb.)
The artificial chuckle in the voice-over at the end of a supposedly
funny television commercial.
--- Douglas Adams, The Meaning of Liff
Reply to: