Hello community, here is the log from the commit of package rpmlint for openSUSE:Factory checked in at 2018-02-21 14:06:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rpmlint (Old) and /work/SRC/openSUSE:Factory/.rpmlint.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rpmlint" Wed Feb 21 14:06:44 2018 rev:287 rq:578348 version:1.10 Changes: -------- --- /work/SRC/openSUSE:Factory/rpmlint/rpmlint-tests.changes 2017-10-18 10:44:00.291124444 +0200 +++ /work/SRC/openSUSE:Factory/.rpmlint.new/rpmlint-tests.changes 2018-02-21 14:06:49.236237528 +0100 @@ -1,0 +2,12 @@ +Sun Feb 18 14:56:22 UTC 2018 - [email protected] + +- Update to version 84.87+git20180218.1142fcc: + * Update polkit ref tests + +------------------------------------------------------------------- +Thu Feb 08 13:49:46 UTC 2018 - [email protected] + +- Update to version 84.87+git20180202.3df4ae7: + * Add testcases for MenuXDGCheck.py + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/rpmlint/rpmlint.changes 2018-01-20 11:21:12.435815876 +0100 +++ /work/SRC/openSUSE:Factory/.rpmlint.new/rpmlint.changes 2018-02-21 14:06:49.316234649 +0100 @@ -1,0 +2,46 @@ +Tue Feb 20 12:52:18 UTC 2018 - [email protected] + +- Add one more deprecated license: + + GPL-2.0-with-font-exception. + +------------------------------------------------------------------- +Tue Feb 20 05:37:21 UTC 2018 - [email protected] + +- allow more deprecated licenses to unbreak ring1+2 + +------------------------------------------------------------------- +Sun Feb 18 14:26:09 UTC 2018 - [email protected] + +- add 0001-Always-import-XDG-desktop-files-as-utf8.patch + +------------------------------------------------------------------- +Thu Feb 15 09:35:51 UTC 2018 - [email protected] + +- Allow some deprecated licenses that we would replace on commit + (SPDX 2->SPDX 3 conversion) + +------------------------------------------------------------------- +Thu Feb 08 13:52:13 UTC 2018 - [email protected] + +- Update rpmlint-checks to version master: + * polkit: make untracked privileges also an error + +------------------------------------------------------------------- +Thu Feb 08 13:49:48 UTC 2018 - [email protected] + +- Update rpmlint-checks to version master: + * Support uppercase tag macros used by RPM 4.14 + +------------------------------------------------------------------- +Thu Feb 08 13:49:46 UTC 2018 - [email protected] + +- Update to version 84.87+git20180202.3df4ae7: + * Add testcases for MenuXDGCheck.py + +------------------------------------------------------------------- +Tue Jan 23 11:05:10 UTC 2018 - [email protected] + +- refresh for 0001-Improve-XDG-Menu-checks-stability.patch + remove xdg-paths-update.diff (merged into other patch) + +------------------------------------------------------------------- Old: ---- rpmlint-tests-84.87+git20171011.8b163ac.tar.xz xdg-paths-update.diff New: ---- 0001-Always-import-XDG-desktop-files-as-utf8.patch rpmlint-tests-84.87+git20180218.1142fcc.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rpmlint-tests.spec ++++++ --- /var/tmp/diff_new_pack.TYUUcO/_old 2018-02-21 14:06:51.676149729 +0100 +++ /var/tmp/diff_new_pack.TYUUcO/_new 2018-02-21 14:06:51.676149729 +0100 @@ -24,7 +24,7 @@ BuildRequires: rpmlint-mini Name: rpmlint-tests -Version: 84.87+git20171011.8b163ac +Version: 84.87+git20180218.1142fcc Release: 0 Summary: rpmlint regression tests License: SUSE-Public-Domain ++++++ rpmlint.spec ++++++ --- /var/tmp/diff_new_pack.TYUUcO/_old 2018-02-21 14:06:51.696149010 +0100 +++ /var/tmp/diff_new_pack.TYUUcO/_new 2018-02-21 14:06:51.700148866 +0100 @@ -46,7 +46,6 @@ Patch23: suse-filter-more-verbose.diff Patch24: docdata-examples.diff Patch25: yast-provides.diff -Patch26: xdg-paths-update.diff Patch27: better-wrong-script.diff Patch28: buildroot-doc.diff Patch29: rpmgroup-checks.diff @@ -90,6 +89,7 @@ Patch71: 0001-Avoid-calling-close-on-undefined-fd-variable.patch Patch72: rpmlint-slpp-NUM-NUM.patch Patch73: 0001-Binariescheck-Check-for-chroot-chdir-on-ARM-PPC.patch +Patch74: 0001-Always-import-XDG-desktop-files-as-utf8.patch BuildRequires: obs-service-format_spec_file BuildRequires: python3-flake8 BuildRequires: python3-pytest @@ -143,6 +143,12 @@ cut '-d ' -f1 %{_prefix}/lib/obs/service/format_spec_file.files/licenses_changes.txt | tail -n +2 | sort -u | while read l; do sed -i -e "s/\(#VALIDLICENSES\)/\1\n '$l',/" licenses.config done +# add some deprecated licenses we allow for now +for l in AGPL-3.0 AGPL-3.0+ GFDL-1.1 GFDL-1.1+ GFDL-1.2 GFDL-1.2+ GFDL-1.3 GFDL-1.3+ GPL-3.0-with-GCC-exception \ + GPL-2.0-with-classpath-exception GPL-2.0-with-font-exception SUSE-LGPL-2.1+-with-GCC-exception SUSE-NonFree \ + GPL-1.0+ GPL-1.0 GPL-2.0+ GPL-2.0 GPL-3.0+ GPL-3.0 LGPL-2.0 LGPL-2.0+ LGPL-2.1+ LGPL-2.1 LGPL-3.0+ LGPL-3.0; do + sed -i -e "s/\(#VALIDLICENSES\)/\1\n '$l',/" licenses.config +done install -m 644 licenses.config %{buildroot}/%{_sysconfdir}/rpmlint/ %check ++++++ 0001-Always-import-XDG-desktop-files-as-utf8.patch ++++++ >From e090267a175d2f2d52128c780108835f36d1ef1e Mon Sep 17 00:00:00 2001 From: Dirk Mueller <[email protected]> Date: Sun, 18 Feb 2018 15:23:39 +0100 Subject: [PATCH] Always import XDG desktop files as utf8 Don't rely on them being entirely ASCII or the system locale. --- MenuXDGCheck.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MenuXDGCheck.py b/MenuXDGCheck.py index 66912ea..d4418a9 100644 --- a/MenuXDGCheck.py +++ b/MenuXDGCheck.py @@ -6,6 +6,7 @@ # http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html # +import codecs import os try: import ConfigParser as cfgparser @@ -30,7 +31,7 @@ class MenuXDGCheck(AbstractCheck.AbstractFilesCheck): def parse_desktop_file(self, pkg, root, f, filename): cfp = cfgparser.RawConfigParser() try: - with open(f, 'rb') as inputf: + with codecs.open(f, encoding='utf-8') as inputf: cfp.readfp(inputf, filename) except cfgparser.DuplicateSectionError as e: printError( -- 2.16.1 ++++++ 0001-Improve-XDG-Menu-checks-stability.patch ++++++ --- /var/tmp/diff_new_pack.TYUUcO/_old 2018-02-21 14:06:51.788145699 +0100 +++ /var/tmp/diff_new_pack.TYUUcO/_new 2018-02-21 14:06:51.788145699 +0100 @@ -1,4 +1,4 @@ -From e6594808fdf6c1fcb4175c523582ab7c358839f0 Mon Sep 17 00:00:00 2001 +From 8de78fa8b0cd9a2fe4156b841429ac8d55b39909 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <[email protected]> Date: Fri, 29 Sep 2017 09:12:33 +0200 Subject: [PATCH] Improve XDG Menu checks stability @@ -18,33 +18,30 @@ =================================================================== --- rpmlint-rpmlint-1.10.orig/MenuXDGCheck.py +++ rpmlint-rpmlint-1.10/MenuXDGCheck.py -@@ -8,15 +8,15 @@ +@@ -8,9 +8,9 @@ import os try: - from ConfigParser import RawConfigParser -+ import ConfigParser as cfgparser - except: +-except: - from configparser import RawConfigParser ++ import ConfigParser as cfgparser ++except ImportError: + import configparser as cfgparser import AbstractCheck from Filter import addDetails, printError, printWarning - from Pkg import getstatusoutput, is_utf8 - --STANDARD_BIN_DIRS = ['/bin/', '/sbin/', '/usr/bin/', '/usr/sbin/'] -+STANDARD_BIN_DIRS = ('/bin', '/sbin', '/usr/bin', '/usr/sbin') - - - class MenuXDGCheck(AbstractCheck.AbstractFilesCheck): -@@ -27,6 +27,51 @@ class MenuXDGCheck(AbstractCheck.Abstrac +@@ -25,7 +25,52 @@ class MenuXDGCheck(AbstractCheck.Abstrac + # $ echo $XDG_DATA_DIRS/applications + # /var/lib/menu-xdg:/usr/share AbstractCheck.AbstractFilesCheck.__init__( - self, "MenuXDGCheck", r"(?:/usr/share|/etc/opt/.*/share|/opt/.*)/applications/.*\.desktop$") - +- self, "MenuXDGCheck", r"/usr/share/applications/.*\.desktop$") ++ self, "MenuXDGCheck", r'(?:/usr|/etc/opt|/opt/.*)/share/applications/.*\.desktop$') ++ + def parse_desktop_file(self, pkg, root, f, filename): + cfp = cfgparser.RawConfigParser() + try: -+ with open(f) as inputf: ++ with open(f, 'rb') as inputf: + cfp.readfp(inputf, filename) + except cfgparser.DuplicateSectionError as e: + printError( @@ -85,10 +82,9 @@ + if not found: + printWarning( + pkg, 'desktopfile-without-binary', filename, binary) -+ + def check_file(self, pkg, filename): root = pkg.dirName() - f = root + filename @@ -43,25 +88,7 @@ class MenuXDGCheck(AbstractCheck.Abstrac if not is_utf8(f): printError(pkg, 'non-utf8-desktopfile', filename) ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.TYUUcO/_old 2018-02-21 14:06:51.852143396 +0100 +++ /var/tmp/diff_new_pack.TYUUcO/_new 2018-02-21 14:06:51.856143253 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/openSUSE/rpmlint-tests.git</param> - <param name="changesrevision">8b163ac0aaf41e8424edbc4074a60f18e9cb9438</param></service><service name="tar_scm"> + <param name="changesrevision">1142fccbca0a0f3f4bbb4be8f98e26904e9f45f5</param></service><service name="tar_scm"> <param name="url">https://github.com/openSUSE/rpmlint-checks.git</param> - <param name="changesrevision">19a2516ec526f44b39a88e1757fc4f9fa1f3b603</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">aecdbb0c5cee167387f7769a77148668e908a8d8</param></service></servicedata> \ No newline at end of file ++++++ rpmlint-checks-master.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-checks-master/CheckBuildRoot.py new/rpmlint-checks-master/CheckBuildRoot.py --- old/rpmlint-checks-master/CheckBuildRoot.py 2017-11-25 11:09:53.000000000 +0100 +++ new/rpmlint-checks-master/CheckBuildRoot.py 2018-02-08 14:52:05.000000000 +0100 @@ -18,7 +18,7 @@ def __init__(self): AbstractCheck.AbstractFilesCheck.__init__(self, "CheckBuildRoot", ".*") t = rpm.expandMacro('%buildroot') - for m in ('name', 'version', 'release'): + for m in ('name', 'version', 'release', 'NAME', 'VERSION', 'RELEASE'): t = t.replace("%%{%s}" % (m), r'[\w\!-\.]{1,20}') self.build_root_re = re.compile(t) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-checks-master/CheckPolkitPrivs.py new/rpmlint-checks-master/CheckPolkitPrivs.py --- old/rpmlint-checks-master/CheckPolkitPrivs.py 2017-11-25 11:09:53.000000000 +0100 +++ new/rpmlint-checks-master/CheckPolkitPrivs.py 2018-02-08 14:52:05.000000000 +0100 @@ -122,7 +122,7 @@ settings['allow_inactive'], settings['allow_active'])) else: - printInfo( + printError( pkg, 'polkit-untracked-privilege', '%s (%s:%s:%s)' % ( action, ++++++ rpmlint-tests-84.87+git20171011.8b163ac.tar.xz -> rpmlint-tests-84.87+git20180218.1142fcc.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-binary.ignore new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-binary.ignore --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-binary.ignore 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-binary.ignore 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,3 @@ +#addFilter(" files-duplicate") +#addFilter(" no-manual-page-for-binary ") +#addFilter(" no-binary") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-binary.ref new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-binary.ref --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-binary.ref 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-binary.ref 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,2 @@ +desktopfile-bad-binary: W: desktopfile-without-binary /usr/share/applications/rpmlint-test.desktop rpmlint-test +1 packages and 0 specfiles checked; 0 errors, 1 warnings. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-binary.spec new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-binary.spec --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-binary.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-binary.spec 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,51 @@ +Name: desktopfile-bad-binary +Version: 0 +Release: 0 +Group: Development/Tools/Building +Summary: Lorem ipsum +License: GPL-2.0+ +BuildRoot: %_tmppath/%name-%version-build +Url: http://www.opensuse.org/ +BuildArch: noarch + +%description +Lorem ipsum dolor sit amet, consectetur adipisici elit, sed +eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim +ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut +aliquid ex ea commodi consequat. Quis aute iure reprehenderit in +voluptate velit esse cillum dolore eu fugiat nulla pariatur. +Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui +officia deserunt mollit anim id est laborum. + +%prep +%build + +%install +install -d -m 755 %buildroot/%_datadir/applications + +echo -e "#! /bin/bash\ntrue" > rpmlint-test +# install -d -m 755 %buildroot/%_bindir/ +# install -m 755 rpmlint-test %buildroot/%_bindir/ + +cat > %buildroot/%_datadir/applications/rpmlint-test.desktop <<'EOF' +[Desktop Entry] +Name=rpmlint-test +Exec=rpmlint-test %F +Icon=rpmlint-test +Type=Application +GenericName=rpmlint testcase +EOF + + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root) +# %%{_bindir}/rpmlint-test +%{_datadir}/applications/ + +%changelog +* Mon Jan 22 2018 [email protected] +- dummy + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-duplicate.ignore new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-duplicate.ignore --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-duplicate.ignore 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-duplicate.ignore 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,3 @@ +#addFilter(" files-duplicate") +#addFilter(" no-manual-page-for-binary ") +#addFilter(" no-binary") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-duplicate.ref new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-duplicate.ref --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-duplicate.ref 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-duplicate.ref 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,4 @@ +desktopfile-bad-duplicate: W: desktopfile-duplicate-section /usr/share/applications/rpmlint-test.desktop [Desktop Entry] +desktopfile-bad-duplicate: W: invalid-desktopfile /usr/share/applications/rpmlint-test.desktop file contains multiple groups named "Desktop Entry", but multiple groups may not have the same name +desktopfile-bad-duplicate: W: invalid-desktopfile /usr/share/applications/rpmlint-test.desktop file contains multiple keys named "Name" in group "Desktop Entry" +1 packages and 0 specfiles checked; 0 errors, 3 warnings. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-duplicate.spec new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-duplicate.spec --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-duplicate.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-duplicate.spec 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,53 @@ +Name: desktopfile-bad-duplicate +Version: 0 +Release: 0 +Group: Development/Tools/Building +Summary: Lorem ipsum +License: GPL-2.0+ +BuildRoot: %_tmppath/%name-%version-build +Url: http://www.opensuse.org/ +BuildArch: noarch + +%description +Lorem ipsum dolor sit amet, consectetur adipisici elit, sed +eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim +ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut +aliquid ex ea commodi consequat. Quis aute iure reprehenderit in +voluptate velit esse cillum dolore eu fugiat nulla pariatur. +Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui +officia deserunt mollit anim id est laborum. + +%prep +%build + +%install +install -d -m 755 %buildroot/%_datadir/applications + +echo -e "#! /bin/bash\ntrue" > rpmlint-test +install -d -m 755 %buildroot/%_bindir/ +install -m 755 rpmlint-test %buildroot/%_bindir/ + +cat > %buildroot/%_datadir/applications/rpmlint-test.desktop <<'EOF' +[Desktop Entry] +[Desktop Entry] +Name=rpmlint-test +Name=name duplicate +Exec=rpmlint-test %F +Icon=rpmlint-test +Type=Application +GenericName=rpmlint testcase +EOF + + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root) +%{_bindir}/rpmlint-test +%{_datadir}/applications/ + +%changelog +* Mon Jan 22 2018 [email protected] +- dummy + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-section.ignore new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-section.ignore --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-section.ignore 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-section.ignore 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,3 @@ +#addFilter(" files-duplicate") +#addFilter(" no-manual-page-for-binary ") +#addFilter(" no-binary") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-section.ref new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-section.ref --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-section.ref 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-section.ref 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,5 @@ +desktopfile-bad-section: W: desktopfile-missing-header /usr/share/applications/rpmlint-test.desktop +desktopfile-bad-section: W: invalid-desktopfile /usr/share/applications/rpmlint-test.desktop file contains entry "Name=rpmlint-test" before the first group, but only comments are accepted before the first group +desktopfile-bad-section: W: invalid-desktopfile /usr/share/applications/rpmlint-test.desktop file contains group "Bad Section", but groups extending the format should start with "X-" +desktopfile-bad-section: W: invalid-desktopfile /usr/share/applications/rpmlint-test.desktop first group is not "Desktop Entry" +1 packages and 0 specfiles checked; 0 errors, 4 warnings. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-section.spec new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-section.spec --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-section.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-section.spec 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,52 @@ +Name: desktopfile-bad-section +Version: 0 +Release: 0 +Group: Development/Tools/Building +Summary: Lorem ipsum +License: GPL-2.0+ +BuildRoot: %_tmppath/%name-%version-build +Url: http://www.opensuse.org/ +BuildArch: noarch + +%description +Lorem ipsum dolor sit amet, consectetur adipisici elit, sed +eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim +ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut +aliquid ex ea commodi consequat. Quis aute iure reprehenderit in +voluptate velit esse cillum dolore eu fugiat nulla pariatur. +Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui +officia deserunt mollit anim id est laborum. + +%prep +%build + +%install +install -d -m 755 %buildroot/%_datadir/applications + +echo -e "#! /bin/bash\ntrue" > rpmlint-test +install -d -m 755 %buildroot/%_bindir/ +install -m 755 rpmlint-test %buildroot/%_bindir/ + +cat > %buildroot/%_datadir/applications/rpmlint-test.desktop <<'EOF' +Name=rpmlint-test +[Bad Section] +Name[x-test]=xxrpmlint-testxx +Exec=rpmlint-test %F +Icon=rpmlint-test +Type=Application +GenericName=rpmlint testcase +EOF + + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root) +%{_bindir}/rpmlint-test +%{_datadir}/applications/ + +%changelog +* Mon Jan 22 2018 [email protected] +- dummy + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-unicode.ignore new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-unicode.ignore --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-unicode.ignore 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-unicode.ignore 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,3 @@ +#addFilter(" files-duplicate") +#addFilter(" no-manual-page-for-binary ") +#addFilter(" no-binary") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-unicode.ref new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-unicode.ref --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-unicode.ref 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-unicode.ref 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,4 @@ +desktopfile-bad-unicode: W: invalid-desktopfile /usr/share/applications/rpmlint-test.desktop No valid Unicode +desktopfile-bad-unicode: W: invalid-desktopfile /usr/share/applications/rpmlint-test.desktop value "rpmlint-test umlaut \xe4\xf6\xfc " for locale string key "Name[de]" in group "Desktop Entry" contains invalid UTF-8 characters, locale string values should be encoded in UTF-8 +desktopfile-bad-unicode: W: non-utf8-desktopfile /usr/share/applications/rpmlint-test.desktop +1 packages and 0 specfiles checked; 0 errors, 3 warnings. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-unicode.spec new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-unicode.spec --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-bad-unicode.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-bad-unicode.spec 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,52 @@ +Name: desktopfile-bad-unicode +Version: 0 +Release: 0 +Group: Development/Tools/Building +Summary: Lorem ipsum +License: GPL-2.0+ +BuildRoot: %_tmppath/%name-%version-build +Url: http://www.opensuse.org/ +BuildArch: noarch + +%description +Lorem ipsum dolor sit amet, consectetur adipisici elit, sed +eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim +ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut +aliquid ex ea commodi consequat. Quis aute iure reprehenderit in +voluptate velit esse cillum dolore eu fugiat nulla pariatur. +Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui +officia deserunt mollit anim id est laborum. + +%prep +%build + +%install +install -d -m 755 %buildroot/%_datadir/applications + +echo -e "#! /bin/bash\ntrue" > rpmlint-test +install -d -m 755 %buildroot/%_bindir/ +install -m 755 rpmlint-test %buildroot/%_bindir/ + +cat > %buildroot/%_datadir/applications/rpmlint-test.desktop <<'EOF' +[Desktop Entry] +Name=rpmlint-test +Name[de]=rpmlint-test umlaut ��� +Exec=rpmlint-test %F +Icon=rpmlint-test +Type=Application +GenericName=rpmlint testcase +EOF + + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root) +%{_bindir}/rpmlint-test +%{_datadir}/applications/ + +%changelog +* Mon Jan 22 2018 [email protected] +- dummy + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-good.ignore new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-good.ignore --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-good.ignore 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-good.ignore 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,3 @@ +#addFilter(" files-duplicate") +#addFilter(" no-manual-page-for-binary ") +#addFilter(" no-binary") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-good.ref new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-good.ref --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-good.ref 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-good.ref 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1 @@ +1 packages and 0 specfiles checked; 0 errors, 0 warnings. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-good.spec new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-good.spec --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/desktopfile-good.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/desktopfile-good.spec 2018-02-18 15:56:12.000000000 +0100 @@ -0,0 +1,60 @@ +Name: desktopfile-good +Version: 0 +Release: 0 +Group: Development/Tools/Building +Summary: Lorem ipsum +License: GPL-2.0+ +BuildRoot: %_tmppath/%name-%version-build +Url: http://www.opensuse.org/ +BuildArch: noarch + +%description +Lorem ipsum dolor sit amet, consectetur adipisici elit, sed +eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim +ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut +aliquid ex ea commodi consequat. Quis aute iure reprehenderit in +voluptate velit esse cillum dolore eu fugiat nulla pariatur. +Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui +officia deserunt mollit anim id est laborum. + +%prep +%build + +%install +install -d -m 755 %buildroot/%_datadir/applications + +echo -e "#! /bin/bash\ntrue" > rpmlint-test +install -d -m 755 %buildroot/%_bindir/ +install -m 755 rpmlint-test %buildroot/%_bindir/ + +cat > %buildroot/%_datadir/applications/rpmlint-test.desktop <<'EOF' +[Desktop Entry] +Name=rpmlint-test +Name[de]=rpmlint-test umlaut äöü +Name[x-test]=xxrpmlint-testxx +MimeType=application/x-rpm; +Exec=rpmlint-test %F +Icon=rpmlint-test +Type=Application +InitialPreference=5 +NoDisplay=false +GenericName=rpmlint testcase +GenericName[x-test]=xxrpmlint testcasexx +Categories=System;PackageManager; +Keywords=software;package; +Keywords[x-test]=xxsoftwarexx;xxpackagexx; +EOF + + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root) +%{_bindir}/rpmlint-test +%{_datadir}/applications/ + +%changelog +* Mon Jan 22 2018 [email protected] +- dummy + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rpmlint-tests-84.87+git20171011.8b163ac/tests/polkit.ref new/rpmlint-tests-84.87+git20180218.1142fcc/tests/polkit.ref --- old/rpmlint-tests-84.87+git20171011.8b163ac/tests/polkit.ref 2017-10-11 13:28:59.000000000 +0200 +++ new/rpmlint-tests-84.87+git20180218.1142fcc/tests/polkit.ref 2018-02-18 15:56:12.000000000 +0100 @@ -1,6 +1,6 @@ polkit: I: polkit-cant-acquire-privilege org.opensuse.test.bar (no:auth_admin:auth_admin) -polkit: I: polkit-untracked-privilege org.opensuse.test.bar (no:auth_admin:auth_admin) -polkit: I: polkit-untracked-privilege org.opensuse.test.foo (auth_admin:auth_admin:auth_admin) +polkit: W: polkit-untracked-privilege org.opensuse.test.bar (no:auth_admin:auth_admin) +polkit: W: polkit-untracked-privilege org.opensuse.test.foo (auth_admin:auth_admin:auth_admin) polkit: E: polkit-unauthorized-privilege (Badness: 10000) org.opensuse.test.baz (auth_admin:auth_admin:auth_self) polkit: E: polkit-unauthorized-privilege (Badness: 10000) org.opensuse.test.baz2 (auth_admin:auth_admin:yes) -1 packages and 0 specfiles checked; 2 errors, 0 warnings. +1 packages and 0 specfiles checked; 2 errors, 2 warnings.
