When I do an emerge --sync, various ebuilds are loaded onto my system, co-existing with other ebuilds, possibly from the same package. What determines which package version is to be used?
I assumed this was specified by the profile (e.g. 17.1), but I can't find any version numbers in /etc/portage/make.profile/

