Mock Version: 3.5
Mock Version: 3.5
Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/qiv.spec'], chrootPath='/home/lib/mock/dist-ocs23-build-259018-24826/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffe29ba170>timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/qiv.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: loongarch64
Building for target loongarch64
Wrote: /builddir/build/SRPMS/qiv-2.3.2-1.ocs23.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/qiv.spec'], chrootPath='/home/lib/mock/dist-ocs23-build-259018-24826/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xffe29ba170>timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/qiv.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
Building target platforms: loongarch64
Building for target loongarch64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.arjwj2
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf qiv-2.3.2
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/qiv-2.3.2.tgz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd qiv-2.3.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/qiv-makefile-destdir.patch
+ /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.CIC6wq
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld  -Wl,--build-id=sha1'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd qiv-2.3.2
+ /usr/bin/make -O -j32 V=1 VERBOSE=1 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection'
gcc -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -DEXTN_GIF -DEXTN_TIFF -DEXTN_XPM -DEXTN_PNG -DEXTN_PPM -DEXTN_PNM -DEXTN_PGM -DEXTN_PCX -DEXTN_BMP -DEXTN_EIM -DEXTN_JPEG -DEXTN_SVG -DEXTN_WMF -DEXTN_ICO -DHAVE_GETOPT_LONG -DSTATUSBAR_FONT='"Monospace 9"' -DCOMMENT_FONT='"Monospace 20"' -DCENTER=1 -DFILTER=1 -DCURSOR=84 -DHAVE_MAGIC -DHAVE_EXIF -DSUPPORT_LCMS -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-4 -pthread xmalloc.c -o xmalloc.o
xmalloc.c: In function 'xmalloc':
xmalloc.c:24:33: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat=]
   24 |                 fprintf(stderr, "Error:  Insufficient memory "
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
   30 |                                  (unsigned int) size);
      |                                  ~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  unsigned int
xmalloc.c:26:55: note: format string is defined here
   26 |                                 "(attempt to malloc %zu bytes)\n",
      |                                                     ~~^
      |                                                       |
      |                                                       long unsigned int
      |                                                     %u
xmalloc.c: In function 'xcalloc':
xmalloc.c:42:33: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat=]
   42 |                 fprintf(stderr, "Error:  Insufficient memory "
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
   48 |                                  (unsigned int) size);
      |                                  ~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  unsigned int
xmalloc.c:44:55: note: format string is defined here
   44 |                                 "(attempt to calloc %zu bytes)\n",
      |                                                     ~~^
      |                                                       |
      |                                                       long unsigned int
      |                                                     %u
xmalloc.c: In function 'xrealloc':
xmalloc.c:67:33: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat=]
   67 |                 fprintf(stderr, "Error:  Insufficient memory "
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
   73 |                                  (unsigned int) size);
      |                                  ~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  unsigned int
xmalloc.c:69:56: note: format string is defined here
   69 |                                 "(attempt to realloc %zu bytes)\n",
      |                                                      ~~^
      |                                                        |
      |                                                        long unsigned int
      |                                                      %u
gcc -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -DEXTN_GIF -DEXTN_TIFF -DEXTN_XPM -DEXTN_PNG -DEXTN_PPM -DEXTN_PNM -DEXTN_PGM -DEXTN_PCX -DEXTN_BMP -DEXTN_EIM -DEXTN_JPEG -DEXTN_SVG -DEXTN_WMF -DEXTN_ICO -DHAVE_GETOPT_LONG -DSTATUSBAR_FONT='"Monospace 9"' -DCOMMENT_FONT='"Monospace 20"' -DCENTER=1 -DFILTER=1 -DCURSOR=84 -DHAVE_MAGIC -DHAVE_EXIF -DSUPPORT_LCMS -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-4 -pthread main.c -o main.o
main.c: In function 'main':
main.c:116:13: warning: Deprecated pre-processor symbol: replace with "g_main_loop_new"
  116 |   qiv_main_loop = g_main_new(TRUE);
      |             ^~~~~~~~~~~~~~~~~~~~~~~                                            
main.c:211:13: warning: Deprecated pre-processor symbol: replace with "g_main_loop_run"
  211 |   g_main_run(qiv_main_loop); /* will never return */
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                           
main.c: In function 'qiv_exit':
main.c:226:13: warning: Deprecated pre-processor symbol: replace with "g_main_loop_unref"
  226 |   g_main_destroy(qiv_main_loop);
      |             ^~~~~~~~~~~~~~~~~~~~                                                 
