Sometimes you need to build for different targets and or combinations on the on the one host. So if your make.conf contains something like TARGET_NAME="abcdef" PORTAGE_TMPDIR="${X_TMP_BUILDS_BASE}/${TARGET_NAME}" portage-utils commands, eg. qlop qlist q ... will get stuck in an infinite loop in the initialize enviroment function. For some reason PORTAGE_TMPDIR="${X_TMP_BUILDS_BASE}/$TARGET_NAME" is fine. Reproducible: Always Steps to Reproduce: 1. Add a composite PORTAGE_TMPDIR env variable, consisting of two parts as described above 2. run qlist 3. Actual Results: qlist sit there spinning forever while reading the environement Expected Results: Handle this a bit more gracefully
what version of portage-utils are you using ? please always post `emerge --info` when you file bugs.
Portage 2.1.10.65 (unavailable, gcc-4.7.0, glibc-2.15-r2, 3.4.1+ x86_64) ================================================================= System uname: Linux-3.4.1+-x86_64-Intel-R-_Atom-TM-_CPU_N450_@_1.66GHz-with-gentoo-2.1 Timestamp of tree: Unknown dev-lang/python: 2.7.3-r2::gentoo, 3.2.3-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.9.6-r3::gentoo, 1.11.5::gentoo, 1.12.1::gentoo sys-devel/binutils: 2.22.52.0.3::gentoo sys-devel/libtool: 2.4.2::gentoo sys-kernel/linux-headers: 3.4::gentoo (virtual/os-headers) Repositories: x-portage ACCEPT_KEYWORDS="~amd64" ACCEPT_LICENSE="* -@EULA" CFLAGS="-O2 -march=nocona -mssse3 -mtune=atom --param l1-cache-size=24 --param l1-cache-line-size=32 --param l2-cache-size=512 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=nocona -mssse3 -mtune=atom --param l1-cache-size=24 --param l1-cache-line-size=32 --param l2-cache-size=512 -pipe" DISTDIR="/mnt/tmp0/gentoo/distfiles/" EMERGE_DEFAULT_OPTS="--jobs=10 --load-average=9.9" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news nodoc noinfo notitles parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync webrsync-gpg xattr" GENTOO_MIRRORS="http://distfiles.gentoo.org" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/tmp0/gentoo/sn" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amr caps g3dvl gles2 icu ilbc lto minizip policykit python3 resolvconf sqlite sse3 ssse3 systemd threads vaapi webgl xattr xvmc" Unset: PORTAGE_BUNZIP2_COMMAND
you didn't post the information requested
Are you talking about this version: app-portage/portage-utils-0.10
should be fixed in 0.11
I just tried again with said version. host / # qlist -Iv | grep portage app-portage/gentoolkit-0.3.0.6-r3 app-portage/portage-utils-0.11 sys-apps/portage-2.1.11.11 host / # grep TMPDIR /etc/make.conf PORTAGE_TMPDIR="${X_GENTOO_DIR}/$CONFIG_NAME" host / # vi /etc/make.conf qc / # grep TMPDIR /etc/make.conf PORTAGE_TMPDIR="${X_GENTOO_DIR}/${CONFIG_NAME}" host / # qlist -Iv | grep portage <Waiting for 10 seconds> ^C
http://sources.gentoo.org/gentoo-projects/portage-utils/main.c?r1=1.223&r2=1.224