# eselect python set python3.2 # emerge nut [...] make[3]: Leaving directory `/var/tmp/portage/sys-power/nut-2.6.2/work/nut-2.6.2/tools/nut-scanner' make[2]: Leaving directory `/var/tmp/portage/sys-power/nut-2.6.2/work/nut-2.6.2/tools/nut-scanner' Regenerating the SNMP helper files. File "../tools/nut-snmpinfo.py", line 119 sysoid = "" ^ TabError: inconsistent use of tabs and spaces in indentation make[1]: *** [nut-scanner-deps] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-power/nut-2.6.2/work/nut-2.6.2/tools' make: *** [all-recursive] Error 1 emake failed Note: sys-power/nut-2.6.2 emerges correctly if python is python2.7
Created attachment 307089 [details, diff] whitespace fix patch #1 fixes the stray ' ' prior to a \t for whitespace correctness
Created attachment 307091 [details, diff] replace the outdated "file" builtin reference and automatically close after reading patch #2 replaces "file(...)" with: "with open(...) as f" to deal with the outdated "file" builtin reference and to also close the file descriptor automatically
Created attachment 307093 [details, diff] patch to update ebuild to include these two patches patch to update ebuild to include these two patches
Just to notice: this is fixed by update to 2.6.3 here: #406099 :)
let's fix this with bug 406099