Index: gdbm-1.8.3-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-libs/gdbm/gdbm-1.8.3-r1.ebuild,v retrieving revision 1.15 diff -u -r1.15 gdbm-1.8.3-r1.ebuild --- gdbm-1.8.3-r1.ebuild 10 Sep 2005 14:55:53 -0000 1.15 +++ gdbm-1.8.3-r1.ebuild 21 Sep 2005 17:24:22 -0000 @@ -15,15 +15,6 @@ DEPEND="berkdb? ( sys-libs/db )" -pkg_setup() { - # On OSX there is no user/group bin, see bug #96743 - if use ppc-macos; - then - enewgroup bin - enewuser bin -1 -1 -1 bin - fi -} - src_unpack() { unpack ${A} cd "${S}" @@ -38,11 +29,19 @@ } src_install() { - make INSTALL_ROOT="${D}" install || die + # On OSX for example, the group of root is wheel, not root, so we + # have to find this out dynamically. On Solaris we should use + # /usr/xpg4/bin/id in order to make this work. + local root_group=`id -gn root` + + make INSTALL_ROOT="${D}" \ + BINOWN="root" BINGRP="${root_group}" \ + install || die make \ includedir=/usr/include/gdbm \ INSTALL_ROOT="${D}" \ + BINOWN="root" BINGRP="${root_group}" \ install-compat || die dodoc ChangeLog NEWS README