Fix bug 5277736 from bugs.gentoo.org