Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381779 - sys-libs/csu-79: Preparing sources failed
Summary: sys-libs/csu-79: Preparing sources failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: PPC OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-04 12:38 UTC by Konstantin Tokarev
Modified: 2011-09-04 13:23 UTC (History)
0 users

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 Konstantin Tokarev 2011-09-04 12:38:21 UTC
Description of sys-libs/csu states: "Darwin Csu (crt1.o) - Mac OS X 10.6.6 and 10.7 versions". However, `emerge -u --ask system` suggests to install it on 10.5.
Comment 1 Fabian Groffen gentoo-dev 2011-09-04 12:47:28 UTC
Yeah?  We install newer versions for ages on older OSX versions, see darwin-miscutils, gcc-apple, binutils-apple, gdb-apple ;)

It's one of the great things of being on Gentoo Prefix -- even though you're on 10.4 (like I used to be until my old G5 died 2 weeks ago) you can still have a 4.2.1 compiler which is necessary to compile e.g. qt.  IOW we can go where noone has ever thought we could go before.

Or does your report mean it doesn't compile?  It did back on 10.4/ppc.
Comment 2 Konstantin Tokarev 2011-09-04 13:08:31 UTC
>like I used to be until my old G5 died 2 weeks ago

My condolences :(

>Or does your report mean it doesn't compile?

Yes, it doesn't compile (I thought it's OK when read description of package):

>>> Preparing source in /Volumes/Development/Gentoo/var/tmp/portage/sys-libs/csu-79/work ...
sed: can't read Makefile: No such file or directory
 * ERROR: sys-libs/csu-79 failed (prepare phase):
 *   (no error message)
Comment 3 Fabian Groffen gentoo-dev 2011-09-04 13:13:54 UTC
huh?  Did it download the correct file?  Were there unpack errors?
Comment 4 Fabian Groffen gentoo-dev 2011-09-04 13:14:49 UTC
you should be able to find a copy on my devspace: http://www.gentoo.org/~grobian/distfiles/Csu-79.tar.gz
Comment 5 Konstantin Tokarev 2011-09-04 13:15:13 UTC
ls /Volumes/Development/Gentoo/var/tmp/portage/sys-libs/csu-79/work/Csu-79/
Makefile  crt.c  dyld_glue.s  icplusplus.c  lazy_dylib_helper.s  lazy_dylib_loader.c  start.s
Comment 6 Konstantin Tokarev 2011-09-04 13:16:08 UTC
 * Csu-79.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking Csu-79.tar.gz to /Volumes/Development/Gentoo/var/tmp/portage/sys-libs/csu-79/work
>>> Source unpacked in /Volumes/Development/Gentoo/var/tmp/portage/sys-libs/csu-79/work
>>> Preparing source in /Volumes/Development/Gentoo/var/tmp/portage/sys-libs/csu-79/work ...
sed: can't read Makefile: No such file or directory
 * ERROR: sys-libs/csu-79 failed (prepare phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  62:  Called call-ebuildshell 'src_prepare'
 *   environment, line 100:  Called src_prepare
 *   environment, line 213:  Called die
 * The specific snippet of code:
 *       sed -i -e 's:$(SYMROOT)/crt0.o::' -e '/LOCLIBDIR)\/crt0.o/d' Makefile || die
Comment 7 Fabian Groffen gentoo-dev 2011-09-04 13:17:51 UTC
oh, crap.

case-insensitivity
Comment 8 Konstantin Tokarev 2011-09-04 13:18:53 UTC
I'm on case-sensitive volume
Comment 9 Fabian Groffen gentoo-dev 2011-09-04 13:19:08 UTC
RCS file: /var/cvsroot/gentoo-x86/sys-libs/csu/csu-79.ebuild,v
retrieving revision 1.2
diff -u -r1.2 csu-79.ebuild
--- csu-79.ebuild       3 Sep 2011 10:52:52 -0000       1.2
+++ csu-79.ebuild       4 Sep 2011 13:18:38 -0000
@@ -13,6 +13,7 @@
 SLOT="0"
 KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
 IUSE=""
+S=${WORKDIR}/Csu-${PV}
 
 src_prepare() {
        # since we don't have crt0, we can't build it either


bet it works for you if you add that S= line
Comment 10 Konstantin Tokarev 2011-09-04 13:22:54 UTC
It works!
Comment 11 Fabian Groffen gentoo-dev 2011-09-04 13:23:41 UTC
thanks, committed!