patch -u < hatop-0.7.7.diff make install clean patch -u < hatop-0.7.7.diff The patch applied without any errors so i then compiled with make install clean this completed without errors. However when running hatop i get the following errors:
env: python No such file or directory
#!/usr/bin/env python3.5 and tested to see if it'll work with python3.x but it doesn't as it threw an error: File "/usr/local/bin/hatop", line 1090
except RuntimeWarning, x:
^
SyntaxError: invalid syntax
There were upstream changes about a year ago: https://github.com/feurix/hatop/commit/64e0f26d2e392d1f2535f1b0229e45798c7514e8.Anyway, it's broken as it hasn't been updated for 6 years.
Upstream's INSTALL says "no Python 3 support planned yet". https://github.com/feurix/hatop/blob/master/INSTALLI edited /usr/local/bin/hatop and changed the following line from:
toCode:#!/usr/bin/env python
Code:#!/usr/bin/env python3.5
The porters handbook is not exactly clear on the subject. Thanks for clarifying. I am trying to learn.Including USES=python without arguments in the makefile adds Python to BUILD_DEPENDS, RUN_DEPENDS, and TEST_DEPENDS.
That was what I was missing. I was wondering how to specify a version broadly. Like python:2.7
DEFAULT_VERSIONS += python=2.7 python2=2.7 make install on sysutils/hatop. It downloaded and installed it without needing the patch. Great!! but after make install still had
env: python No such file or directory
env: python No such file or directory
make deinstall and then a make install in port python27 unfortunately i sill get:
env: python No such file or directory