Hello, i was testing portage 2.1.1_pre1, and found a problem. Think it's a bug. That's what emerge returns when i try to emerge anything: emerge portage Calculating dependencies... done! >>> Emerging (1 of 1) sys-apps/portage-2.1.1_pre1 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking portage-2.1.1_pre1.tar.bz2 ;-) * Your CFLAGS contain(s) "-fPIC" which can break packages. * Your CXXFLAGS contain(s) "-fPIC" which can break packages. * * Before you file a bug please remove these flags and * re-compile the package in question as well as all its dependencies >>> Unpacking source... >>> Unpacking portage-2.1.1_pre1.tar.bz2 to /var/tmp/portage/portage-2.1.1_pre1/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/portage-2.1.1_pre1/work/portage-2.1.1_pre1 ... >>> Source compiled. >>> Test phase [not enabled]: sys-apps/portage-2.1.1_pre1 >>> Install portage-2.1.1_pre1 into /var/tmp/portage/portage-2.1.1_pre1/image/ category sys-apps /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 81: doins: command not found patching file make.conf /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 85: newins: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 100: dodir: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 107: doexe: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 108: doexe: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 109: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 112: dodir: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 115: doins: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 112: dodir: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 115: doins: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 112: dodir: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 115: doins: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 118: doman: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 123: dodoc: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 124: dodoc: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 125: dodoc: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 127: dodir: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 129: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 129: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 129: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 129: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 129: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 129: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 132: dodir: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 144: dosym: command not found /usr/portage/sys-apps/portage/portage-2.1.1_pre1.ebuild: line 147: dodir: command not found /usr/lib/portage/bin/ebuild.sh: line 331: dodir: command not found touch: cannot touch `/var/tmp/portage/portage-2.1.1_pre1/image///etc/portage/.keep': No such file or directory !!! ERROR: sys-apps/portage-2.1.1_pre1 failed. Call stack: ebuild.sh, line 1540: Called dyn_install ebuild.sh, line 1014: Called src_install portage-2.1.1_pre1.ebuild, line 148: Called keepdir '/etc/portage' ebuild.sh, line 338: Called die !!! Failed to create .keep in /var/tmp/portage/portage-2.1.1_pre1/image///etc/portage (or alike: if it doesnt claim dodir or dosym to be missing, then emake is missing, etc). I'm on amd64.
Ok, i fixed just unpacking the stable portage-2.1 package, taking the ebuild.sh file and overwriting the existing one in /usr/lib/portage/bin/. It's a workaround, but since i had tried to reinstall an older snapshot of portage and it didn't fix the problem, this was the only solution i could find. Thanks for your attention
News: It was my fault. I was just using a script to compile on ram, and forgot it, which doesnt work with the new $PATH set by emerge. Sorry if i made you waste your time.