forked from pool/rpmlint
Accepting request 415832 from devel:openSUSE:Factory:rpmlint
- 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 - BuildRequire rpmlint-Factory-strict to have same config on all releases, fixes failed tests on Tumbleweed - rpmlint-checks: * Fix typo in BrandingPolicyCheck.py OBS-URL: https://build.opensuse.org/request/show/415832 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=254
This commit is contained in:
commit
54fbb2f957
@ -1,6 +1,6 @@
|
|||||||
<servicedata>
|
<servicedata>
|
||||||
<service name="tar_scm">
|
<service name="tar_scm">
|
||||||
<param name="url">http://github.com/openSUSE/rpmlint-tests.git</param>
|
<param name="url">http://github.com/openSUSE/rpmlint-tests.git</param>
|
||||||
<param name="changesrevision">b31588d9076441797615257409385f2ae2a9f853</param></service><service name="tar_scm">
|
<param name="changesrevision">8d99488dee290853c470199fa1fe80aec8e33784</param></service><service name="tar_scm">
|
||||||
<param name="url">http://github.com/openSUSE/rpmlint-checks.git</param>
|
<param name="url">http://github.com/openSUSE/rpmlint-checks.git</param>
|
||||||
<param name="changesrevision">d0808a2802827878acce9ea1e7a1c6226ac79f95</param></service></servicedata>
|
<param name="changesrevision">08a7268fa35a0a043199bb3f32172c26e69f1ad3</param></service></servicedata>
|
@ -1,146 +0,0 @@
|
|||||||
From 415d04b8d4fbb1421b9277294cf94b851c408795 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
|
|
||||||
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 <<EOF > call_gethostbyname.c
|
|
||||||
+#include <netdb.h>
|
|
||||||
+int main(void)
|
|
||||||
+{
|
|
||||||
+ return gethostbyname("") > 0;
|
|
||||||
+}
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
+cat <<EOF > call_gethostbyname2.c
|
|
||||||
+#include <netdb.h>
|
|
||||||
+int main(void)
|
|
||||||
+{
|
|
||||||
+ return gethostbyname2("", 0) > 0;
|
|
||||||
+}
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
+cat <<EOF > call_gethostbyaddr.c
|
|
||||||
+#include <netdb.h>
|
|
||||||
+int main(void)
|
|
||||||
+{
|
|
||||||
+ return gethostbyaddr(0, 0, 0) > 0;
|
|
||||||
+}
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
+cat <<EOF > call_gethostbyaddr_r.c
|
|
||||||
+#include <netdb.h>
|
|
||||||
+int main(void)
|
|
||||||
+{
|
|
||||||
+ return gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0) > 0;
|
|
||||||
+}
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
+cat <<EOF > call_gethostbyname_r.c
|
|
||||||
+#include <netdb.h>
|
|
||||||
+int main(void)
|
|
||||||
+{
|
|
||||||
+ return gethostbyname_r("", 0, 0, 0, 0, 0) > 0;
|
|
||||||
+}
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
+cat <<EOF > call_gethostbyname2_r.c
|
|
||||||
+#include <netdb.h>
|
|
||||||
+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
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:74ee9151e5b8ac148883fd301edda2131d136219d2e2060ee1bce356d87366c9
|
oid sha256:f3622bd9fd61c467711059a560397696447a66fe2aa3878e9c26a5b9ca3f8b8d
|
||||||
size 24500
|
size 24504
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7a9e3ea4c2ebcd3632e8c7193ef8db320e5364e7779332218005a1b91daf0268
|
|
||||||
size 10992
|
|
3
rpmlint-tests-13.2+git20160725.8d99488.tar.xz
Normal file
3
rpmlint-tests-13.2+git20160725.8d99488.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2a7cffa9789c2655a17863613b1a2cd4d776b44860f19ca7fedf06a37f3f79ee
|
||||||
|
size 11500
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
|
||||||
|
- 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
|
Tue Mar 8 22:57:31 UTC 2016 - stefan.bruens@rwth-aachen.de
|
||||||
|
|
||||||
|
@ -19,10 +19,11 @@
|
|||||||
|
|
||||||
#!BuildIgnore: post-build-checks brp-check-suse
|
#!BuildIgnore: post-build-checks brp-check-suse
|
||||||
|
|
||||||
|
BuildRequires: rpmlint-Factory-strict
|
||||||
BuildRequires: rpmlint-mini
|
BuildRequires: rpmlint-mini
|
||||||
|
|
||||||
Name: rpmlint-tests
|
Name: rpmlint-tests
|
||||||
Version: 13.2+git20151130.b31588d
|
Version: 13.2+git20160725.8d99488
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: rpmlint regression tests
|
Summary: rpmlint regression tests
|
||||||
License: SUSE-Public-Domain
|
License: SUSE-Public-Domain
|
||||||
@ -30,7 +31,6 @@ Group: Development/Tools/Building
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Url: http://www.opensuse.org/
|
Url: http://www.opensuse.org/
|
||||||
Source: rpmlint-tests-%version.tar.xz
|
Source: rpmlint-tests-%version.tar.xz
|
||||||
Patch0: rpmlint-check-gethostbyname.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package doesn't actually contain any files and is not meant to
|
This package doesn't actually contain any files and is not meant to
|
||||||
@ -39,7 +39,6 @@ regression tests against rpmlint(-mini).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir rpms
|
mkdir rpms
|
||||||
|
@ -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
|
Thu Jun 30 20:33:17 UTC 2016 - stefan.bruens@rwth-aachen.de
|
||||||
|
|
||||||
- Add issue_68_BinariesCheck_lower_memory.patch
|
- Add issue_68_BinariesCheck_lower_memory.patch
|
||||||
Fixes out-of-memory errors on 32bit systems (bsc#969732)
|
Fixes out-of-memory errors on 32bit systems (bsc#969732)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
Fri Jun 17 13:17:22 UTC 2016 - mvetter@suse.com
|
Fri Jun 17 13:17:22 UTC 2016 - mvetter@suse.com
|
||||||
|
|
||||||
- Adding prosody to known user/group
|
- Adding prosody to known user/group
|
||||||
|
Loading…
x
Reference in New Issue
Block a user