Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/gimp-lensfun.spec'], chrootPath='/var/lib/mock/f40-build-2086285-50109/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/gimp-lensfun.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Wrote: /builddir/build/SRPMS/gimp-lensfun-0.2.4-22.fc40.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/gimp-lensfun.spec'], chrootPath='/var/lib/mock/f40-build-2086285-50109/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/gimp-lensfun.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Cr5lMg + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf GIMP-Lensfun-0.2.4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/0.2.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd GIMP-Lensfun-0.2.4 + rm -rf /builddir/build/BUILD/GIMP-Lensfun-0.2.4-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/GIMP-Lensfun-0.2.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (gimp-lensfun-fix-exiv2-build-error.patch):' Patch #0 (gimp-lensfun-fix-exiv2-build-error.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/gimplensfun.cpp + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.S3pSE7 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd GIMP-Lensfun-0.2.4 + make -j8 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer' g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/include/gimp-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/pango-1.0 -I/usr/include/gegl-0.4 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/webp -I/usr/include/blkid -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/libmount -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -pthread -I/usr/include/lensfun -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c -o src/gimplensfun.o src/gimplensfun.cpp src/gimplensfun.cpp:956: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas] 956 | #pragma omp parallel | src/gimplensfun.cpp:962: warning: ignoring ‘#pragma omp for’ [-Wunknown-pragmas] 962 | #pragma omp for | src/gimplensfun.cpp:987: warning: ignoring ‘#pragma omp atomic’ [-Wunknown-pragmas] 987 | #pragma omp atomic | src/gimplensfun.cpp:991: warning: ignoring ‘#pragma omp critical’ [-Wunknown-pragmas] 991 | #pragma omp critical | 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 /usr/include/gimp-2.0/libgimp/gimpui.h:22, from src/gimplensfun.cpp:32: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: 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 /usr/include/gegl-0.4/gegl.h:22, from /usr/include/gimp-2.0/libgimp/gimp.h:25, from src/gimplensfun.cpp:31: /usr/include/glib-2.0/gobject/gtype.h:729:3: note: declared here 729 | } GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~ 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:12: 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 /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:578:26: note: declared here 578 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~ src/gimplensfun.cpp: In function ‘void query()’: src/gimplensfun.cpp:193:13: warning: ISO C++ forbids converting a string constant to ‘gchar*’ {aka ‘char*’} [-Wwrite-strings] 193 | "run-mode", | ^~~~~~~~~~ src/gimplensfun.cpp:194:13: warning: ISO C++ forbids converting a string constant to ‘gchar*’ {aka ‘char*’} [-Wwrite-strings] 194 | "Run mode" | ^~~~~~~~~~ src/gimplensfun.cpp:198:13: warning: ISO C++ forbids converting a string constant to ‘gchar*’ {aka ‘char*’} [-Wwrite-strings] 198 | "image", | ^~~~~~~ src/gimplensfun.cpp:199:13: warning: ISO C++ forbids converting a string constant to ‘gchar*’ {aka ‘char*’} [-Wwrite-strings] 199 | "Input image" | ^~~~~~~~~~~~~ src/gimplensfun.cpp:203:13: warning: ISO C++ forbids converting a string constant to ‘gchar*’ {aka ‘char*’} [-Wwrite-strings] 203 | "drawable", | ^~~~~~~~~~ src/gimplensfun.cpp:204:13: warning: ISO C++ forbids converting a string constant to ‘gchar*’ {aka ‘char*’} [-Wwrite-strings] 204 | "Input drawable" | ^~~~~~~~~~~~~~~~ src/gimplensfun.cpp: In function ‘void process_image(GimpDrawable*)’: src/gimplensfun.cpp:907:25: warning: ‘void gimp_pixel_rgn_init(GimpPixelRgn*, GimpDrawable*, gint, gint, gint, gint, gint, gint)’ is deprecated: Use 'gimp_drawable_get_buffer' instead [-Wdeprecated-declarations] 907 | gimp_pixel_rgn_init (&rgn_in, | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 908 | drawable, | ~~~~~~~~~ 909 | x1, y1, | ~~~~~~~ 910 | imgwidth, imgheight, | ~~~~~~~~~~~~~~~~~~~~ 911 | FALSE, FALSE); | ~~~~~~~~~~~~~ In file included from /usr/include/gimp-2.0/libgimp/gimp.h:57: /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:48:11: note: declared here 48 | void gimp_pixel_rgn_init (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~ src/gimplensfun.cpp:912:25: warning: ‘void gimp_pixel_rgn_init(GimpPixelRgn*, GimpDrawable*, gint, gint, gint, gint, gint, gint)’ is deprecated: Use 'gimp_drawable_get_buffer' instead [-Wdeprecated-declarations] 912 | gimp_pixel_rgn_init (&rgn_out, | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ 913 | drawable, | ~~~~~~~~~ 914 | x1, y1, | ~~~~~~~ 915 | imgwidth, imgheight, | ~~~~~~~~~~~~~~~~~~~~ 916 | TRUE, TRUE); | ~~~~~~~~~~~ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:48:11: note: declared here 48 | void gimp_pixel_rgn_init (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~ src/gimplensfun.cpp:924:29: warning: ‘void gimp_pixel_rgn_get_rect(GimpPixelRgn*, guchar*, gint, gint, gint, gint)’ is deprecated: Use 'gegl_buffer_get' instead [-Wdeprecated-declarations] 924 | gimp_pixel_rgn_get_rect (&rgn_in, ImgBuffer, x1, y1, imgwidth, imgheight); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:80:11: note: declared here 80 | void gimp_pixel_rgn_get_rect (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~~~~~ src/gimplensfun.cpp:950:42: warning: ‘static lfModifier* lfModifier::Create(const lfLens*, float, int, int)’ is deprecated [-Wdeprecated-declarations] 950 | lfModifier *mod = lfModifier::Create (lenses[0], sLensfunParameters.Crop, imgwidth, imgheight); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/gimplensfun.cpp:30: /usr/include/lensfun/lensfun.h:2068:35: note: declared here 2068 | DEPRECATED static lfModifier *Create (const lfLens *lens, float crop, int width, int height); | ^~~~~~ src/gimplensfun.cpp:1011:29: warning: ‘void gimp_pixel_rgn_set_rect(GimpPixelRgn*, const guchar*, gint, gint, gint, gint)’ is deprecated: Use 'gegl_buffer_set' instead [-Wdeprecated-declarations] 1011 | gimp_pixel_rgn_set_rect (&rgn_out, ImgBufferOut, x1, y1, imgwidth, imgheight); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gimp-2.0/libgimp/gimppixelrgn.h:104:11: note: declared here 104 | void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr, | ^~~~~~~~~~~~~~~~~~~~~~~ src/gimplensfun.cpp:1013:25: warning: ‘void gimp_drawable_flush(GimpDrawable*)’ is deprecated: Use 'gegl_buffer_flush' instead [-Wdeprecated-declarations] 1013 | gimp_drawable_flush (drawable); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /usr/include/gimp-2.0/libgimp/gimp.h:41: /usr/include/gimp-2.0/libgimp/gimpdrawable.h:56:16: note: declared here 56 | void gimp_drawable_flush (GimpDrawable *drawable); | ^~~~~~~~~~~~~~~~~~~ src/gimplensfun.cpp:1019:26: warning: ‘void gimp_drawable_detach(GimpDrawable*)’ is deprecated [-Wdeprecated-declarations] 1019 | gimp_drawable_detach (drawable); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/gimp-2.0/libgimp/gimpdrawable.h:54:16: note: declared here 54 | void gimp_drawable_detach (GimpDrawable *drawable); | ^~~~~~~~~~~~~~~~~~~~ src/gimplensfun.cpp: In function ‘int read_opts_from_exif(const char*)’: src/gimplensfun.cpp:1036:19: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’ 1036 | Exiv2::Image::AutoPtr Exiv2image; | ^~~~~~~ src/gimplensfun.cpp:1052:9: error: ‘Exiv2image’ was not declared in this scope 1052 | Exiv2image = Exiv2::ImageFactory::open(string(filename)); | ^~~~~~~~~~ src/gimplensfun.cpp:1064:19: error: ‘AnyError’ in namespace ‘Exiv2’ does not name a type; did you mean ‘Error’? 1064 | catch (Exiv2::AnyError& e) { | ^~~~~~~~ | Error src/gimplensfun.cpp: In function ‘void run(const gchar*, gint, const GimpParam*, gint*, GimpParam**)’: src/gimplensfun.cpp:1225:34: warning: ‘GimpDrawable* gimp_drawable_get(gint32)’ is deprecated: Use 'gimp_drawable_get_buffer' instead [-Wdeprecated-declarations] 1225 | drawable = gimp_drawable_get (param[2].data.d_drawable); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gimp-2.0/libgimp/gimpdrawable.h:52:16: note: declared here 52 | GimpDrawable * gimp_drawable_get (gint32 drawable_ID); | ^~~~~~~~~~~~~~~~~ src/gimplensfun.cpp:1270:17: warning: ‘void lfDatabase::Destroy()’ is deprecated [-Wdeprecated-declarations] 1270 | ldb->Destroy(); | ~~~~~~~~~~~~^~ /usr/include/lensfun/lensfun.h:1385:21: note: declared here 1385 | DEPRECATED void Destroy (); | ^~~~~~~ make: *** [Makefile:51: src/gimplensfun.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.S3pSE7 (%build) RPM build warnings: RPM build errors: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.S3pSE7 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/gimp-lensfun.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/gimp-lensfun.spec