@Vogtinator
Copy link
Contributor

Building with GCC 7 fails with:

[   51s] c++ -Iqt/becf854@@AppStreamQt@sha -Iqt/ -I../qt -Isrc/ -I../src -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu++14 -Wno-unused-parameter -Wno-error=deprecated-copy -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -pthread -DQT_CORE_LIB -MD -MQ 'qt/becf854@@AppStreamQt@sha/icon.cpp.o' -MF 'qt/becf854@@AppStreamQt@sha/icon.cpp.o.d' -o 'qt/becf854@@AppStreamQt@sha/icon.cpp.o' -c ../qt/icon.cpp
[   51s] cc1plus: error: -Werror=deprecated-copy: no option -Wdeprecated-copy

Not sure whether GCC 7 is supported, but just removing the option results in a successful build:

--- AppStream-0.12.11.orig/meson.build
+++ AppStream-0.12.11/meson.build
@@ -54,7 +54,7 @@ endif
 
 # a few compiler warning flags we always want enabled
 add_global_arguments('-Werror=implicit-function-declaration', '-Wno-unused-parameter', language: 'c')
-add_global_arguments('-Wno-unused-parameter', '-Wno-error=deprecated-copy', language: 'cpp')
+add_global_arguments('-Wno-unused-parameter', language: 'cpp')
 add_global_arguments('-DAS_COMPILATION', language : 'c')
 
 #