From 33b1bd9b4d57007f994769da3f1fdd2522197bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 13 Jul 2017 11:44:24 +0200 Subject: [PATCH 1/4] perl dependency renamed to perl-interpreter --- rpmlint.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rpmlint.spec b/rpmlint.spec index 254dd46..48f73fd 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -16,7 +16,7 @@ Name: rpmlint Version: 1.9 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Tool for checking common errors in RPM packages Group: Development/Tools License: GPLv2 @@ -69,7 +69,7 @@ BuildRequires: sed >= 3.95 # no bash-completion for RHEL BuildRequires: bash-completion %endif -Requires: perl +Requires: perl-interpreter %if ! 0%{?rhel} # python-magic and python-enchant are actually optional dependencies, but # they bring quite desirable features. They're not available in RHEL/EPEL 5 @@ -153,6 +153,10 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} %{_mandir}/man1/rpmlint.1* %changelog +* Thu Jul 13 2017 Petr Pisar - 1.9-10 +- perl dependency renamed to perl-interpreter + + * Fri Apr 07 2017 Björn Esser - 1.9-9 - Upstream fix for str object has no attribute decode (bz1439941) From 2e06474450f6a9a9ad48c62537b0602e8ab819f3 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mon, 17 Jul 2017 09:57:13 -0400 Subject: [PATCH 2/4] buildid fixes --- rpmlint-1.9-buildid-fixes.patch | 33 +++++++++++++++++++++++++++++++++ rpmlint.spec | 8 +++++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 rpmlint-1.9-buildid-fixes.patch diff --git a/rpmlint-1.9-buildid-fixes.patch b/rpmlint-1.9-buildid-fixes.patch new file mode 100644 index 0000000..26eca19 --- /dev/null +++ b/rpmlint-1.9-buildid-fixes.patch @@ -0,0 +1,33 @@ +diff -up rpmlint-rpmlint-1.9/BinariesCheck.py.buildid rpmlint-rpmlint-1.9/BinariesCheck.py +--- rpmlint-rpmlint-1.9/BinariesCheck.py.buildid 2017-07-17 09:45:17.415365410 -0400 ++++ rpmlint-rpmlint-1.9/BinariesCheck.py 2017-07-17 09:45:28.719085854 -0400 +@@ -294,7 +294,7 @@ usr_lib_regex = re.compile('^/usr/lib(64 + bin_regex = re.compile('^(/usr(/X11R6)?)?/s?bin/') + soversion_regex = re.compile('.*?([0-9][.0-9]*)\\.so|.*\\.so\\.([0-9][.0-9]*).*') + reference_regex = re.compile('\.la$|^/usr/lib(64)?/pkgconfig/') +-usr_lib_exception_regex = re.compile(Config.getOption('UsrLibBinaryException', '^/usr/lib(64)?/(perl|python|ruby|menu|pkgconfig|ocaml|lib[^/]+\.(so|l?a)$|bonobo/servers/)')) ++usr_lib_exception_regex = re.compile(Config.getOption('UsrLibBinaryException', r'^/usr/lib(64)?/(perl|python|ruby|menu|pkgconfig|ocaml|lib[^/]+\.(so|l?a)$|bonobo/servers/|\.build-id)')) + srcname_regex = re.compile('(.*?)-[0-9]') + invalid_dir_ref_regex = re.compile('/(home|tmp)(\W|$)') + ocaml_mixed_regex = re.compile('^Caml1999X0\d\d$') +diff -up rpmlint-rpmlint-1.9/FilesCheck.py.buildid rpmlint-rpmlint-1.9/FilesCheck.py +--- rpmlint-rpmlint-1.9/FilesCheck.py.buildid 2017-07-17 09:45:37.733862908 -0400 ++++ rpmlint-rpmlint-1.9/FilesCheck.py 2017-07-17 09:46:33.053494782 -0400 +@@ -505,7 +505,7 @@ class FilesCheck(AbstractCheck.AbstractC + printError(pkg, 'version-control-internal-file', f) + elif f.endswith('/.htaccess'): + printError(pkg, 'htaccess-file', f) +- elif hidden_file_regex.search(f) and not f.startswith("/etc/skel/"): ++ elif hidden_file_regex.search(f) and not f.startswith("/etc/skel/") and not f.endswith("/.build-id"): + printWarning(pkg, 'hidden-file-or-dir', f) + elif manifest_perl_regex.search(f): + printWarning(pkg, 'manifest-in-perl-module', f) +@@ -879,7 +879,7 @@ class FilesCheck(AbstractCheck.AbstractC + printError(pkg, 'non-standard-dir-perm', f, "%o" % perm) + if pkg.name not in filesys_packages and f in STANDARD_DIRS: + printError(pkg, 'standard-dir-owned-by-package', f) +- if hidden_file_regex.search(f): ++ if hidden_file_regex.search(f) and not f.endswith("/.build-id"): + printWarning(pkg, 'hidden-file-or-dir', f) + + # symbolic link check diff --git a/rpmlint.spec b/rpmlint.spec index 48f73fd..98f89fa 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -16,7 +16,7 @@ Name: rpmlint Version: 1.9 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Tool for checking common errors in RPM packages Group: Development/Tools License: GPLv2 @@ -48,6 +48,8 @@ Patch3: rpmlint-1.9-py35magic.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1439941 Patch4: rpmlint-1.9-py3_b2s.patch Patch5: rpmlint-1.9-py3_test_b2s.patch +# https://github.com/rpm-software-management/rpmlint/commit/4ec1b845a681ce65c02e4db72c6b7ee99fe1b622 +Patch6: rpmlint-1.9-buildid-fixes.patch BuildArch: noarch %if %{with python3} BuildRequires: python3-devel @@ -104,6 +106,7 @@ and source packages as well as spec files can be checked. %patch3 -p1 -b .py35magic %patch4 -p1 -b .py3b2s %patch5 -p1 -b .py35b2s_test +%patch6 -p1 -b .buildid sed -i -e /MenuCheck/d Config.py cp -p config config.example install -pm 644 %{SOURCE3} config @@ -153,6 +156,9 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} %{_mandir}/man1/rpmlint.1* %changelog +* Mon Jul 17 2017 Tom Callaway - 1.9-11 +- apply upstream fix for buildid + * Thu Jul 13 2017 Petr Pisar - 1.9-10 - perl dependency renamed to perl-interpreter From bd916d2419f43b3ff001a46ed661a0a964f78877 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 13:17:02 +0000 Subject: [PATCH 3/4] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- rpmlint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpmlint.spec b/rpmlint.spec index 98f89fa..7f2c6c2 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -16,7 +16,7 @@ Name: rpmlint Version: 1.9 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Tool for checking common errors in RPM packages Group: Development/Tools License: GPLv2 @@ -156,6 +156,9 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} %{_mandir}/man1/rpmlint.1* %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 1.9-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Mon Jul 17 2017 Tom Callaway - 1.9-11 - apply upstream fix for buildid From 22599c5362d64aa20bb81daaef161eeb9512573b Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Tue, 5 Sep 2017 14:52:32 -0400 Subject: [PATCH 4/4] 1.10 --- .gitignore | 1 + rpmlint.spec | 36 +++++------------------------------- sources | 2 +- 3 files changed, 7 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index d0100ee..f30193d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /rpmlint-1.7.tar.xz /rpmlint-1.8.tar.gz /rpmlint-1.9.tar.gz +/rpmlint-1.10.tar.gz diff --git a/rpmlint.spec b/rpmlint.spec index 7f2c6c2..4345b0c 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -15,8 +15,8 @@ %endif Name: rpmlint -Version: 1.9 -Release: 12%{?dist} +Version: 1.10 +Release: 1%{?dist} Summary: Tool for checking common errors in RPM packages Group: Development/Tools License: GPLv2 @@ -28,28 +28,6 @@ Source3: %{name}-etc.config Source4: %{name}.config.el4 # EL-5 specific config Source5: %{name}.config.el5 -# Combines all of these upstream changes -# https://github.com/rpm-software-management/rpmlint/commit/4ddbcccc5e12e4f3777ca0790880afa63e91e2fb -# https://github.com/rpm-software-management/rpmlint/commit/d2de79e1f855a6852be9e337314cdf5e0e594993 -# https://github.com/rpm-software-management/rpmlint/commit/15e4ae11e498530f975574567fca0e65a9a0acb7 -# https://github.com/rpm-software-management/rpmlint/commit/d08a7ce333355898dea05b1ed82c5884eccde5ff -Patch0: rpmlint-1.9-unicodefix.patch -# Python 3.6rc1 (3.6.0) bytecode magic value -# https://github.com/rpm-software-management/rpmlint/pull/86 (hand-rediffed) -Patch1: rpmlint-1.9-py36magic.patch -# https://github.com/rpm-software-management/rpmlint/commit/a81fdca0185d5ed9868a6ddafca1812082029714 -Patch2: rpmlint-1.9-fix-uep.patch -# Python 3.5.3 bytecode magic value update -# https://github.com/rpm-software-management/rpmlint/commit/beb32c4cfbff4aa979141941f534d2c6b7a18639 (hand-rediffed) -Patch3: rpmlint-1.9-py35magic.patch -# rpmlint fails: str object has no attribute decode -# https://github.com/rpm-software-management/rpmlint/commit/4875475c43098e37a4d5d4e2ee2f9dfea643cc78 (hand-rediffed) -# https://github.com/rpm-software-management/rpmlint/commit/73d62d4421a06a3282c1a71625b070e3ca58b624 (hand-rediffed) -# https://bugzilla.redhat.com/show_bug.cgi?id=1439941 -Patch4: rpmlint-1.9-py3_b2s.patch -Patch5: rpmlint-1.9-py3_test_b2s.patch -# https://github.com/rpm-software-management/rpmlint/commit/4ec1b845a681ce65c02e4db72c6b7ee99fe1b622 -Patch6: rpmlint-1.9-buildid-fixes.patch BuildArch: noarch %if %{with python3} BuildRequires: python3-devel @@ -100,13 +78,6 @@ and source packages as well as spec files can be checked. %prep %setup -q -n %{name}-%{name}-%{version} -%patch0 -p1 -b .unicodefix -%patch1 -p1 -b .py36magic -%patch2 -p1 -b .fixuep -%patch3 -p1 -b .py35magic -%patch4 -p1 -b .py3b2s -%patch5 -p1 -b .py35b2s_test -%patch6 -p1 -b .buildid sed -i -e /MenuCheck/d Config.py cp -p config config.example install -pm 644 %{SOURCE3} config @@ -156,6 +127,9 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} %{_mandir}/man1/rpmlint.1* %changelog +* Tue Sep 5 2017 Tom Callaway - 1.10-1 +- update to 1.10 + * Thu Jul 27 2017 Fedora Release Engineering - 1.9-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild diff --git a/sources b/sources index 83aa30a..22ace0b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -810d7fd565d389fec305ff80af53ba40 rpmlint-1.9.tar.gz +SHA512 (rpmlint-1.10.tar.gz) = e2d4a5189f13ba7f12af9b72955bb355e2a384f3130fd12a452b81f19126b66496b84ce7cc8cb17c449b793fe8ff574297b26be50a84668a1cfe736aa304f974