shiznix / unity-gentoo

A Gentoo overlay to install the Unity desktop
70 stars 13 forks source link

>=sys-apps/portage-2.3.26 breaks all ehooks that apply patches #193

Closed shiznix closed 6 years ago

shiznix commented 6 years ago

`>>> Emerging (1 of 1) www-client/firefox-59.0.2::gentoo

c4pp4 commented 6 years ago

Should be fixed now. You can revert removals and try. Now it's not handling errors of ebuild_hook function. I'll try to figure it out as soon as possible.

shiznix commented 6 years ago

Yup works well now with all portage versions above and below 2.3.26. Have reverted removal in commit f019415b7c72f9a35d7042e0fa5e448bdf0eaf28

Thanks :)

c4pp4 commented 6 years ago

This commit https://github.com/gentoo/portage/commit/2b62104633008cc30df24808029430516a6d9a7b#diff-f5f23332cd6468b68e6e2a09f67e7737 was causing the problem. They are sending ebegin and eend output to stderr. I think we can't handle errors of ebuild_hook now.

c4pp4 commented 6 years ago

Maybe I find a solution. Temporarily redirect information messages (ebegin, einfo...) to fd 3 instead of stderr. I'm testing it now. source <(declare -febegin| sed -e "s/\(1>&\)2/\13/") source <(declare -feinfo| sed -e "s/\(1>&\)2/\13/g") source <(declare -feinfon| sed -e "s/\(1>&\)2/\13/g") source <(declare -f__eend| sed -e "s/\(1>&\)2/\13/g")

c4pp4 commented 6 years ago

Should be resolved - 5770942