I can't make world without the "games" group?

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Aug 26 15:54:57 UTC 2008


On Tue, 26 Aug 2008 18:30:02 +0300, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
> On Tue, 26 Aug 2008 18:04:26 +0300, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
>> % --------------------------------------------------------------
>> % >>> Making hierarchy
>> % --------------------------------------------------------------
>> % cd /home/build/src; make -f Makefile.inc1 hierarchy
>> % cd /home/build/src/etc;         make distrib-dirs
>> % mtree -eU  -f /home/build/src/etc/mtree/BSD.root.dist -p /
>> % mtree -eU  -f /home/build/src/etc/mtree/BSD.var.dist -p /var
>> % mtree: line 48: unknown group games
>> % *** Error code 1
>> %
>> % Stop in /home/build/src/etc.
>> % *** Error code 1
>> %
>> % Stop in /home/build/src.
>> % *** Error code 1
>> %
>> % Stop in /home/build/src.
>> % *** Error code 1
>> %
>> % Stop in /home/build/src.
>> % *** Error code 1
>> %
>> % Stop in /home/build/src.
>> % root at kobe:/home/build/src#
>>
>> That's because src/etc/mtree/BSD.usr.dist and BSD.var.dist include
>> references to the `games' user and group.  I'll try to split the
>> relevant bits in a new `BSD.games.dist' file which will be conditionally
>> passed to mtree(8) depending on WITHOUT_GAMES.
>>
>> Is this the same error as the one you are seeing?  When I prepare a
>> patch for this, would you be willing to test it for me?
>
> Ok, think I got it...
>
> Here's the patch I am testing now.  If this works locally, I'll post it
> for review to our Makefile gurus and commit it when we get it into
> shape.

Yay!  It seems to have worked in 8.0-CURRENT here...

root at kobe:/home/build/src# export WITHOUT_GAMES=yes
root at kobe:/home/build/src# make KERNCONF=KOBE installworld
[...]
--------------------------------------------------------------
>>> Making hierarchy
--------------------------------------------------------------
cd /home/build/src; make -f Makefile.inc1 hierarchy
cd /home/build/src/etc;         make distrib-dirs
mtree -eU  -f /home/build/src/etc/mtree/BSD.root.dist -p /
mtree -eU  -f /home/build/src/etc/mtree/BSD.var.dist -p /var
mtree -eU  -f /home/build/src/etc/mtree/BSD.usr.dist -p /usr
mtree -eU  -f /home/build/src/etc/mtree/BSD.include.dist  -p /usr/include
mtree -deU  -f /home/build/src/etc/mtree/BIND.chroot.dist  -p /var/named
mtree -deU  -f /home/build/src/etc/mtree/BSD.sendmail.dist -p /
cd /; rm -f /sys; ln -s usr/src/sys sys
cd /usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/man;  set - `grep "^[a-zA-Z]" /home/build/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/openssl/man;  set - `grep "^[a-zA-Z]" /home/build/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/nls;  set - `grep "^[a-zA-Z]" /home/build/src/etc/nls.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done

--------------------------------------------------------------
>>> Installing everything
--------------------------------------------------------------
[...]

I've uploaded the patch for 8.0-CURRENT at:

    http://people.freebsd.org/~keramida/diff/games-mtree.diff

and the patch for 7-STABLE at:

    http://people.freebsd.org/~keramida/diff/games-mtree.stable7.diff

The `games-mtree.stable7.diff' should apply on top of today's 7-STABLE
source tree with:

    # cd /var/tmp ; fetch http://people.freebsd.org/~keramida/diff/games-mtree.stable7.diff
    # cd /usr/src ; patch -p0 < /var/tmp/games-mtree.stable7.diff

Can you patch your 7-STABLE /usr/src source tree and run another build &
install cycle?  I think WITHOUT_GAMES=yes should work then.



More information about the freebsd-bugs mailing list