Hello, I 'm triyng to port it to python3 (bug #938443) but I'm no sure if I'm doing it well. There's only one utility, pgnfix, that uses python at all and I've imported a patch to make it work with python3. I've build the package in a clean environment (cowbuilder) and seems to be using python 3 as a dependency but at the end dh_python3 is generating a dependency on "python2:any". This is the relevant part of .build log: ---- ... dh_python3 -O--sourcedirectory=src D: dh_python3 dh_python3:161: version: 4.20201102 D: dh_python3 dh_python3:162: argv: ['/usr/bin/dh_python3', '-O--sourcedirectory=src'] D: dh_python3 dh_python3:163: options: {'guess_deps': True, 'skip_private': False, 'verbose': False, 'arch': None, 'package': None, 'no_package': None, 'compile_all': False, 'vrange': None, 'regexpr': None, 'accept_upstream_versions': False, 'depends': None, 'depends_section': None, 'recommends': None, 'recommends_section': None, 'suggests': None, 'suggests_section': None, 'requires': None, 'shebang': None, 'ignore_shebangs': False, 'clean_dbg_pkg': True, 'no_ext_rename': False, 'no_shebang_rewrite': False, 'O': '--sourcedirectory=src'} D: dh_python3 dh_python3:164: args: [] D: dh_python3 dh_python3:165: supported Python versions: 3.8,3.9 (default=3.9) D: dh_python3 debhelper:99: skipping package scid-data (missing ${python3:Depends} in Depends) D: dh_python3 debhelper:152: source=scid, binary packages=['scid'] D: dh_python3 dh_python3:183: processing package scid... D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/sc_import): doesn't look like a shebang: #!/bin/sh I: dh_python3 tools:114: replacing shebang in debian/scid/usr/games/pgnfix D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/spf2spi): doesn't look like a shebang: #!/bin/sh D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/tkscid): cannot parse binary file D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/scidpgn): doesn't look like a shebang: #!/bin/sh D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/sc_remote): doesn't look like a shebang: #!/bin/sh D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/sc_spell): doesn't look like a shebang: #!/bin/sh D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/spliteco): doesn't look like a shebang: #!/bin/sh D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/scid): doesn't look like a shebang: #!/bin/sh D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/sc_epgn): doesn't look like a shebang: #!/bin/sh D: dh_python3 tools:102: fix_shebang (debian/scid/usr/games/sc_eco): doesn't look like a shebang: #!/bin/sh D: dh_python3 fs:260: package scid details = {'requires.txt': set(), 'egg-info': set(), 'nsp.txt': set(), 'shebangs': {/usr/bin/python2}, 'public_vers': set(), 'private_dirs': {}, 'compile': False, 'ext_vers': set(), 'ext_no_version': set()} D: dh_python3 depends:117: generating dependencies for package scid D: dh_python3 depends:275: D={'python2:any'}; R=[]; S=[]; E=[], B=[]; RT=[] ---- I have commited the changes to https://salsa.debian.org/josgalo-guest/scid. Also it's uploaded to mentors (https://mentors.debian.net/package/scid/) in case it helps. Any advice on how to solve this would be appreciated. Thank you very much!
Attachment:
pgpMfOdKM4h9D.pgp
Description: PGP signature