Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96743 - emerge gdbm-1.8.3-r1 fails during install stage
Summary: emerge gdbm-1.8.3-r1 fails during install stage
Status: RESOLVED DUPLICATE of bug 24178
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High blocker (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-21 16:37 UTC by Douglas Creager
Modified: 2006-04-12 10:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed fix (gdbm-1.8.3.patch,468 bytes, patch)
2005-06-21 16:53 UTC, Douglas Creager
Details | Diff
Patch for gdbm-1.8.3-r1.ebuild (ebuild.patch,677 bytes, patch)
2005-09-10 07:43 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Creager 2005-06-21 16:37:05 UTC
Emerging gdbm-1.8.3-r1 fails during the install stage if the "bin" user and group do not exist.  If they do 
exist, the installation succeeds.

The 1.8.0-r5 version of the ebuild includes a line in src_unpack that "darwintoolizes" the ebuild 
Comment 1 Douglas Creager 2005-06-21 16:37:05 UTC
Emerging gdbm-1.8.3-r1 fails during the install stage if the "bin" user and group do not exist.  If they do 
exist, the installation succeeds.

The 1.8.0-r5 version of the ebuild includes a line in src_unpack that "darwintoolizes" the ebuild  this 
seems to generate the appropriate user and group if they don't exist, causing the ebuild to succeed in 
both cases.  For some reason, this line is missing in the 1.8.3-r1 ebuild.  Should it still be there?

Reproducible: Sometimes
Steps to Reproduce:
1.  Make sure bin user/group don't exist.
2.  "emerge gdbm"

Actual Results:  
Emerge error during installation phase:

[...snip...]
/usr/bin/install -c -m 644 -o bin -g bin gdbm.h \
        /var/tmp/portage/gdbm-1.8.3-r1/image//usr/include/gdbm.h
install: bin: Invalid argument
make: *** [install] Error 67


Expected Results:  
Successful emerge
Comment 2 Douglas Creager 2005-06-21 16:53:36 UTC
Created attachment 61690 [details, diff]
Proposed fix

It turns out that the darwintoolize call is not enough, since it does not
create the bin user/group.  Taking another clue from the 1.8.0-r5 ebuild, you
can create the bin user/group in pkg_setup.  This patch seems to cause the
ebuild to succeed regardless of whether or not bin exists before running
emerge.
Comment 3 Dick Marinus 2005-07-20 11:42:19 UTC
thank you douglas!

but be carefull, this patch let emerge use features which need /usr/bin/seq,
this is provided by coreutils-darwin.
Comment 4 Fabian Groffen gentoo-dev 2005-09-10 07:43:18 UTC
Created attachment 68113 [details, diff]
Patch for gdbm-1.8.3-r1.ebuild

get around
"uclibctoolize() is depreciated, please just use libtoolize()!"
and add user/group bin on ppc-macos
Comment 5 Fabian Groffen gentoo-dev 2005-09-10 07:57:35 UTC
We now have a working gdbm again since it was marked stable on 16 Apr 2005.

Fixed in CVS
Comment 6 splite 2005-09-20 20:06:20 UTC
Why not just install the files as root:root instead of polluting OS X with
users/groups it doesn't need?  There's no reason that gdbm's files need to be
owned by bin:bin, and good security practice says that you don't install files
that aren't owned by root in system directories.  See bug #24178 for a two-line
fix that installs gdbm's files as root:root.
Comment 7 SpanKY gentoo-dev 2005-09-21 05:42:49 UTC
yeah, this fix is wrong
Comment 8 SpanKY gentoo-dev 2005-09-21 05:43:11 UTC

*** This bug has been marked as a duplicate of 24178 ***
Comment 9 Fabian Groffen gentoo-dev 2005-09-21 08:55:00 UTC
If the bin user/group is dropped, then multiple ebuilds seem to be affected to
me, as I decided to solve it this way since other ebuilds do the same already at
the moment.

comment #5 does make sense to me, and I'd prefer not to use user/group bin on OSX.