Hello community,

here is the log from the commit of package mpd for openSUSE:Factory checked in 
at 2019-06-01 09:51:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mpd (Old)
 and      /work/SRC/openSUSE:Factory/.mpd.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mpd"

Sat Jun  1 09:51:43 2019 rev:9 rq:706207 version:0.21.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/mpd/mpd.changes  2019-03-21 09:52:52.538795748 
+0100
+++ /work/SRC/openSUSE:Factory/.mpd.new.5148/mpd.changes        2019-06-01 
09:51:44.815278256 +0200
@@ -1,0 +2,5 @@
+Tue May 28 12:09:16 UTC 2019 - Christophe Giboudeaux <[email protected]>
+
+- Add GCC9-buildfix.patch
+
+-------------------------------------------------------------------

New:
----
  GCC9-buildfix.patch

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

Other differences:
------------------
++++++ mpd.spec ++++++
--- /var/tmp/diff_new_pack.VI3BLQ/_old  2019-06-01 09:51:45.403278055 +0200
+++ /var/tmp/diff_new_pack.VI3BLQ/_new  2019-06-01 09:51:45.407278053 +0200
@@ -40,6 +40,8 @@
 Patch3:         mpd-docs.patch
 # PATCH-FIX-OPENSUSE mpd-sndfile.patch
 Patch4:         mpd-sndfile.patch
+# PATCH-FIX-UPSTREAM GCC9-buildfix.patch
+Patch5:         GCC9-buildfix.patch
 %if 0%{?suse_version} >= 1500
 BuildRequires:  libboost_headers-devel >= 1.58
 %else

++++++ GCC9-buildfix.patch ++++++
commit 37b54179d882fef38ca6735b53e322027414b62e
Author: Max Kellermann <[email protected]>
Date:   Wed Apr 3 16:59:53 2019 +0200

    net/IPv[46]Address: add cast to void* to fix GCC9 build failure
    
    Fixes:
    
     src/net/IPv4Address.hxx: In member function 'constexpr 
IPv4Address::operator SocketAddress() const':
     src/net/IPv4Address.hxx:171:24: error: a reinterpret_cast is not a 
constant expression
       171 |   return SocketAddress((const struct sockaddr *)&address,
           |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
     src/net/IPv6Address.hxx: In member function 'constexpr 
IPv6Address::operator SocketAddress() const':
     src/net/IPv6Address.hxx:138:24: error: a reinterpret_cast is not a 
constant expression
       138 |   return SocketAddress((const struct sockaddr *)&address,
           |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Closes https://github.com/MusicPlayerDaemon/MPD/issues/522

diff --git a/src/net/IPv4Address.hxx b/src/net/IPv4Address.hxx
index d8be8e5..c8fead1 100644
--- a/src/net/IPv4Address.hxx
+++ b/src/net/IPv4Address.hxx
@@ -163,7 +163,7 @@ public:
        }
 
        constexpr operator SocketAddress() const noexcept {
-               return SocketAddress((const struct sockaddr *)&address,
+               return SocketAddress((const struct sockaddr *)(const void 
*)&address,
                                     sizeof(address));
        }
 
diff --git a/src/net/IPv6Address.hxx b/src/net/IPv6Address.hxx
index 6f21777..0439c0e 100644
--- a/src/net/IPv6Address.hxx
+++ b/src/net/IPv6Address.hxx
@@ -127,7 +127,7 @@ public:
        }
 
        constexpr operator SocketAddress() const noexcept {
-               return SocketAddress((const struct sockaddr *)&address,
+               return SocketAddress((const struct sockaddr *)(const void 
*)&address,
                                     sizeof(address));
        }
 

Reply via email to