When you specify the STATIC USE FLAG and emerge MDADM version 1.4 to 1.5 it bombs out. It appears to be related to the ebuild file itself. Reproducible: Always Steps to Reproduce: ACCEPT_KEYWORDS="~x86" USE="static" emerge mdadm Actual Results: sed errors Expected Results: emerge of mdadm
Works for me but feel free to reopen with actual error messages and emerge --info output.
Created attachment 31134 [details, diff] mdadm.ebuilds.patch patch for 1.4.0 and 1.5.0 to fix this bug