Opening this as reminder/TODO. Partial work on https://github.com/gentoo/gentoo/issues/2337
Fixed in -9999. -3.9.0 would require further patching, probably not worth the effort.