Hello community, here is the log from the commit of package rpmlint for openSUSE:Factory checked in at 2019-10-21 12:26:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rpmlint (Old) and /work/SRC/openSUSE:Factory/.rpmlint.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rpmlint" Mon Oct 21 12:26:10 2019 rev:324 rq:739697 version:1.11 Changes: -------- --- /work/SRC/openSUSE:Factory/rpmlint/rpmlint.changes 2019-10-05 16:15:48.982138552 +0200 +++ /work/SRC/openSUSE:Factory/.rpmlint.new.2352/rpmlint.changes 2019-10-21 12:26:14.539813893 +0200 @@ -1,0 +2,11 @@ +Tue Oct 15 07:12:22 UTC 2019 - Ludwig Nussel <lnus...@suse.de> + +- filter install-info warnings. Handled by file triggers now (boo#1152169) + +------------------------------------------------------------------- +Mon Oct 7 12:01:22 CEST 2019 - m...@suse.de + +- backport rpm415 workaround from upstream + new patch: rpm415-workaround.diff + +------------------------------------------------------------------- New: ---- rpm415-workaround.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rpmlint-tests.spec ++++++ --- /var/tmp/diff_new_pack.RnNjwJ/_old 2019-10-21 12:26:16.971816649 +0200 +++ /var/tmp/diff_new_pack.RnNjwJ/_new 2019-10-21 12:26:16.975816654 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # icecream 0 ++++++ rpmlint.spec ++++++ --- /var/tmp/diff_new_pack.RnNjwJ/_old 2019-10-21 12:26:16.991816672 +0200 +++ /var/tmp/diff_new_pack.RnNjwJ/_new 2019-10-21 12:26:16.991816672 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -61,6 +61,7 @@ Patch72: rpmlint-slpp-NUM-NUM.patch Patch77: suse-rpmlint-all-pie.patch Patch78: add-check-for-a-non-zero-.text-segment-in-.a-archive.patch +Patch79: rpm415-workaround.diff BuildRequires: desktop-file-utils BuildRequires: obs-service-format_spec_file BuildRequires: python3-flake8 ++++++ config ++++++ --- /var/tmp/diff_new_pack.RnNjwJ/_old 2019-10-21 12:26:17.071816763 +0200 +++ /var/tmp/diff_new_pack.RnNjwJ/_new 2019-10-21 12:26:17.071816763 +0200 @@ -1138,5 +1138,11 @@ # bash completion files are not scripts, do not require them marked as %config addFilter('W: non-conffile-in-etc /etc/bash_completion.d/') +# info uses file triggers now (boo#1152169) +addFilter(' info-files-without-install-info-postin' ) +addFilter(' postin-without-install-info ') +addFilter(' info-files-without-install-info-postun ') +addFilter(' postin-without-install-info ') + # config ends here ++++++ rpm415-workaround.diff ++++++ Ugly workaround for RPM 4.14 vs 4.15 python3 bindings incompatibility Upstream commits: a310a79f81f2b2dd3a31a101562e67915476a751 8fd904b53c028dded0b308ee95f1a5ff998584fd diff --git a/rpmlint/Pkg.py b/rpmlint/Pkg.py index 8d01f30..1b25771 100644 --- rpmlint-rpmlint-1.11.orig/Pkg.py +++ rpmlint-rpmlint-1.11/Pkg.py @@ -143,8 +143,17 @@ def is_utf8(fname): def is_utf8_bytestr(s): + """Returns True whether the given text is UTF-8. + Due to changes in rpm, needs to handle both bytes and unicode.""" try: - s.decode('UTF-8') + if hasattr(s, 'decode'): + s.decode('utf-8') + elif hasattr(s, 'encode'): + s.encode('utf-8') + else: + unexpected = type(s).__name__ + raise TypeError( + 'Expected str/unicode/bytes, not {}'.format(unexpected)) except UnicodeError: return False return True --- rpmlint-rpmlint-1.11.orig/PostCheck.py +++ rpmlint-rpmlint-1.11/PostCheck.py @@ -70,6 +70,8 @@ def incorrect_perl_script(prog, perlscri def check_syntax_script(prog, commandline, script): if not script: return False + if isinstance(script, str): + script = script.encode('utf-8') # TODO: test that "prog" is available/executable tmpfd, tmpname = tempfile.mkstemp(prefix='rpmlint.') tmpfile = os.fdopen(tmpfd, 'wb') --- rpmlint-rpmlint-1.11.orig/rpmlint-checks-master/CheckFilelist.py +++ rpmlint-rpmlint-1.11/rpmlint-checks-master/CheckFilelist.py @@ -425,8 +425,13 @@ class FilelistCheck(AbstractCheck.Abstra invalidfhs = set() invalidopt = set() - isSUSE = (pkg.header[RPMTAG_VENDOR] and - b'SUSE' in pkg.header[RPMTAG_VENDOR]) + isSUSE = False + if pkg.header[RPMTAG_VENDOR]: + vendor = pkg.header[RPMTAG_VENDOR] + if isinstance(vendor, str): + isSUSE = 'SUSE' in vendor + else: + isSUSE = b'SUSE' in vendor # the checks here only warn about a directory once rather # than reporting potentially hundreds of files individually