Index: portage-2.0.51.22/bin/emerge =================================================================== --- portage-2.0.51.22.orig/bin/emerge +++ portage-2.0.51.22/bin/emerge @@ -1523,7 +1523,7 @@ class depgraph: sys.exit(1) if source: needed = portage.db[x[1]][source].dbapi.aux_get(x[2], ["EAPI"])[0] - if needed > portage.EAPI: + if int(needed) > portage.EAPI: print '[%s] %s %s, EAPI:%i installed portage EAPI:%i' % (x[0].ljust(13), x[2], red("UNMERGABLE"),needed, portage.EAPI) stupid_if_logic_hack = True @@ -1856,7 +1856,7 @@ class depgraph: print "EAPI check, unknown source "+str(source)+" for "+cpv+", this shouldn't occur",mymergelist sys.exit(1) needed = portage.db[root][source].dbapi.aux_get(cpv, ["EAPI"])[0] - if portage.EAPI < needed: + if portage.EAPI < int(needed): unmergable.append((needed, cpv)) if len(unmergable):