Created attachment 407458 [details] emerge -ebk --binpkg-respect-use=y world -pv When building sys-libs/glibc from a pre-built package (binpkg) the dependencies seem to be calculated incorrectly. The sys-libs/glibc build calls /usr/bin/cal at one point early on (preinst phase) which is part of the sys-apps/util-linux package. When building from source, util-linux is built before glibc and no issue is observed; however, when installing from prebuilt binaries, util-linux is evaluated to be installed after glibc. In my specific case, the issue is that util-linux, while present, is linked against a version of ncurses that has unicode support. The version of ncurses installed (ordered before both glibc and util-linux) no longer has unicode support, thus breaking the util-linux binaries that relied on it. As mentioned, this breakage is never observed when building normally as the order is correctly evaluated.
Created attachment 407460 [details] emerge -e world -pv
Created attachment 407462 [details] output from emerge
i don't think this is an issue with glibc. util-linux does not express the ncurses/unicode relationship via its dependency tree. glibc is free to assume that installed binaries are not broken.
should be all set now in the tree; thanks for the report! Commit message: Use subslots/USE deps for ncurses/udev http://sources.gentoo.org/sys-apps/util-linux/util-linux-2.26.2.ebuild?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-apps/util-linux/util-linux-9999.ebuild?r1=1.64&r2=1.65
Fantastic! Makes sense that it was in util-linux. Thanks for the fix!