Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675766 - games-util/xboxdrv-0.8.8_p20190116 - scons: *** [src/xboxdrv_vfs.hpp] AttributeError : type object 'str' has no attribute 'maketrans'
Summary: games-util/xboxdrv-0.8.8_p20190116 - scons: *** [src/xboxdrv_vfs.hpp] Attribu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
: 675782 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-18 15:12 UTC by Jan Ziak (atomsymbol)
Modified: 2019-01-18 21:59 UTC (History)
2 users (show)

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


Attachments
build.log (games-util:xboxdrv-0.8.8_p20190116:20190118-145820.log,10.91 KB, text/plain)
2019-01-18 15:12 UTC, Jan Ziak (atomsymbol)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Ziak (atomsymbol) 2019-01-18 15:12:10 UTC
Created attachment 561936 [details]
build.log

games-util/xboxdrv assumes that Scons is executed by Python 3 while in fact Scons is executed by Python 2.7:

scons: *** [src/xboxdrv_vfs.hpp] AttributeError : type object 'str' has no attribute 'maketrans'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/SCons/Action.py", line 1197, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/var/tmp/portage/games-util/xboxdrv-0.8.8_p20190116/work/xboxdrv-0c0143b59b0fd9718af4968992c96b6b6b2a2557/SConstruct", line 47, in build_bin2h
    fout.write("const char %s[] = {" % c_escape(src.get_path()))
  File "/var/tmp/portage/games-util/xboxdrv-0.8.8_p20190116/work/xboxdrv-0c0143b59b0fd9718af4968992c96b6b6b2a2557/SConstruct", line 32, in c_escape
    return str.translate(bytes.maketrans(b"/.-", b"___"))
AttributeError: type object 'str' has no attribute 'maketrans'
scons: building terminated because of errors.

The failure is in /var/tmp/portage/games-util/xboxdrv-0.8.8_p20190116/.../SConstruct" at line 32
Comment 1 James Le Cuirot gentoo-dev 2019-01-18 20:46:45 UTC
*** Bug 675782 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2019-01-18 21:59:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=900515f23f4d28575159f549334121ec3bde2bb8

commit 900515f23f4d28575159f549334121ec3bde2bb8
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2019-01-18 21:59:38 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2019-01-18 21:59:38 +0000

    games-util/xboxdrv: Bump to fix SCons under Python 2
    
    I didn't realise that the patch to fix Python 3 had broken 2.
    
    Closes: https://bugs.gentoo.org/675766
    Package-Manager: Portage-2.3.56, Repoman-2.3.12
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-util/xboxdrv/Manifest                                             | 2 +-
 .../{xboxdrv-0.8.8_p20190116.ebuild => xboxdrv-0.8.8_p20190118.ebuild}  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)