Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417457 - app-portage/portage-utils apps hang (when PORTAGE_TMPDIR contains bash variables?)
Summary: app-portage/portage-utils apps hang (when PORTAGE_TMPDIR contains bash variab...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-25 07:45 UTC by stephen.thomas
Modified: 2012-10-28 10:11 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 stephen.thomas 2012-05-25 07:45:00 UTC
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
Comment 1 SpanKY gentoo-dev 2012-06-04 20:40:16 UTC
what version of portage-utils are you using ?  please always post `emerge --info` when you file bugs.
Comment 2 stephen.thomas 2012-06-06 16:58:06 UTC
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
Comment 3 SpanKY gentoo-dev 2012-06-09 01:05:14 UTC
you didn't post the information requested
Comment 4 stephen.thomas 2012-06-10 10:28:58 UTC
Are you talking about this version: app-portage/portage-utils-0.10
Comment 5 SpanKY gentoo-dev 2012-08-14 18:12:03 UTC
should be fixed in 0.11
Comment 6 stephen.thomas 2012-08-26 19:48:08 UTC
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