gcc -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -DEXTN_GIF -DEXTN_TIFF -DEXTN_XPM -DEXTN_PNG -DEXTN_PPM -DEXTN_PNM -DEXTN_PGM -DEXTN_PCX -DEXTN_BMP -DEXTN_EIM -DEXTN_JPEG -DEXTN_SVG -DEXTN_WMF -DEXTN_ICO -DHAVE_GETOPT_LONG -DSTATUSBAR_FONT='"Monospace 9"' -DCOMMENT_FONT='"Monospace 20"' -DCENTER=1 -DFILTER=1 -DCURSOR=84 -DHAVE_MAGIC -DHAVE_EXIF -DSUPPORT_LCMS -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-4 -pthread options.c -o options.o
gcc -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -DEXTN_GIF -DEXTN_TIFF -DEXTN_XPM -DEXTN_PNG -DEXTN_PPM -DEXTN_PNM -DEXTN_PGM -DEXTN_PCX -DEXTN_BMP -DEXTN_EIM -DEXTN_JPEG -DEXTN_SVG -DEXTN_WMF -DEXTN_ICO -DHAVE_GETOPT_LONG -DSTATUSBAR_FONT='"Monospace 9"' -DCOMMENT_FONT='"Monospace 20"' -DCENTER=1 -DFILTER=1 -DCURSOR=84 -DHAVE_MAGIC -DHAVE_EXIF -DSUPPORT_LCMS -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-4 -pthread image.c -o image.o
image.c: In function 'setup_win':
image.c:397:5: warning: 'gdk_pixbuf_new_from_inline' is deprecated [-Wdeprecated-declarations]
  397 |     icon_list.data = gdk_pixbuf_new_from_inline (-1, qiv_icon, FALSE, NULL);
      |     ^~~~~~~~~
In file included from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:34,
                 from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkcairo.h:28,
                 from /usr/include/gtk-2.0/gdk/gdk.h:33,
                 from /usr/include/gtk-2.0/gdk/gdkprivate.h:30,
                 from /usr/include/gtk-2.0/gdk/gdkx.h:30,
                 from image.c:12:
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:298:12: note: declared here
  298 | GdkPixbuf* gdk_pixbuf_new_from_inline   (gint          data_length,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -DEXTN_GIF -DEXTN_TIFF -DEXTN_XPM -DEXTN_PNG -DEXTN_PPM -DEXTN_PNM -DEXTN_PGM -DEXTN_PCX -DEXTN_BMP -DEXTN_EIM -DEXTN_JPEG -DEXTN_SVG -DEXTN_WMF -DEXTN_ICO -DHAVE_GETOPT_LONG -DSTATUSBAR_FONT='"Monospace 9"' -DCOMMENT_FONT='"Monospace 20"' -DCENTER=1 -DFILTER=1 -DCURSOR=84 -DHAVE_MAGIC -DHAVE_EXIF -DSUPPORT_LCMS -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-4 -pthread event.c -o event.o
gcc -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -DEXTN_GIF -DEXTN_TIFF -DEXTN_XPM -DEXTN_PNG -DEXTN_PPM -DEXTN_PNM -DEXTN_PGM -DEXTN_PCX -DEXTN_BMP -DEXTN_EIM -DEXTN_JPEG -DEXTN_SVG -DEXTN_WMF -DEXTN_ICO -DHAVE_GETOPT_LONG -DSTATUSBAR_FONT='"Monospace 9"' -DCOMMENT_FONT='"Monospace 20"' -DCENTER=1 -DFILTER=1 -DCURSOR=84 -DHAVE_MAGIC -DHAVE_EXIF -DSUPPORT_LCMS -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-4 -pthread utils.c -o utils.o
utils.c: In function 'get_icc_profile':
utils.c:916:5: warning: 'uint16' is deprecated [-Wdeprecated-declarations]
  916 |     uint16 count;
      |     ^~~~~~
utils.c: In function 'copy2select':
utils.c:218:43: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
  218 |   while((n = read(fdi, buf, BUFSIZ)) > 0) write(fdo, buf, n);
      |                                           ^~~~~~~~~~~~~~~~~~
utils.c: In function 'move2trash':
utils.c:60:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1024 [-Wformat-truncation=]
   60 |     snprintf(trashfile, sizeof trashfile, "%s/%s/%s", path_result, TRASH_DIR, ptr+1);
      |                                            ^~         ~~~~~~~~~~~
In file included from /usr/include/stdio.h:964,
                 from utils.c:10:
In function 'snprintf',
    inlined from 'move2trash' at utils.c:60:5:
/usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 13 or more bytes (assuming 4108) into a destination of size 1024
   54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   56 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
utils.c: In function 'move2trash':
utils.c:48:5: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation]
   48 |     strncpy(path_result, filename, PATH_MAX);
      |     ^
