• Re: pycountry: FTBFS: dh_auto_test: error: pybuild --test -i python{ver

    From Scott Kitterman@21:1/5 to All on Sat Feb 10 23:42:26 2024
    It's been a couple of weeks and no action upstream. I'll plan on uploading this unless you'd rather I hold off for some reason.

    Scott K

    On Wed, 24 Jan 2024 16:56:30 -0500 Scott Kitterman <debian@kitterman.com> wrote:
    On Tue, 16 Jan 2024 20:41:58 +0100 Lucas Nussbaum <lucas@debian.org> wrote:
    Source: pycountry
    Version: 23.12.11+ds1-1
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240115 ftbfs-trixie

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.

    This is due to changes in the recent iso-codes upload. the patch below fixes it so it should work with either version:

    --- pycountry-23.12.11+ds1.orig/src/pycountry/__init__.py
    +++ pycountry-23.12.11+ds1/src/pycountry/__init__.py
    @@ -169,7 +169,8 @@ class SubdivisionHierarchy(pycountry.db.
    kw["parent_code"] = None
    super().__init__(**kw)
    self.country_code = self.code.split("-")[0]
    - if self.parent_code is not None:
    + if (self.parent_code is not None and
    + self.country_code != self.parent_code.split("-")[0]):
    self.parent_code = f"{self.country_code}-{self.parent_code}"

    @property

    Please let me know if you don't want an NMU. This will eventually cause xml2rfc to be removed, so I'll NMU at some point unless you want to take
    care
    of it first (thanks if you do).

    Scott K
    &references=<2567281.9CzbHMAgVU@zini-1880>
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAmXIUDIACgkQeNfe+5rV mvGHAhAAjhYOcqiLDN2Q4OUKzNfH4RRL++ZhSCyuiRBLF7hkkO1d3O6AqX4vB1nG gZ0IzHfjFmaL19iW6eklunL2/s7RR/hpQ+BFhNg19TlqV4Qfg4z82SQiPccw8Bfo R3B5YA6KU/MHLFOxLgbvFoqzkgg4uTEneP+vMDy77R/RzgUqU5NTjYYqvr62qg96 q8H41GJcZ2gP90iIe6Dwvc/6hC419N668eMDCf3VBuvEWVgmuOsBISm4iaPt6ZjA CQxXKurQ6HWH4u6kC87su5frxxPPCIuw0DWU+Z7zd0LLRBW7T3EVCe74SjqLjZ+r 5YPtxwRhj4nLaB8pPuvUTBbEqL+MrOrv7RugIGY4Bdh/3t/8hFnEhwvg0e0bM+iJ NmfeqPqc2ywCM1WctbK7SbftADpXHkYOE+MWs2VZoE3fUkr5jnlZMVy9pbxPQt+3 4MK3N2PM8y0Ywb0N0sUhadZAn0k96XiJOi+d+t5TLK/WviFPvu2LjaCwxFYzRadO W0ffIygzYM2GRjVtbRL+s2uqQxU/sYnBt36EB3ZkRkIUXoEo75oXoDz6HXgiein7 mPkO2SYM86B19hUUybx8sQSi8TkzfzT7E/9w1C3f9fRpXgBLH9YeaP+UzjYuwWfp ZiUf0mlS1ptBZP+OdRXoTSRmnyM2cneKVDyONM8rqLXWmTvD7hI=
    =hfiX
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)