bol: replace with "const" 166 | G_CONST_RETURN char *dia_font_get_weight_string(const DiaFont* font); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../../lib/font.h:169:13: warning: Deprecated pre-processor symbol: replace with "const" 169 | G_CONST_RETURN char *dia_font_get_slant_string(const DiaFont* font); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, from /usr/include/gtk-2.0/gtk/gtkwidget.h:36, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from ./../../lib/object.h:26, from dia-render-script-renderer.c:32: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^~~~ In file included from /usr/include/glib-2.0/gobject/gobject.h:26, from /usr/include/glib-2.0/gobject/gbinding.h:31, from /usr/include/glib-2.0/glib-object.h:24, from ./../../lib/diarenderer.h:24: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here 723 | { | ^ In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~ In file included from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from dia-render-script-renderer.c:27: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here 580 | struct _GTimeVal | ^~~~~~~~~ dia-render-script-renderer.c: In function 'draw_object': dia-render-script-renderer.c:107:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 107 | if ((int)object->type->default_user_data > 0 && (int)object->type->default_user_data < 0xFF) { | ^ dia-render-script-renderer.c:107:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 107 | if ((int)object->type->default_user_data > 0 && (int)object->type->default_user_data < 0xFF) { | ^ dia-render-script-renderer.c:109:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 109 | g_snprintf(buffer, sizeof(buffer), "%d", (int)object->type->default_user_data); | ^ make[2]: *** [Makefile:432: all-recursive] Error 1 make[1]: *** [Makefile:602: all-recursive] Error 1 make: *** [Makefile:468: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.VqLMnL (%build) %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.VqLMnL (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/dia.spec