utils.c: In function 'copy2select':
utils.c:164:40: warning: '/.qiv-select' directive output may be truncated writing 12 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
  164 |   snprintf(dstfile, sizeof dstfile, "%s/.qiv-select", select_dir);
      |                                        ^~~~~~~~~~~~
In function 'snprintf',
    inlined from 'copy2select' at utils.c:164:3:
/usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 13 and 1036 bytes into a destination of size 1024
   54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   56 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
utils.c: In function 'copy2select':
utils.c:191:43: warning: '__snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=]
  191 |   snprintf(dstfile, sizeof dstfile, "%s/%s", select_dir, ptr);
      |                                           ^
In function 'snprintf',
    inlined from 'copy2select' at utils.c:191:3:
/usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024
   54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   56 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
utils.c: In function 'copy2select':
utils.c:203:41: warning: '.bak' directive output may be truncated writing 4 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
  203 |     snprintf(tmp, sizeof dstfilebak, "%s.bak", dstfilebak);
      |                                         ^~~~
In function 'snprintf',
    inlined from 'copy2select' at utils.c:203:5:
/usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 5 and 1028 bytes into a destination of size 1024
   54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   56 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
utils.c: In function 'rreaddir':
utils.c:641:37: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
  641 |     snprintf(name, sizeof name, "%s/%s", cdirname, entry->d_name);
      |                                     ^~
In function 'snprintf',
    inlined from 'rreaddir' at utils.c:641:5:
/usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 2 and 1280 bytes into a destination of size 1024
   54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   56 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
utils.c: In function 'get_exif_values':
utils.c:1006:37: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 232 [-Wformat-truncation=]
 1006 |         snprintf(line, 255, "%-21s: %s\n", exif_tag_get_name_in_ifd(tags[i].tag,tags[i].ifd), buffer);
      |                                     ^~                                                        ~~~~~~
In function 'snprintf',
    inlined from 'get_exif_values' at utils.c:1006:9:
/usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 25 or more bytes (assuming 280) into a destination of size 255
   54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   55 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   56 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong  -fasynchronous-unwind-tables -fstack-clash-protection -DEXTN_GIF -DEXTN_TIFF -DEXTN_XPM -DEXTN_PNG -DEXTN_PPM -DEXTN_PNM -DEXTN_PGM -DEXTN_PCX -DEXTN_BMP -DEXTN_EIM -DEXTN_JPEG -DEXTN_SVG -DEXTN_WMF -DEXTN_ICO -DHAVE_GETOPT_LONG -DSTATUSBAR_FONT='"Monospace 9"' -DCOMMENT_FONT='"Monospace 20"' -DCENTER=1 -DFILTER=1 -DCURSOR=84 -DHAVE_MAGIC -DHAVE_EXIF -DSUPPORT_LCMS main.o image.o event.o options.o utils.o xmalloc.o -lgdk-x11-2.0 -lImlib2 -lxml2 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lharfbuzz -lglib-2.0 -lcairo -lpango-1.0 -lgobject-2.0 -lX11 -lXext -lgio-2.0 -llcms2 -ljpeg -ltiff -lexif -lmagic -o qiv
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.EQC5OT
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64
++ dirname /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64
+ cd qiv-2.3.2
+ /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64 'INSTALL=/usr/bin/install -p' PREFIX=/usr
Installing QIV...
/usr/bin/install -p -d -m 0755 /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/bin
/usr/bin/install -p -m 0755 qiv /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/bin
/usr/bin/install -p -d -m 0755 /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/man/man1
/usr/bin/install -p -m 0644 qiv.1 /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/man/man1
gzip -9f /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/man/man1/qiv.1
/usr/bin/install -p -d -m 0755 /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/pixmaps
/usr/bin/install -p -m 0644 qiv.png /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/pixmaps/qiv.png
/usr/bin/install -p -d -m 0755 /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/applications
/usr/bin/install -p -m 0644 qiv.desktop /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/applications/qiv.desktop
(qiv:1131872): Gdk-WARNING **: 18:14:15.152: cannot open display: 
-- Test Failed --
\nDont forget to look into the "qiv-command" file and install it!\n-> cp qiv-command.example /usr/bin/qiv-command\n\n
+ chmod 644 contrib/qiv-command.example
+ /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 2.3.2-1.ocs23 --unique-debug-suffix -2.3.2-1.ocs23.loongarch64 --unique-debug-src-base qiv-2.3.2-1.ocs23.loongarch64 -S debugsourcefiles.list /builddir/build/BUILD/qiv-2.3.2
extracting debug info from /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/bin/qiv
275 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/OpenCloudOS/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs
+ /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0
+ /usr/lib/rpm/OpenCloudOS/brp-python-hardlink
Processing files: qiv-2.3.2-1.ocs23.loongarch64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.cHhj6V
+ umask 022
+ cd /builddir/build/BUILD
+ cd qiv-2.3.2
+ DOCDIR=/builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/doc/qiv
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/doc/qiv
+ cp -pr README /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/doc/qiv
+ cp -pr Changelog /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/doc/qiv
+ cp -pr README.COPYING /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/doc/qiv
+ cp -pr README.TODO /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/doc/qiv
+ cp -pr contrib/qiv-command.example /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64/usr/share/doc/qiv
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: application() application(qiv.desktop) mimehandler(image/bmp) mimehandler(image/gif) mimehandler(image/jpeg) mimehandler(image/jpg) mimehandler(image/pjpeg) mimehandler(image/png) mimehandler(image/svg+xml) mimehandler(image/svg+xml-compressed) mimehandler(image/tiff) mimehandler(image/vnd.wap.wbmp) mimehandler(image/x-bmp) mimehandler(image/x-gray) mimehandler(image/x-icb) mimehandler(image/x-ico) mimehandler(image/x-pcx) mimehandler(image/x-png) mimehandler(image/x-portable-anymap) mimehandler(image/x-portable-bitmap) mimehandler(image/x-portable-graymap) mimehandler(image/x-portable-pixmap) mimehandler(image/x-xbitmap) mimehandler(image/x-xpixmap) qiv = 2.3.2-1.ocs23 qiv(loongarch-64) = 2.3.2-1.ocs23
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: ld-linux-loongarch-lp64d.so.1()(64bit) ld-linux-loongarch-lp64d.so.1(GLIBC_2.36)(64bit) libImlib2.so.1()(64bit) libX11.so.6()(64bit) libXext.so.6()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.36)(64bit) libcairo.so.2()(64bit) libexif.so.12()(64bit) libgdk-x11-2.0.so.0()(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libharfbuzz.so.0()(64bit) libjpeg.so.62()(64bit) libjpeg.so.62(LIBJPEG_6.2)(64bit) liblcms2.so.2()(64bit) libmagic.so.1()(64bit) libpango-1.0.so.0()(64bit) libpangocairo-1.0.so.0()(64bit) libtiff.so.6()(64bit) libtiff.so.6(LIBTIFF_4.0)(64bit) libxml2.so.2()(64bit) rtld(GNU_HASH)
Processing files: qiv-debugsource-2.3.2-1.ocs23.loongarch64
Provides: qiv-debugsource = 2.3.2-1.ocs23 qiv-debugsource(loongarch-64) = 2.3.2-1.ocs23
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: qiv-debuginfo-2.3.2-1.ocs23.loongarch64
Provides: debuginfo(build-id) = 73baa6e0981ea8a067f5c93d2bc71660117f7fbc qiv-debuginfo = 2.3.2-1.ocs23 qiv-debuginfo(loongarch-64) = 2.3.2-1.ocs23
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Recommends: qiv-debugsource(loongarch-64) = 2.3.2-1.ocs23
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/qiv-2.3.2-1.ocs23.loongarch64
Wrote: /builddir/build/RPMS/qiv-debugsource-2.3.2-1.ocs23.loongarch64.rpm
Wrote: /builddir/build/RPMS/qiv-2.3.2-1.ocs23.loongarch64.rpm
Wrote: /builddir/build/RPMS/qiv-debuginfo-2.3.2-1.ocs23.loongarch64.rpm
Child return code was: 0