The following error results: [code] ./scripts/MakeHeader.py MetersPanel.c Traceback (most recent call last): File "./scripts/MakeHeader.py", line 63, in <module> out.write( line + "\n") UnicodeEncodeError: 'ascii' codec can't encode character u'\u2190' in position 25: ordinal not in range(128) make: *** [Makefile:2610: MetersPanel.h] Error 1 [/code] Building with PYTHON_SINGLE_TARGET="python3_6" (and likely other python3 implementations) works. So either python2_7 needs to be remove from PYTHON_SINGLE_TARGET or the script needs to be patched.
htop now successfully builds using python3_6 as single_target: --- # emerge -1 -p htop These are the packages that would be merged, in order: Calculating dependencies ..... done! [ebuild R ] sys-process/htop-2.1.0-r1::gentoo USE="-openvz unicode -vserver" PYTHON_SINGLE_TARGET="-python2_7 -python3_4 -python3_5 python3_6" PYTHON_TARGETS="python2_7 -python3_4 -python3_5 python3_6" 0 KiB --- But I wonder if Python is needed, as the ebuild only installs: --- # qlist sys-process/htop|sort /usr/bin/htop /usr/share/applications/htop.desktop /usr/share/doc/htop-2.1.0-r1/ChangeLog.bz2 /usr/share/doc/htop-2.1.0-r1/README.bz2 /usr/share/man/man1/htop.1.bz2 /usr/share/pixmaps/htop.png ---
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3818e5b88335efd19375516ef8e9d9c6f2d6a2b6 commit 3818e5b88335efd19375516ef8e9d9c6f2d6a2b6 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-03-02 07:46:34 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-03-02 07:46:34 +0000 sys-process/htop: Fixed build with python2_7 Closes: https://bugs.gentoo.org/649250 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-process/htop/htop-2.1.0-r1.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)