First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 96743
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 24178
Assigned To: Gentoo for Mac OS X <ppc-macos@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Douglas Creager <dc1847@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gdbm-1.8.3.patch Proposed fix patch Douglas Creager 2005-06-21 16:53 0000 468 bytes Details | Diff
ebuild.patch Patch for gdbm-1.8.3-r1.ebuild patch Fabian Groffen 2005-09-10 07:43 0000 677 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 96743 depends on: Show dependency tree
Bug 96743 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-21 16:37 0000
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 From Douglas Creager 2005-06-21 16:37:05 0000 -------
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 From Douglas Creager 2005-06-21 16:53:36 0000 -------
Created an attachment (id=61690) [details]
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 From Dick Marinus 2005-07-20 11:42:19 0000 -------
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 From Fabian Groffen 2005-09-10 07:43:18 0000 -------
Created an attachment (id=68113) [details]
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 From Fabian Groffen 2005-09-10 07:57:35 0000 -------
We now have a working gdbm again since it was marked stable on 16 Apr 2005.

Fixed in CVS

------- Comment #6 From splite 2005-09-20 20:06:20 0000 -------
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 From SpanKY 2005-09-21 05:42:49 0000 -------
yeah, this fix is wrong

------- Comment #8 From SpanKY 2005-09-21 05:43:11 0000 -------

*** This bug has been marked as a duplicate of 24178 ***

------- Comment #9 From Fabian Groffen 2005-09-21 08:55:00 0000 -------
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.

First Last Prev Next    No search results available      Search page      Enter new bug