while trying to emerge star 1.5 I ran into the following problem make[2]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/lib/libschily.a] Error 1 make[1]: *** [install] Error 2 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/libdeflt" ==> MAKING "install" ON SUBCOMPONENT "SRCROOT/libdeflt/libdeflt.mk" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/lib/libdeflt.a" chown: bin: Invalid argument make[2]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/lib/libdeflt.a] Error 1 make[1]: *** [install] Error 2 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/librmt" ==> MAKING "install" ON SUBCOMPONENT "SRCROOT/librmt/librmt.mk" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/lib/librmt.a" chown: bin: Invalid argument make[2]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/lib/librmt.a] Error 1 make[1]: *** [install] Error 2 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/star" ==> MAKING DIRECTORY "/var/tmp/portage/star-1.5_alpha62/image//usr/bin" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/bin/star_fat" chown: bin: Invalid argument make[1]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/bin/star_fat] Error 1 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/mt" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/bin/smt" chown: bin: Invalid argument make[1]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/bin/smt] Error 1 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/rmt" ==> MAKING DIRECTORY "/var/tmp/portage/star-1.5_alpha62/image//usr/sbin" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/sbin/rmt" chown: bin: Invalid argument make[1]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/sbin/rmt] Error 1 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/star_sym" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/bin/star_sym" chown: bin: Invalid argument make[1]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/bin/star_sym] Error 1 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/tartest" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/bin/tartest" chown: bin: Invalid argument make[1]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/bin/tartest] Error 1 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/man" ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/man/man1" ==> MAKING DIRECTORY "/var/tmp/portage/star-1.5_alpha62/image//usr/man/man1" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/man/man1/match.1" chown: bin: Invalid argument make[2]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/man/man1/match.1] Error 1 ==> MAKING "install" ON SUBDIRECTORY "SRCROOT/man/man4" ==> MAKING "install" ON SUBCOMPONENT "SRCROOT/man/man4/makefiles.mk" ==> MAKING DIRECTORY "/var/tmp/portage/star-1.5_alpha62/image//usr/man/man5" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/man/man5/makefiles.5" chown: bin: Invalid argument make[3]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/man/man5/makefiles.5] Error 1 ==> MAKING "install" ON SUBCOMPONENT "SRCROOT/man/man4/makerules.mk" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/man/man5/makerules.5" chown: bin: Invalid argument make[3]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/man/man5/makerules.5] Error 1 make[2]: *** [install] Error 2 make[1]: *** [install] Error 2 make: *** [install] Error 2 !!! ERROR: app-arch/star-1.5_alpha62 failed. !!! Function src_install, Line 46, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3. !!! Relying on the shell to locate gcc, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 2.0.52-r1 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power Macintosh) =============================================================== == System uname: 8.2.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/ qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc emboss imagemagick nls png ppc-macos sdl userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Created attachment 68519 [details, diff] patch for star-1.5_alpha62.ebuild for ppc-darwin there was no ruleset. I guessed the ppc ruleset was close. Compiled for me. Dirk, does this patch work for you too?
> for ppc-darwin there was no ruleset. I guessed the ppc ruleset was close. > Compiled for me. Dirk, does this patch work for you too? Compile seems to work. Install fails with ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/include/align.h" chown: bin: Invalid argument make[2]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/include/align.h] Error 1 ==> MAKING "install" ON SUBCOMPONENT "SRCROOT/inc/avoffset.mk"
ah... then I need to patch some more, as it seems only for x86 or something user bin is being replaced with root. At least I think this problem is caused by a missing user bin. It worked for me because I think I have the user and forgot to remove it. By default it's not there. To be continued.
Created attachment 68597 [details, diff] star-1.5_alpha62.ebuild 2 Dirk, could you please try with this patch? It now also makes sure the bin user is not used on darwin.
Created attachment 68602 [details, diff] star-1.5_alpha62.ebuild 3 implemented suggestions by Kito: - moved cd ${S}/RULES before the arch conditionals - made 'use ppc-macos' 'use userland_Darwin' as this affects darwin only
> Dirk, could you please try with this patch? It now also makes sure the bin > user is not used on darwin. Tried with ebuild 3 Compiles fine, but still problems in install Multiple errors like ==> MAKING DIRECTORY "/var/tmp/portage/star-1.5_alpha62/image//usr/include" ==> INSTALLING "/var/tmp/portage/star-1.5_alpha62/image//usr/include/align.h" chgrp: root: Invalid argument make[2]: *** [/var/tmp/portage/star-1.5_alpha62/image//usr/include/align.h] Error 1
most interesting. I uninstalled darwin-coretools and now I get the same error. Weird, because coreutils only adds a symlink for chgrp. I can't figure out how it calls the chgrp at the moment. The closest I can come is: RULES/rules.prg:CHGRP= @echo " ==> SETTING GROUP ON \"$@\""; chgrp
star-1.5_alpha74 compiles out of the box. ~ppc-macos