Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649250 - sys-process/htop-2.1.0-r1 with PYTHON_SINGLE_TARGET="python2_7" fails to build.
Summary: sys-process/htop-2.1.0-r1 with PYTHON_SINGLE_TARGET="python2_7" fails to build.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-01 17:44 UTC by Aric Belsito
Modified: 2018-03-02 07:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aric Belsito 2018-03-01 17:44:01 UTC
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.
Comment 1 Ulenrich 2018-03-01 18:12:36 UTC
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
---
Comment 2 Larry the Git Cow gentoo-dev 2018-03-02 07:46:52 UTC
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(-)