From ee12ee0b0583bcb45ec95ef201a3ba7fc74c4fae Mon Sep 17 00:00:00 2001 From: eaglegai Date: Mon, 3 Aug 2020 10:39:39 +0800 Subject: [PATCH] fix build error --- ...recation-warning-about-flask.h-usage.patch | 31 +++++++++++++++++++ xinetd.spec | 19 ++++++++---- 2 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 xinetd-remove-deprecation-warning-about-flask.h-usage.patch diff --git a/xinetd-remove-deprecation-warning-about-flask.h-usage.patch b/xinetd-remove-deprecation-warning-about-flask.h-usage.patch new file mode 100644 index 0000000..ceb2342 --- /dev/null +++ b/xinetd-remove-deprecation-warning-about-flask.h-usage.patch @@ -0,0 +1,31 @@ +From a192cc0244da275615edd18118afcc249dd4e53d Mon Sep 17 00:00:00 2001 +From: Petr Lautrbach +Date: Tue, 7 Apr 2020 11:56:52 +0200 +Subject: [PATCH] Remove deprecation warning about flask.h usage + +flask.h has been deprecated for a long time and will be dropped completely from +the next SELinux userspace release. +--- +diff -up xinetd-2.3.15/xinetd/child.c.remove-flaskh xinetd-2.3.15/xinetd/child.c +--- xinetd-2.3.15/xinetd/child.c.remove-flaskh 2020-04-07 12:28:52.538123162 +0200 ++++ xinetd-2.3.15/xinetd/child.c 2020-04-07 12:28:58.980980069 +0200 +@@ -33,7 +33,6 @@ + #endif + #ifdef LABELED_NET + #include +-#include + #include + #endif + +@@ -551,7 +550,7 @@ static int set_context_from_socket( cons + if (!(new_context = context_str(bcon))) + goto fail; + +- if (security_compute_create(new_context, exec_context, SECCLASS_PROCESS, ++ if (security_compute_create(new_context, exec_context, string_to_security_class("process"), + &new_exec_context) < 0) + goto fail; + +-- +1.8.3.1 + diff --git a/xinetd.spec b/xinetd.spec index 0c27c92..f8d5e34 100644 --- a/xinetd.spec +++ b/xinetd.spec @@ -1,7 +1,7 @@ Name: xinetd Epoch: 2 Version: 2.3.15 -Release: 29 +Release: 30 Summary: A super-server daemon that manages Internet-based connectivity License: xinetd URL: https://github.com/xinetd-org/xinetd @@ -37,11 +37,12 @@ Patch0025: xinetd-2.3.15-tcpmux-nameinargs-disable-service.patch Patch0026: xinetd-2.3.15-udp-wait.patch #backport patches -Patch6001: connection.c-fix-pointer-dereference-before-NULL-che.patch -Patch6002: tcpint.c-fix-memleak.patch -Patch6003: inet.c-avoid-using-pointer-after-free.patch -Patch6004: service.c-avoid-dereferencing-NULL-pointer.patch -Patch6005: sconf.c-fix-possible-memleak.patch +Patch0027: connection.c-fix-pointer-dereference-before-NULL-che.patch +Patch0028: tcpint.c-fix-memleak.patch +Patch0029: inet.c-avoid-using-pointer-after-free.patch +Patch0030: service.c-avoid-dereferencing-NULL-pointer.patch +Patch0031: sconf.c-fix-possible-memleak.patch +Patch0032: xinetd-remove-deprecation-warning-about-flask.h-usage.patch BuildRequires: autoconf automake libtirpc-devel libselinux-devel >= 1.30 systemd-units Requires: filesystem >= 2.0.1 setup @@ -114,6 +115,12 @@ install -m600 contrib/xinetd.d/* %{buildroot}%{_sysconfdir}/xinetd.d %exclude %{_mandir}/man8/xconv.pl* %changelog +* Mon Aug 03 2020 gaihuiying - 2:2.3.15-30 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix build error + * Tue Dec 24 2019 openEuler Buildteam - 2:2.3.15-29 - Type:bugfix - ID:NA