FEATURES="buildpkg" emerge gentoolkit Calculating dependencies ...done! >>> emerge (1 of 1) app-portage/gentoolkit-0.1.38 to / >>> Unpacking source... >>> Source unpacked. >>> Install gentoolkit-0.1.38 into /var/tmp/portage/gentoolkit-0.1.38/image/ category app-portage >>> dobin: making /usr/portage/app-portage/gentoolkit/files/gentool/gentool-bump-revision executable... >>> dobin: making /usr/portage/app-portage/gentoolkit/files/gentool/gentool-total-coverage executable... >>> dobin: making /usr/portage/app-portage/gentoolkit/files/gentool/gentool-author-coverage executable... >>> dobin: making /usr/portage/app-portage/gentoolkit/files/gentool/gentool-package-count executable... >>> dobin: making /usr/portage/app-portage/gentoolkit/files/scripts/dep-clean executable... >>> dobin: making /usr/portage/app-portage/gentoolkit/files/scripts/pkg-size executable... >>> dosbin: making /usr/portage/app-portage/gentoolkit/files/scripts/pkg-clean executable... >>> dosbin: making /usr/portage/app-portage/gentoolkit/files/scripts/mkebuild executable... >>> dobin: making /usr/portage/app-portage/gentoolkit/files/scripts/echangelog executable... >>> dobin: making /usr/portage/app-portage/gentoolkit/files/scripts/ekeyword executable... man: prepallstrip: strip: strip: >>> Completed installing into /var/tmp/portage/gentoolkit-0.1.38/image/ ./ ./usr/ ./usr/bin/ ./usr/bin/euse ./usr/bin/qpkg ./usr/bin/gentool-package-count ./usr/bin/etcat ./usr/bin/revdep-rebuild ./usr/bin/gentool-author-coverage ./usr/bin/dep-clean ./usr/bin/ewhich ./usr/bin/pkg-size ./usr/bin/gentool-total-coverage ./usr/bin/gentool-bump-revision ./usr/bin/echangelog ./usr/bin/ekeyword ./usr/sbin/ ./usr/sbin/pkg-clean ./usr/sbin/mkebuild ./usr/share/ ./usr/share/doc/ ./usr/share/doc/gentoolkit-0.1.38/ ./usr/share/doc/gentoolkit-0.1.38/euse/ ./usr/share/doc/gentoolkit-0.1.38/euse/README.gz ./usr/share/doc/gentoolkit-0.1.38/euse/ChangeLog.gz ./usr/share/doc/gentoolkit-0.1.38/gentool/ ./usr/share/doc/gentoolkit-0.1.38/gentool/ChangeLog.gz ./usr/share/man/ ./usr/share/man/man1/ ./usr/share/man/man1/revdep-rebuild.1.gz ./usr/share/man/man1/mkebuild.1.gz ./usr/share/man/man1/qpkg.1.gz ./usr/share/man/man1/pkg-clean.1.gz ./usr/share/man/man1/etcat.1.gz ./usr/share/man/man1/ewhich.1.gz ./usr/share/man/man1/euse.1.gz ./usr/share/man/man1/ekeyword.1.gz ./usr/share/man/man1/dep-clean.1.gz ./usr/share/man/man1/echangelog.1.gz ./usr/share/man/man1/pkg-size.1.gz ./usr/share/gentoolkit/ ./usr/share/gentoolkit/histogram.awk >>> Done. >>> extracting info >>> extracting gentoolkit-0.1.38 bzip2: Bad flag `-march=pentium3' bzip2, a block-sorting file compressor. Version 1.0.2, 30-Dec-2001. usage: bzip2 [flags and input files in any order] -h --help print this message -d --decompress force decompression -z --compress force compression -k --keep keep (don't delete) input files -f --force overwrite existing output files -t --test test compressed file integrity -c --stdout output to standard out -q --quiet suppress noncritical error messages -v --verbose be verbose (a 2nd -v gives more) -L --license display software version & license -V --version display software version & license -s --small use less memory (at most 2500k) -1 .. -9 set block size to 100k .. 900k --fast alias for -1 --best alias for -9 If invoked as `bzip2', default action is to compress. as `bunzip2', default action is to decompress. as `bzcat', default action is to decompress to stdout. If no file names are given, bzip2 compresses or decompresses from standard input to standard output. You can combine short flags, so `-v -4' means the same as -v4 or -4v, &c. >>> Merging app-portage/gentoolkit-0.1.38 to / >>> Safely unmerging already-installed instance... <<< obj /usr/share/man/man1/revdep-rebuild.1.gz <<< obj /usr/share/man/man1/qpkg.1.gz <<< obj /usr/share/man/man1/pkg-size.1.gz <<< obj /usr/share/man/man1/pkg-clean.1.gz <<< obj /usr/share/man/man1/mkebuild.1.gz <<< obj /usr/share/man/man1/ewhich.1.gz <<< obj /usr/share/man/man1/euse.1.gz <<< obj /usr/share/man/man1/etcat.1.gz <<< obj /usr/share/man/man1/ekeyword.1.gz <<< obj /usr/share/man/man1/echangelog.1.gz <<< obj /usr/share/man/man1/dep-clean.1.gz <<< obj /usr/share/gentoolkit/histogram.awk <<< obj /usr/share/doc/gentoolkit-0.1.38/gentool/ChangeLog.gz <<< obj /usr/share/doc/gentoolkit-0.1.38/euse/README.gz <<< obj /usr/share/doc/gentoolkit-0.1.38/euse/ChangeLog.gz <<< obj /usr/sbin/pkg-clean <<< obj /usr/sbin/mkebuild <<< obj /usr/bin/revdep-rebuild <<< obj /usr/bin/qpkg <<< obj /usr/bin/pkg-size <<< obj /usr/bin/gentool-total-coverage <<< obj /usr/bin/gentool-package-count <<< obj /usr/bin/gentool-bump-revision <<< obj /usr/bin/gentool-author-coverage <<< obj /usr/bin/ewhich <<< obj /usr/bin/euse <<< obj /usr/bin/etcat <<< obj /usr/bin/ekeyword <<< obj /usr/bin/echangelog <<< obj /usr/bin/dep-clean <<< dir /usr/share/gentoolkit <<< dir /usr/share/doc/gentoolkit-0.1.38/gentool <<< dir /usr/share/doc/gentoolkit-0.1.38/euse <<< dir /usr/share/doc/gentoolkit-0.1.38 --- !empty dir /usr/share/man/man1 --- !empty dir /usr/share/man --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !empty dir /usr/sbin --- !empty dir /usr/bin --- !empty dir /usr >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> app-portage/gentoolkit-0.1.38 merged. >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. gold root # emerge info|grep PKGDIR PKGDIR="/gentoo/packages/-O2 -march=pentium3 -fstack-protector -fprefetch-loop-arrays -funroll-loops -pipe" Reproducible: Always Steps to Reproduce: 1. Set PKGDIR to something with spaces in 2. emerge something with FEATURES="buildpkg" 3. watch it fail Expected Results: It should install as normal and add the package to the right directory. This results in portage thinking the app is installed but not actually installing any files.
maybe the call to xpak in pym/portage.py at roughly line 4755?
fixed by carpaski in his tree.