Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73624 - function stat_perms() returns error messages on ppc-macos
Summary: function stat_perms() returns error messages on ppc-macos
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 58823
Blocks: 73544
  Show dependency tree
 
Reported: 2004-12-06 22:22 UTC by Mamoru KOMACHI (RETIRED)
Modified: 2005-04-05 21:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-06 22:22:14 UTC
I upgraded portage to 2.0.51-r8, and after that
I get following errors during src_install():

>>> Install bash-completion-20041017-r3 into /var/tmp/portage/bash-completion-20041017-r3/image/ category app-shells
/usr/lib/portage/bin/dodoc: NEWS does not exist.
man:
prepallstrip:
strip: 
strip: 
 * file /var/tmp/portage/bash-completion-20041017-r3/image// was installed with group portage!
/usr/lib/portage/bin/ebuild.sh: line 1: stat: command not found
/usr/lib/portage/bin/ebuild.sh: line 1: printf: 0x: invalid number
chmod: invalid file mode: 
 * file /var/tmp/portage/bash-completion-20041017-r3/image///etc was installed with group portage!
/usr/lib/portage/bin/ebuild.sh: line 1: stat: command not found
/usr/lib/portage/bin/ebuild.sh: line 1: printf: 0x: invalid number
chmod: invalid file mode: 
...

This is because Mac OS X doesn't have stat command (FYI,
FreeBSD doesn have stat but doesn's support -c option,
used in stat_perms()), and so printf doesn't get correct
permission. Since stat is included in coreutils, I suppose
it will not be a problem after we manage to get coreutils
work on Mac OS X.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-12-07 01:03:43 UTC
Assuming this works... it'll be in -r9

http://zarquon.twobit.net/gentoo/portage/ebuild.sh-macos-stat.diff
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-07 04:30:37 UTC
Yes, it works. Thanks for the patch.
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-04-05 21:59:35 UTC
I think this was fixed long ago.... Closing.