Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ruamel.yaml for openSUSE:Factory checked in at 2022-05-01 18:53:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ruamel.yaml (Old) and /work/SRC/openSUSE:Factory/.python-ruamel.yaml.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ruamel.yaml" Sun May 1 18:53:32 2022 rev:30 rq:973893 version:0.17.20 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ruamel.yaml/python-ruamel.yaml.changes 2022-01-11 21:20:34.969014247 +0100 +++ /work/SRC/openSUSE:Factory/.python-ruamel.yaml.new.1538/python-ruamel.yaml.changes 2022-05-01 18:53:40.927168166 +0200 @@ -1,0 +2,5 @@ +Thu Apr 28 15:21:16 UTC 2022 - Jan Baier <jba...@suse.com> + +- add 0000-fix-big-endian-issues.patch to workaround issue 360 on big endian systems + +------------------------------------------------------------------- New: ---- 0000-fix-big-endian-issues.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ruamel.yaml.spec ++++++ --- /var/tmp/diff_new_pack.1uKoKH/_old 2022-05-01 18:53:41.367168575 +0200 +++ /var/tmp/diff_new_pack.1uKoKH/_new 2022-05-01 18:53:41.371168578 +0200 @@ -25,6 +25,7 @@ Group: Development/Languages/Python URL: https://sourceforge.net/p/ruamel-yaml Source: https://files.pythonhosted.org/packages/source/r/ruamel.yaml/ruamel.yaml-%{version}.tar.gz +Patch0: 0000-fix-big-endian-issues.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -38,6 +39,7 @@ %prep %setup -q -n ruamel.yaml-%{version} +%patch0 -p1 rm -rf *egg-info %build ++++++ 0000-fix-big-endian-issues.patch ++++++ Author: Michael R. Crusoe <cru...@debian.org> Description: Default to pure python parsing on big endian systems Forwarded: not-needed As the cpython code has an endianness bug https://sourceforge.net/p/ruamel-yaml/tickets/360/ Thanks to Rebecca N. Palmer for the tip about sys.byteorder! Index: ruamel.yaml/main.py =================================================================== --- ruamel.yaml.orig/main.py 2021-10-14 00:10:27.265523204 +0200 +++ ruamel.yaml/main.py 2021-10-14 00:11:02.469504291 +0200 @@ -51,7 +51,7 @@ class YAML: - def __init__(self, *, typ=None, pure=False, output=None, plug_ins=None): # input=None, + def __init__(self, *, typ=None, pure=None, output=None, plug_ins=None): # input=None, # type: (Any, Optional[Text], Any, Any, Any) -> None """ typ: 'rt'/None -> RoundTripLoader/RoundTripDumper, (default) @@ -64,6 +64,11 @@ """ self.typ = ['rt'] if typ is None else (typ if isinstance(typ, list) else [typ]) + if pure is None: + if sys.byteorder == 'big': + pure = True + else: + pure = False self.pure = pure # self._input = input