Hello community,

here is the log from the commit of package xplatproviders for openSUSE:Factory 
checked in at 2017-07-04 09:10:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xplatproviders (Old)
 and      /work/SRC/openSUSE:Factory/.xplatproviders.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xplatproviders"

Tue Jul  4 09:10:37 2017 rev:11 rq:507717 version:1.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/xplatproviders/xplatproviders.changes    
2017-02-09 11:15:02.567926953 +0100
+++ /work/SRC/openSUSE:Factory/.xplatproviders.new/xplatproviders.changes       
2017-07-04 09:11:04.276897429 +0200
@@ -1,0 +2,12 @@
+Mon Jul  3 06:57:16 UTC 2017 - [email protected]
+
+- add configure-assume-host-SUSE-if-SUSE_VERSION-set.patch
+  to detect host in absence of /etc/issue
+
+- add drop-stropts.h-include.patch
+  fixes redhat/centos/fedora builds
+
+- rename 0002-Consider-gcc-in-SUSE-can-handle-dynamic_cast.patch
+  to Consider-gcc-in-SUSE-and-REDHAT-can-handle-dynamic_c.patch
+
+-------------------------------------------------------------------

Old:
----
  0002-Consider-gcc-in-SUSE-can-handle-dynamic_cast.patch

New:
----
  Consider-gcc-in-SUSE-and-REDHAT-can-handle-dynamic_c.patch
  configure-assume-host-SUSE-if-SUSE_VERSION-set.patch
  drop-stropts.h-include.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xplatproviders.spec ++++++
--- /var/tmp/diff_new_pack.N91S6a/_old  2017-07-04 09:11:06.504584164 +0200
+++ /var/tmp/diff_new_pack.N91S6a/_new  2017-07-04 09:11:06.508583601 +0200
@@ -34,13 +34,15 @@
 Patch8:         0008-untab-indentation-for.patch
 Patch9:         0009-Honor-DESTDIR-in-install.patch
 Patch10:        0001-Get-release-string-and-version-right.patch
-Patch11:        0002-Consider-gcc-in-SUSE-can-handle-dynamic_cast.patch
+Patch11:        Consider-gcc-in-SUSE-and-REDHAT-can-handle-dynamic_c.patch
 Patch12:        0003-Include-unistd.h.patch
 Patch13:        0004-Remove-const-qualifier-from-functions-returning-inte.patch
 Patch14:        0001-config.guess-SuSEconfig-is-gone-post-openSUSE-12.2.patch
 Patch15:        xplatproviders-gcc48.patch
 Patch16:        fix-gcc6.patch
 Patch17:        reproducible.patch
+Patch18:        configure-assume-host-SUSE-if-SUSE_VERSION-set.patch
+Patch19:        drop-stropts.h-include.patch
 BuildRequires:  gcc-c++
 BuildRequires:  sblim-cmpi-devel
 Requires(pre):  /bin/hostname
@@ -83,12 +85,20 @@
 %patch15
 %patch16 -p1
 %patch17 -p1
+%patch18 -p1
+%if !0%{?suse_version}
+%patch19 -p1
+%endif
 
 %build
 export CFLAGS="%{optflags}"
 export CXXFLAGS="%{optflags}"
 %if 0%{?suse_version}
-export SUSE_VERSION=0%{?suse_version}
+  export SUSE_VERSION=0%{?suse_version}
+%else
+  %if 0%{?fedora_version}
+    export FEDORA_VERSION=0%{?fedora_version}
+  %endif
 %endif
 sh -x configure \
   --prefix=%{_libdir}/cmpi \

++++++ Consider-gcc-in-SUSE-and-REDHAT-can-handle-dynamic_c.patch ++++++
>From 34b770b1c6f1415a4d365678ac43a03feeb41a78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <[email protected]>
Date: Thu, 31 May 2012 17:39:19 +0200
Subject: [PATCH 5/5] Consider gcc in SUSE and REDHAT can handle dynamic_cast

---
 source/code/include/scxcorelib/scxcmn.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/code/include/scxcorelib/scxcmn.h 
b/source/code/include/scxcorelib/scxcmn.h
index 24a8afb76779..74abc51e1876 100644
--- a/source/code/include/scxcorelib/scxcmn.h
+++ b/source/code/include/scxcorelib/scxcmn.h
@@ -175,7 +175,7 @@ typedef uint64_t scxulong;
 /* Include scxcompat.h so it can be used without special requirements */
 #include <scxcorelib/scxcompat.h>
 
-#if !defined(sun) && !defined(aix) && !(defined(PF_DISTRO_SUSE) && 
PF_MAJOR==11)
+#if !defined(sun) && !defined(aix) && !defined(PF_DISTRO_SUSE) && 
!defined(PF_DISTRO_REDHAT)
 
 // this macro disables dynamic_cast, since t causes problems on aix 5.3 - see 
wi 11149, 11220
 #define dynamic_cast 
sorry_but_dynamic_cast_is_not_allowed_in_core_project_see_wi_11220
-- 
2.13.1

++++++ configure-assume-host-SUSE-if-SUSE_VERSION-set.patch ++++++
>From 40213d6b49dc48721a7b4de8a0a668f3b4267f6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <[email protected]>
Date: Mon, 3 Jul 2017 08:55:14 +0200
Subject: [PATCH] configure: assume host SUSE if SUSE_VERSION set

+ assume FEDORA if FEDORA_VERSION is set
---
 configure | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index c36a90eef223..fdc70edf589d 100644
--- a/configure
+++ b/configure
@@ -82,9 +82,16 @@ chmod +x ./build/xplatproviders/license.awk
 host=`./build/xplatproviders/config.guess`
 
 if [ "$host" = "Unknown" ]; then
-    echo "Error: unsupported platform"
-    echo ""
-    exit 1;
+    if [ -n "$SUSE_VERSION" ]; then
+      echo "SUSE"
+      host="SUSE"
+    elif [ -n "$FEDORA_VERSION" ]; then
+      host="FEDORA"
+    else
+      echo "Error: unsupported platform"
+      echo ""
+      exit 1;
+    fi
 fi
 
 ##
-- 
2.13.1

++++++ drop-stropts.h-include.patch ++++++
>From aba86f3fa0c2dddc7127188bfd8e1c221844c1bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <[email protected]>
Date: Mon, 3 Jul 2017 09:30:10 +0200
Subject: [PATCH] drop stropts.h include

---
 source/code/common_lib/pal/system/networkinterface/networkinterface.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/source/code/common_lib/pal/system/networkinterface/networkinterface.cpp 
b/source/code/common_lib/pal/system/networkinterface/networkinterface.cpp
index 129870f8acfb..9e9780ada7e6 100644
--- a/source/code/common_lib/pal/system/networkinterface/networkinterface.cpp
+++ b/source/code/common_lib/pal/system/networkinterface/networkinterface.cpp
@@ -76,7 +76,6 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <net/if.h>
-#include <stropts.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
 #include <errno.h>
-- 
2.13.1


Reply via email to