From 420af807419233bd2a12fdd29512c1eda142b2be0c69a26564b8e53392886431 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 12 Jul 2016 09:32:39 +0000 Subject: [PATCH 1/3] Accepting request 407269 from home:StefanBruens:branches:devel:openSUSE:Factory:rpmlint_2 Badness for invalid-license is only set in factory-strict.config, not setting it leads to different check results on Factory and Tumbleweed OBS-URL: https://build.opensuse.org/request/show/407269 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=397 --- rpmlint-tests.changes | 6 ++++++ rpmlint-tests.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/rpmlint-tests.changes b/rpmlint-tests.changes index bf94c81..0ce4305 100644 --- a/rpmlint-tests.changes +++ b/rpmlint-tests.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 8 10:54:14 UTC 2016 - stefan.bruens@rwth-aachen.de + +- BuildRequire rpmlint-Factory-strict to have same config on all + releases, fixes failed tests on Tumbleweed + ------------------------------------------------------------------- Tue Mar 8 22:57:31 UTC 2016 - stefan.bruens@rwth-aachen.de diff --git a/rpmlint-tests.spec b/rpmlint-tests.spec index 23568e1..0b09fb2 100644 --- a/rpmlint-tests.spec +++ b/rpmlint-tests.spec @@ -19,6 +19,7 @@ #!BuildIgnore: post-build-checks brp-check-suse +BuildRequires: rpmlint-Factory-strict BuildRequires: rpmlint-mini Name: rpmlint-tests From 0a289acc67b93f0f2bf4b60317fdccf711aefbb7d08d93c4da114477f1ff8266 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 25 Jul 2016 14:31:52 +0000 Subject: [PATCH 2/3] - Update to version 13.2+git20160725.8d99488: * add check for calls to gethostbyname and similar * add check for correct invocation of chroot - rpmlint-checks: * Fix typo in BrandingPolicyCheck.py OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=398 --- _servicedata | 4 ++-- rpmlint-checks-master.tar.xz | 4 ++-- rpmlint-tests-13.2+git20151130.b31588d.tar.xz | 3 --- rpmlint-tests-13.2+git20160725.8d99488.tar.xz | 3 +++ rpmlint-tests.changes | 7 +++++++ rpmlint-tests.spec | 2 +- rpmlint.changes | 7 +++++++ 7 files changed, 22 insertions(+), 8 deletions(-) delete mode 100644 rpmlint-tests-13.2+git20151130.b31588d.tar.xz create mode 100644 rpmlint-tests-13.2+git20160725.8d99488.tar.xz diff --git a/_servicedata b/_servicedata index 9bfb2cf..4e62801 100644 --- a/_servicedata +++ b/_servicedata @@ -1,6 +1,6 @@ http://github.com/openSUSE/rpmlint-tests.git - b31588d9076441797615257409385f2ae2a9f853 + 8d99488dee290853c470199fa1fe80aec8e33784 http://github.com/openSUSE/rpmlint-checks.git - d0808a2802827878acce9ea1e7a1c6226ac79f95 \ No newline at end of file + 08a7268fa35a0a043199bb3f32172c26e69f1ad3 \ No newline at end of file diff --git a/rpmlint-checks-master.tar.xz b/rpmlint-checks-master.tar.xz index d806d2c..610a9f4 100644 --- a/rpmlint-checks-master.tar.xz +++ b/rpmlint-checks-master.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:74ee9151e5b8ac148883fd301edda2131d136219d2e2060ee1bce356d87366c9 -size 24500 +oid sha256:f3622bd9fd61c467711059a560397696447a66fe2aa3878e9c26a5b9ca3f8b8d +size 24504 diff --git a/rpmlint-tests-13.2+git20151130.b31588d.tar.xz b/rpmlint-tests-13.2+git20151130.b31588d.tar.xz deleted file mode 100644 index 6723af8..0000000 --- a/rpmlint-tests-13.2+git20151130.b31588d.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a9e3ea4c2ebcd3632e8c7193ef8db320e5364e7779332218005a1b91daf0268 -size 10992 diff --git a/rpmlint-tests-13.2+git20160725.8d99488.tar.xz b/rpmlint-tests-13.2+git20160725.8d99488.tar.xz new file mode 100644 index 0000000..16a6fb7 --- /dev/null +++ b/rpmlint-tests-13.2+git20160725.8d99488.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a7cffa9789c2655a17863613b1a2cd4d776b44860f19ca7fedf06a37f3f79ee +size 11500 diff --git a/rpmlint-tests.changes b/rpmlint-tests.changes index 0ce4305..72758bd 100644 --- a/rpmlint-tests.changes +++ b/rpmlint-tests.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jul 25 14:27:40 UTC 2016 - lnussel@suse.de + +- Update to version 13.2+git20160725.8d99488: + * add check for calls to gethostbyname and similar + * add check for correct invocation of chroot + ------------------------------------------------------------------- Fri Jul 8 10:54:14 UTC 2016 - stefan.bruens@rwth-aachen.de diff --git a/rpmlint-tests.spec b/rpmlint-tests.spec index 0b09fb2..0e44832 100644 --- a/rpmlint-tests.spec +++ b/rpmlint-tests.spec @@ -23,7 +23,7 @@ BuildRequires: rpmlint-Factory-strict BuildRequires: rpmlint-mini Name: rpmlint-tests -Version: 13.2+git20151130.b31588d +Version: 13.2+git20160725.8d99488 Release: 0 Summary: rpmlint regression tests License: SUSE-Public-Domain diff --git a/rpmlint.changes b/rpmlint.changes index 0b67262..f8986d6 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -1,9 +1,16 @@ +------------------------------------------------------------------- +Mon Jul 25 14:27:42 UTC 2016 - lnussel@suse.de + +- rpmlint-checks: + * Fix typo in BrandingPolicyCheck.py + ------------------------------------------------------------------- Thu Jun 30 20:33:17 UTC 2016 - stefan.bruens@rwth-aachen.de - Add issue_68_BinariesCheck_lower_memory.patch Fixes out-of-memory errors on 32bit systems (bsc#969732) +------------------------------------------------------------------- Fri Jun 17 13:17:22 UTC 2016 - mvetter@suse.com - Adding prosody to known user/group From d74fab69a29940a3c4cd5d0d78a0a0b1900b1d13782d1c7dbb529f0bd0b40219 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Wed, 27 Jul 2016 11:47:58 +0000 Subject: [PATCH 3/3] - remove rpmlint-check-gethostbyname.patch OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=399 --- rpmlint-check-gethostbyname.patch | 146 ------------------------------ rpmlint-tests.changes | 1 + rpmlint-tests.spec | 2 - 3 files changed, 1 insertion(+), 148 deletions(-) delete mode 100644 rpmlint-check-gethostbyname.patch diff --git a/rpmlint-check-gethostbyname.patch b/rpmlint-check-gethostbyname.patch deleted file mode 100644 index 8032e63..0000000 --- a/rpmlint-check-gethostbyname.patch +++ /dev/null @@ -1,146 +0,0 @@ -From 415d04b8d4fbb1421b9277294cf94b851c408795 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Stefan=20Br=C3=BCns?= -Date: Tue, 8 Mar 2016 23:48:45 +0100 -Subject: [PATCH] gethostbyname - ---- - tests/gethostbyname.ignore | 4 ++ - tests/gethostbyname.ref | 7 ++++ - tests/gethostbyname.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++ - 3 files changed, 112 insertions(+) - create mode 100644 tests/gethostbyname.ignore - create mode 100644 tests/gethostbyname.ref - create mode 100644 tests/gethostbyname.spec - -diff --git a/tests/gethostbyname.ignore b/tests/gethostbyname.ignore -new file mode 100644 -index 0000000..410e7a4 ---- /dev/null -+++ b/tests/gethostbyname.ignore -@@ -0,0 +1,3 @@ -+#addFilter(" files-duplicate") -+addFilter(" no-manual-page-for-binary ") -+#addFilter(" no-binary") -diff --git a/tests/gethostbyname.ref b/tests/gethostbyname.ref -new file mode 100644 -index 0000000..fb4a5b9 ---- /dev/null -+++ b/tests/gethostbyname.ref -@@ -0,0 +1,7 @@ -+gethostbyname: I: binary-or-shlib-calls-gethostbyname /usr/bin/call_gethostbyaddr -+gethostbyname: I: binary-or-shlib-calls-gethostbyname /usr/bin/call_gethostbyname2 -+gethostbyname: I: binary-or-shlib-calls-gethostbyname /usr/bin/call_gethostbyname -+gethostbyname: I: binary-or-shlib-calls-gethostbyname /usr/bin/call_gethostbyname2_r -+gethostbyname: I: binary-or-shlib-calls-gethostbyname /usr/bin/call_gethostbyaddr_r -+gethostbyname: I: binary-or-shlib-calls-gethostbyname /usr/bin/call_gethostbyname_r -+1 packages and 0 specfiles checked; 0 errors, 0 warnings. -diff --git a/tests/gethostbyname.spec b/tests/gethostbyname.spec -new file mode 100644 -index 0000000..2cd2457 ---- /dev/null -+++ b/tests/gethostbyname.spec -@@ -0,0 +1,101 @@ -+Name: gethostbyname -+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/ -+ -+%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 -+# int gethostent_r( -+# struct hostent *ret, char *buf, size_t buflen, -+# struct hostent **result, int *h_errnop); -+# -+# int gethostbyaddr_r(const void *addr, socklen_t len, int type, -+# struct hostent *ret, char *buf, size_t buflen, -+# struct hostent **result, int *h_errnop); -+# -+# int gethostbyname_r(const char *name, -+# struct hostent *ret, char *buf, size_t buflen, -+# struct hostent **result, int *h_errnop); -+# -+# int gethostbyname2_r(const char *name, int af, -+# struct hostent *ret, char *buf, size_t buflen, -+# struct hostent **result, int *h_errnop); -+ -+cat < call_gethostbyname.c -+#include -+int main(void) -+{ -+ return gethostbyname("") > 0; -+} -+EOF -+ -+cat < call_gethostbyname2.c -+#include -+int main(void) -+{ -+ return gethostbyname2("", 0) > 0; -+} -+EOF -+ -+cat < call_gethostbyaddr.c -+#include -+int main(void) -+{ -+ return gethostbyaddr(0, 0, 0) > 0; -+} -+EOF -+ -+cat < call_gethostbyaddr_r.c -+#include -+int main(void) -+{ -+ return gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0) > 0; -+} -+EOF -+ -+cat < call_gethostbyname_r.c -+#include -+int main(void) -+{ -+ return gethostbyname_r("", 0, 0, 0, 0, 0) > 0; -+} -+EOF -+ -+cat < call_gethostbyname2_r.c -+#include -+int main(void) -+{ -+ return gethostbyname2_r("", 0, 0, 0, 0, 0, 0) > 0; -+} -+EOF -+ -+%install -+for f in gethostbyname gethostbyname2 gethostbyaddr gethostbyaddr_r gethostbyname_r gethostbyname2_r; do -+ gcc $RPM_OPT_FLAGS -o call_$f call_$f.c -+ strip call_$f -+ install -D -m 755 call_$f %buildroot/usr/bin/call_$f -+done -+ -+%clean -+rm -rf %buildroot -+ -+%files -+%defattr(-,root,root) -+/usr/bin/* -+ -+%changelog -+* Sat Mar 05 2016 stefan.bruens@rwth-aachen.de -+- dummy --- -2.7.2 - diff --git a/rpmlint-tests.changes b/rpmlint-tests.changes index 72758bd..dbe44f7 100644 --- a/rpmlint-tests.changes +++ b/rpmlint-tests.changes @@ -4,6 +4,7 @@ Mon Jul 25 14:27:40 UTC 2016 - lnussel@suse.de - Update to version 13.2+git20160725.8d99488: * add check for calls to gethostbyname and similar * add check for correct invocation of chroot +- remove rpmlint-check-gethostbyname.patch ------------------------------------------------------------------- Fri Jul 8 10:54:14 UTC 2016 - stefan.bruens@rwth-aachen.de diff --git a/rpmlint-tests.spec b/rpmlint-tests.spec index 0e44832..8eeb7e9 100644 --- a/rpmlint-tests.spec +++ b/rpmlint-tests.spec @@ -31,7 +31,6 @@ Group: Development/Tools/Building BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://www.opensuse.org/ Source: rpmlint-tests-%version.tar.xz -Patch0: rpmlint-check-gethostbyname.patch %description This package doesn't actually contain any files and is not meant to @@ -40,7 +39,6 @@ regression tests against rpmlint(-mini). %prep %setup -q -%patch0 -p1 %build mkdir rpms