<86>Apr 27 03:45:57 userdel[51143]: delete user 'rooter'
<86>Apr 27 03:45:57 userdel[51143]: removed shadow group 'rooter' owned by 'rooter'
<86>Apr 27 03:45:57 groupadd[51266]: group added to /etc/group: name=rooter, GID=675
<86>Apr 27 03:45:57 groupadd[51266]: group added to /etc/gshadow: name=rooter
<86>Apr 27 03:45:57 groupadd[51266]: new group: name=rooter, GID=675
<86>Apr 27 03:45:57 useradd[51320]: new user: name=rooter, UID=675, GID=675, home=/root, shell=/bin/bash
<86>Apr 27 03:45:57 userdel[51448]: delete user 'builder'
<86>Apr 27 03:45:57 userdel[51448]: removed group 'builder' owned by 'builder'
<86>Apr 27 03:45:57 userdel[51448]: removed shadow group 'builder' owned by 'builder'
<86>Apr 27 03:45:57 groupadd[51568]: group added to /etc/group: name=builder, GID=676
<86>Apr 27 03:45:57 groupadd[51568]: group added to /etc/gshadow: name=builder
<86>Apr 27 03:45:57 groupadd[51568]: new group: name=builder, GID=676
<86>Apr 27 03:45:58 useradd[51639]: new user: name=builder, UID=676, GID=676, home=/usr/src, shell=/bin/bash
<13>Apr 27 03:46:01 rpmi: libjpeg-2:2.0.2-alt1 sisyphus+226996.100.1.1 1554902884 installed
<13>Apr 27 03:46:01 rpmi: libpng16-1.6.36-alt1 sisyphus+219478.100.1.1 1547633315 installed
<13>Apr 27 03:46:01 rpmi: libogg-1.3.3-alt1 sisyphus+221902.4000.4.1 1550598413 installed
<13>Apr 27 03:46:01 rpmi: libglvnd-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634540 installed
<13>Apr 27 03:46:01 rpmi: libexpat-2.2.4-alt1 1503305341 installed
<13>Apr 27 03:46:01 rpmi: libwebp7-1.0.2-alt1 sisyphus+219651.100.1.2 1548057724 installed
<13>Apr 27 03:46:01 rpmi: libfribidi-1.0.5-alt1 1532424343 installed
<13>Apr 27 03:46:01 rpmi: libwayland-client-1.17.0-alt1 sisyphus+225894.100.1.1 1553872803 installed
<13>Apr 27 03:46:01 rpmi: libvorbis-1.3.6-alt2 sisyphus+220072.200.2.2 1548744467 installed
<13>Apr 27 03:46:01 rpmi: libv4l-1.16.2-alt2 sisyphus+220174.100.1.1 1548771987 installed
<13>Apr 27 03:46:01 rpmi: libnettle6-3.4.1-alt1 sisyphus+226533.100.2.1 1554512181 installed
<13>Apr 27 03:46:01 rpmi: libgsm-1.0.17-alt1 1523356157 installed
<13>Apr 27 03:46:01 rpmi: libalsa-1:1.1.8-alt2 sisyphus+221894.200.4.1 1550583282 installed
<13>Apr 27 03:46:01 rpmi: xorg-proto-devel-2018.4-alt3 1527685079 installed
<13>Apr 27 03:46:01 rpmi: libwayland-server-1.17.0-alt1 sisyphus+225894.100.1.1 1553872803 installed
<13>Apr 27 03:46:01 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed
<13>Apr 27 03:46:01 rpmi: libtasn1-4.13-alt2 1521133848 installed
<13>Apr 27 03:46:01 rpmi: libhogweed4-3.4.1-alt1 sisyphus+226533.100.2.1 1554512181 installed
<13>Apr 27 03:46:01 rpmi: wayland-devel-1.17.0-alt1 sisyphus+225894.100.1.1 1553872803 installed
<13>Apr 27 03:46:01 rpmi: libwayland-client-devel-1.17.0-alt1 sisyphus+225894.100.1.1 1553872803 installed
<13>Apr 27 03:46:01 rpmi: libOpenGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634540 installed
<13>Apr 27 03:46:01 rpmi: libGLES-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634540 installed
<13>Apr 27 03:46:01 rpmi: libflac8-1.3.2-alt2 sisyphus+220898.4400.11.1 1551972983 installed
<13>Apr 27 03:46:01 rpmi: libsndfile-1.0.28-alt2 sisyphus.212728.100 1536333060 installed
<13>Apr 27 03:46:01 rpmi: libtheora-2:1.1.1-alt6 sisyphus+223372.100.2.1 1551525759 installed
<13>Apr 27 03:46:02 rpmi: libslang2-2.3.2-alt3 sisyphus+226951.200.4.1 1554841002 installed
<13>Apr 27 03:46:02 rpmi: libjasper-2.0.14-alt1 1530105213 installed
<13>Apr 27 03:46:02 rpmi: libsqlite3-3.27.2-alt1 sisyphus+225506.100.1.1 1553253511 installed
<13>Apr 27 03:46:02 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed
<13>Apr 27 03:46:02 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed
<13>Apr 27 03:46:02 rpmi: libdv-1.0.0-alt5.7 sisyphus+220898.5400.11.1 1551973252 installed
<13>Apr 27 03:46:02 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed
<13>Apr 27 03:46:02 rpmi: libidn2-2.1.1-alt1 sisyphus+221274.100.1.2 1549951280 installed
<13>Apr 27 03:46:02 rpmi: libgnutls30-3.6.7-alt1 sisyphus+225829.100.1.1 1553782557 installed
<13>Apr 27 03:46:02 rpmi: libudfread-1.0.0-alt3 1528906336 installed
<13>Apr 27 03:46:02 rpmi: libzeromq-4.2.3-alt1 1513846882 installed
<13>Apr 27 03:46:02 rpmi: libopenal1-1.19.1-alt1 sisyphus+222956.100.1.1 1551298513 installed
<13>Apr 27 03:46:02 rpmi: libjack-1:1.9.12-alt2 sisyphus+222776.100.1.1 1551043815 installed
<13>Apr 27 03:46:02 rpmi: libusb-1.0.22-alt1 1525452011 installed
<13>Apr 27 03:46:02 rpmi: libraw1394-11-2.1.2-alt1 sisyphus+225496.100.2.1 1553244591 installed
<13>Apr 27 03:46:02 rpmi: libdc1394-22-2.2.5-alt1 1529659237 installed
<13>Apr 27 03:46:02 rpmi: libcdio-2.0.0-alt1.1 1516233232 installed
<13>Apr 27 03:46:02 rpmi: libcdio-paranoia-10.2.2.0.0-alt1 sisyphus+220091.100.1.2 1548750007 installed
<13>Apr 27 03:46:02 rpmi: libsoxr-0.1.2-alt4 sisyphus+222649.100.1.1 1550964841 installed
<13>Apr 27 03:46:02 rpmi: libxvid-1.3.4-alt1 1507033988 installed
<13>Apr 27 03:46:02 rpmi: libx265-160-2.8-alt1 1529659165 installed
<13>Apr 27 03:46:02 rpmi: libx264-148-alt2 1496163823 installed
<13>Apr 27 03:46:02 rpmi: libwavpack-5.1.0-alt1 1486754494 installed
<13>Apr 27 03:46:02 rpmi: libvpx6-1.8.0-alt1 sisyphus+222320.200.6.1 1551096260 installed
<13>Apr 27 03:46:02 rpmi: libtwolame-0.3.13-alt1 1486717192 installed
<13>Apr 27 03:46:02 rpmi: libspeex-1.2-alt1 1528115225 installed
<13>Apr 27 03:46:02 rpmi: libdatrie-0.2.9-alt1_6 1511686677 installed
<13>Apr 27 03:46:02 rpmi: libthai-0.1.28-alt1_1 sisyphus+226107.100.1.1 1554123079 installed
<13>Apr 27 03:46:02 rpmi: libjbig-2.1-alt1 1401380921 installed
<13>Apr 27 03:46:02 rpmi: libtiff5-4.0.10.0.57.f9fc01c3-alt1 sisyphus+226958.100.1.1 1554850937 installed
<13>Apr 27 03:46:02 rpmi: shared-mime-info-1.12-alt1 sisyphus+219597.100.2.2 1548056998 installed
<13>Apr 27 03:46:03 rpmi: libgdk-pixbuf-locales-2.38.1-alt1.1 sisyphus+226643.100.1.1 1554470431 installed
<13>Apr 27 03:46:03 rpmi: libopus-1.2.1-alt1.1 1504605235 installed
<13>Apr 27 03:46:03 rpmi: libopenjpeg2.0-2.3.1-alt1 sisyphus+226454.100.1.1 1554284336 installed
<13>Apr 27 03:46:03 rpmi: libopencore-amrwb0-0.1.5-alt1 1529659318 installed
<13>Apr 27 03:46:03 rpmi: libopencore-amrnb0-0.1.5-alt1 1529659318 installed
<13>Apr 27 03:46:03 rpmi: liblame-3.100-alt1 1527082573 installed
<13>Apr 27 03:46:03 rpmi: libcodec2-0.8.1-alt1 1533802521 installed
<13>Apr 27 03:46:03 rpmi: libpixman-3:0.38.4-alt1 sisyphus+228006.100.1.1 1556013486 installed
<13>Apr 27 03:46:03 rpmi: libgraphite2-1.3.13-alt2 sisyphus+226799.100.1.1 1554648233 installed
<13>Apr 27 03:46:03 rpmi: libharfbuzz-2.2.0-alt2 sisyphus+226762.500.12.1 1555021878 installed
<13>Apr 27 03:46:03 rpmi: libfreetype-2.10.0-alt2 sisyphus+226881.100.2.1 1555676284 installed
<13>Apr 27 03:46:03 rpmi: fontconfig-2.13.1-alt1 sisyphus+226691.100.2.2 1554598717 installed
Updating fonts cache: <29>Apr 27 03:46:04 fontconfig: Updating fonts cache: succeeded
[ DONE ]
<13>Apr 27 03:46:04 rpmi: libass9-0.14.0-alt1 sisyphus+220287.100.1.1 1548927393 installed
<13>Apr 27 03:46:04 rpmi: libbluray-1.0.2-alt1 1529659810 installed
<13>Apr 27 03:46:04 rpmi: libSDL2-2.0.9-alt2 sisyphus+224084.100.1.2 1551995686 installed
<13>Apr 27 03:46:04 rpmi: liblz4-1:1.9.1-alt1 sisyphus+228057.100.1.1 1556059262 installed
<13>Apr 27 03:46:04 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521088 installed
<13>Apr 27 03:46:04 rpmi: libgcrypt20-1.8.4-alt1 sisyphus+225621.500.1.1 1553521566 installed
<13>Apr 27 03:46:04 rpmi: libsystemd-1:242-alt4 sisyphus+228096.200.2.3 1556157374 installed
<13>Apr 27 03:46:04 rpmi: libdbus-1.12.12-alt2 sisyphus+221234.100.1.2 1549918037 installed
<13>Apr 27 03:46:04 rpmi: libasyncns-0.8-alt2.qa1 1365949819 installed
<13>Apr 27 03:46:04 rpmi: libxshmfence-1.3-alt1 sisyphus+223149.1000.2.1 1551268594 installed
<13>Apr 27 03:46:04 rpmi: libX11-locales-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615009 installed
<13>Apr 27 03:46:04 rpmi: libXdmcp-1.1.3-alt1 sisyphus+225206.600.1.2 1552949347 installed
<13>Apr 27 03:46:04 rpmi: libXau-1.0.9-alt1 sisyphus+223149.200.2.1 1551268156 installed
<13>Apr 27 03:46:04 rpmi: libxcb-1.13.1-alt1 sisyphus+226527.100.2.2 1554593799 installed
<13>Apr 27 03:46:04 rpmi: libX11-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615009 installed
<13>Apr 27 03:46:04 rpmi: libXext-1.3.4-alt1 sisyphus+225206.700.1.2 1552949422 installed
<13>Apr 27 03:46:04 rpmi: libXrender-0.9.8-alt1 1371312110 installed
<13>Apr 27 03:46:04 rpmi: libvdpau-1:1.2-alt1 sisyphus+224833.100.1.1 1552376728 installed
<13>Apr 27 03:46:04 rpmi: libXfixes-5.0.3-alt1 sisyphus+226736.100.2.2 1554614842 installed
<13>Apr 27 03:46:05 rpmi: libpulseaudio-12.2-alt1 1535623578 installed
<13>Apr 27 03:46:05 rpmi: libXrandr-1.5.2-alt1 sisyphus+225206.1300.1.2 1552949698 installed
<13>Apr 27 03:46:05 rpmi: libSDL-1.2.14-alt7 1483707267 installed
<13>Apr 27 03:46:05 rpmi: libmjpegtools2.1-2.1.0-alt3 sisyphus+227903.100.1.1 1555879017 installed
<13>Apr 27 03:46:05 rpmi: libXft-2.3.3-alt1 sisyphus+225206.1000.3.2 1552987714 installed
<13>Apr 27 03:46:05 rpmi: libXxf86vm-1.1.4-alt2 1527672159 installed
<13>Apr 27 03:46:05 rpmi: libXv-1.0.11-alt1 1527685497 installed
<13>Apr 27 03:46:05 rpmi: libXdamage-1.1.5-alt1 sisyphus+225206.500.1.2 1552949282 installed
<13>Apr 27 03:46:05 rpmi: libzvbi-0.2.35-alt1 sisyphus+223374.100.1.1 1551507904 installed
<13>Apr 27 03:46:05 rpmi: libcaca-0.99-alt18.beta19.5 sisyphus+225269.5100.9.1 1553534217 installed
<13>Apr 27 03:46:06 rpmi: libxcb-devel-1.13.1-alt1 sisyphus+226527.100.2.2 1554593799 installed
<13>Apr 27 03:46:07 rpmi: libX11-devel-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615009 installed
<13>Apr 27 03:46:07 rpmi: libvdpau-devel-1:1.2-alt1 sisyphus+224833.100.1.1 1552376728 installed
<13>Apr 27 03:46:07 rpmi: libpciaccess-1:0.14-alt1 1528969624 installed
<13>Apr 27 03:46:07 rpmi: libdrm-1:2.4.98-alt1 sisyphus+228121.100.4.1 1556184492 installed
<13>Apr 27 03:46:07 rpmi: libGLX-mesa-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556186546 installed
<13>Apr 27 03:46:07 rpmi: libGLX-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634540 installed
<13>Apr 27 03:46:07 rpmi: libGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634540 installed
<13>Apr 27 03:46:07 rpmi: libva-2.4.0-alt1 sisyphus+221933.100.1.1 1550502839 installed
<13>Apr 27 03:46:07 rpmi: libavutil56-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:07 rpmi: libpostproc55-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:07 rpmi: libswscale5-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:07 rpmi: libswresample3-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:07 rpmi: libavresample4-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:07 rpmi: libgbm-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556186546 installed
<13>Apr 27 03:46:07 rpmi: libEGL-mesa-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556186546 installed
<13>Apr 27 03:46:07 rpmi: libEGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634540 installed
<13>Apr 27 03:46:07 rpmi: libcairo-1:1.16.0-alt1 sisyphus+226534.100.2.3 1554515520 installed
<13>Apr 27 03:46:07 rpmi: libpango-1.42.4-alt1 1534787249 installed
<13>Apr 27 03:46:07 rpmi: libglvnd-devel-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634540 installed
<13>Apr 27 03:46:07 rpmi: libEGL-devel-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556186546 installed
<13>Apr 27 03:46:07 rpmi: libGL-devel-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556186546 installed
<13>Apr 27 03:46:07 rpmi: libva-devel-2.4.0-alt1 sisyphus+221933.100.1.1 1550502839 installed
<13>Apr 27 03:46:07 rpmi: libavutil-devel-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:07 rpmi: gsettings-desktop-schemas-data-3.32.0-alt1 sisyphus+225059.300.3.2 1552843929 installed
<13>Apr 27 03:46:07 rpmi: libgio-2.60.1-alt2 sisyphus+227881.100.1.2 1555820523 installed
<13>Apr 27 03:46:07 rpmi: gsettings-desktop-schemas-3.32.0-alt1 sisyphus+225059.300.3.2 1552843929 installed
<13>Apr 27 03:46:07 rpmi: libgdk-pixbuf-2.38.1-alt1.1 sisyphus+226643.100.1.1 1554470431 installed
<13>Apr 27 03:46:08 rpmi: librsvg-1:2.44.13-alt1 sisyphus+221672.100.1.1 1550309839 installed
<13>Apr 27 03:46:08 rpmi: libavcodec58-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:09 rpmi: libavformat58-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:09 rpmi: libavfilter7-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:09 rpmi: libavdevice58-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:09 rpmi: libavcodec-devel-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:09 rpmi: libavformat-devel-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:09 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Apr 27 03:46:09 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Apr 27 03:46:09 rpmi: ca-certificates-2019.03.31-alt1 sisyphus+226302.100.1.1 1554055265 installed
<13>Apr 27 03:46:09 rpmi: ca-trust-0.1.1-alt2 1515595785 installed
<13>Apr 27 03:46:09 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed
<13>Apr 27 03:46:09 rpmi: libcrypto1.1-1.1.1b-alt2 sisyphus+227249.100.2.1 1555667802 installed
<13>Apr 27 03:46:09 rpmi: libssl1.1-1.1.1b-alt2 sisyphus+227249.100.2.1 1555667802 installed
<86>Apr 27 03:46:09 groupadd[78717]: group added to /etc/group: name=_keytab, GID=499
<86>Apr 27 03:46:09 groupadd[78717]: group added to /etc/gshadow: name=_keytab
<86>Apr 27 03:46:09 groupadd[78717]: new group: name=_keytab, GID=499
<13>Apr 27 03:46:09 rpmi: libkrb5-1.16.3-alt1 sisyphus+223678.100.1.1 1551746443 installed
<86>Apr 27 03:46:09 groupadd[79000]: group added to /etc/group: name=sasl, GID=498
<86>Apr 27 03:46:09 groupadd[79000]: group added to /etc/gshadow: name=sasl
<86>Apr 27 03:46:09 groupadd[79000]: new group: name=sasl, GID=498
<13>Apr 27 03:46:09 rpmi: libsasl2-3-2.1.27-alt2 sisyphus+228101.100.1.1 1556139861 installed
<13>Apr 27 03:46:09 rpmi: libldap-2.4.47-alt1 sisyphus+227888.100.2.1 1555846668 installed
<13>Apr 27 03:46:09 rpmi: libpq5-11.2-alt3 sisyphus+226762.600.12.1 1555022309 installed
<13>Apr 27 03:46:09 rpmi: libecpg6-11.2-alt3 sisyphus+226762.600.12.1 1555022309 installed
<13>Apr 27 03:46:10 rpmi: libmysqlclient21-8.0.15-alt1 sisyphus+223624.140.3.1 1551794830 installed
<13>Apr 27 03:46:10 rpmi: libmysqlclient21-devel-8.0.15-alt1 sisyphus+223624.140.3.1 1551794830 installed
<13>Apr 27 03:46:10 rpmi: postgresql-devel-11.2-alt3 sisyphus+226762.600.12.1 1555022309 installed
<13>Apr 27 03:46:10 rpmi: libavdevice-devel-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:10 rpmi: libavfilter-devel-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:10 rpmi: libpostproc-devel-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:10 rpmi: libswscale-devel-2:4.1.3-alt2 sisyphus+227875.100.1.1 1555759563 installed
<13>Apr 27 03:46:10 rpmi: libmjpegtools-devel-2.1.0-alt3 sisyphus+227903.100.1.1 1555879017 installed
<13>Apr 27 03:46:10 rpmi: libsqlite3-devel-3.27.2-alt1 sisyphus+225506.100.1.1 1553253511 installed
<13>Apr 27 03:46:10 rpmi: libv4l-devel-1.16.2-alt2 sisyphus+220174.100.1.1 1548771987 installed
<13>Apr 27 03:46:10 rpmi: libwebp-devel-1.0.2-alt1 sisyphus+219651.100.1.2 1548057724 installed
<13>Apr 27 03:46:10 rpmi: libjpeg-devel-2:2.0.2-alt1 sisyphus+226996.100.1.1 1554902884 installed
<13>Apr 27 03:46:10 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1550600768 installed
Building target platforms: x86_64
Building for target x86_64
Wrote: /usr/src/in/nosrpm/motion-4.1.1-alt2.nosrc.rpm
Installing motion-4.1.1-alt2.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.93457
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf motion-4.1.1
+ echo 'Source #0 (motion-4.1.1.tar):'
Source #0 (motion-4.1.1.tar):
+ /bin/tar -xf /usr/src/RPM/SOURCES/motion-4.1.1.tar
+ cd motion-4.1.1
+ /bin/chmod -c -Rf u+rwX,go-w .
+ echo 'Patch #0 (motion-4.1.1-docdir.patch):'
Patch #0 (motion-4.1.1-docdir.patch):
+ /usr/bin/patch -p1
patching file Makefile.in
+ echo 'Patch #1 (motion-4.1.1-ffmpeg4.patch):'
Patch #1 (motion-4.1.1-ffmpeg4.patch):
+ /usr/bin/patch -p1
patching file ffmpeg.c
+ echo 'Patch #2 (motion-4.1.1-configure-binpath.patch):'
Patch #2 (motion-4.1.1-configure-binpath.patch):
+ /usr/bin/patch -p1
patching file configure.ac
+ echo 'Patch #3 (motion-4.1.1-alt-mysql8-transition.patch):'
Patch #3 (motion-4.1.1-alt-mysql8-transition.patch):
+ /usr/bin/patch -p0
patching file motion.h
+ /usr/bin/subst 's|<postgresql[/]libpq-fe.h>|<pgsql/libpq-fe.h>|' motion.h
+ /usr/bin/subst 's|\(if [\\(]cnt->conf\.mysql_db && sqltype[\)]\)|//\1|' event.c
+ /usr/bin/subst 's|\(put_mysql[\(]&cnt->conf, cnt->database, filename, tm, sqltype[\)]\)|//\1|' event.c
+ /usr/bin/subst 's|\(motion\.conf\)\(\*\)|\1.\2|' Makefile.in
+ /usr/bin/subst 's|\(^.*c->quality\).*|//\1|' ffmpeg.c
+ /usr/bin/subst 's,\@PACKAGE_NAME@,\motion,' Makefile.in
+ /usr/bin/subst 's,\-@PACKAGE_VERSION@,\-4.1.1,' Makefile.in
+ rm -f version.sh
+ exit 0
Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.93457
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd motion-4.1.1
+ autoreconf -fisv
autoreconf-default: Entering directory `.'
autoreconf-default: configure.ac: not using Gettext
autoreconf-default: running: aclocal --force 
sh: ./version.sh: No such file or directory
autoreconf-default: configure.ac: tracing
sh: ./version.sh: No such file or directory
autoreconf-default: configure.ac: not using Libtool
autoreconf-default: configure.ac: not using Intltool
autoreconf-default: configure.ac: not using gtk-doc
autoreconf-default: running: /usr/bin/autoconf-2.60 --force
sh: ./version.sh: No such file or directory
autoreconf-default: running: /usr/bin/autoheader-2.60 --force
sh: ./version.sh: No such file or directory
autoreconf-default: configure.ac: not using Automake
autoreconf-default: Leaving directory `.'
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export FFLAGS
+ '[' -n '' ']'
++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2'
++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g'
+ ASFLAGS=
+ export ASFLAGS
+ export lt_cv_deplibs_check_method=pass_all
+ lt_cv_deplibs_check_method=pass_all
+ readlink -e -- ./configure
+ xargs -ri dirname -- '{}'
+ xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n'
+ sort -u
+ xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess
+ ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext --sysconfdir=/etc/motion --docdir=/usr/share/doc --with-webp --without-optimizecpu
configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-silent-rules, --without-included-gettext
checking for x86_64-alt-linux-gcc... x86_64-alt-linux-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-alt-linux-gcc accepts -g... yes
checking for x86_64-alt-linux-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... x86_64-alt-linux-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for x86_64-alt-linux-gcc... (cached) x86_64-alt-linux-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-alt-linux-gcc accepts -g... (cached) yes
checking for x86_64-alt-linux-gcc option to accept ISO C89... (cached) none needed
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for Darwin/BSD... no
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking for pthread_setname_np... yes
checking for pthread_getname_np... yes
checking for XSI strerror_r... no
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking jpg libraries... yes
checking for pkg-config... yes
checking for libwebp... found
checking for libavformat... yes 58.20.100
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking for db package config... mysqlclient found
checking for mysql_init in -lmysqlclient... yes
checking for pgsql package config... found
checking for PQconnectStart in -lpq... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/types.h... (cached) yes
configure: creating ./config.status
config.status: creating camera1-dist.conf
config.status: creating camera2-dist.conf
config.status: creating camera3-dist.conf
config.status: creating camera4-dist.conf
config.status: creating motion-dist.conf
config.status: creating motion.init-FreeBSD.sh
config.status: creating motion.init-Debian
config.status: creating motion.service
config.status: creating motion.spec
config.status: creating Makefile
config.status: creating config.h
configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-silent-rules, --without-included-gettext

   **************************
      Configure status       
       
   **************************

OS             :     Linux
pthread support:     Yes
jpeg support:        Yes
webp support:        Yes
V4L2 support:        Yes
BKTR support:        No
MMAL support:        No
 ... libraspberrypi-dev package not installed
FFmpeg support:      Yes
 ... FFMPEG_CFLAGS: 
 ... FFMPEG_LIBS: -lavutil -lavformat -lavcodec -lswscale -lavdevice
SQLite3 support:     Yes
MYSQL support:       Yes
PostgreSQL support:  Yes

CFLAGS:  -pipe -frecord-gcc-switches -Wall -g -O2 -D_THREAD_SAFE -I/usr/include/mysql -I/usr/include/pgsql 
LIBS: -lm  -pthread -ljpeg -lwebp -lwebpmux -lsqlite3 -lmysqlclient -lpq
LDFLAGS:  

Install prefix:       /usr

+ make
make: Entering directory '/usr/src/RPM/BUILD/motion-4.1.1'
Welcome to the setup procedure for Motion, the motion detection daemon! If you get
error messages during this procedure, please report them to the mailing list. The
Motion Guide contains all information you should need to get Motion up and running.

Version: 
Platform: Linux (if this is incorrect, please read README.FreeBSD)

Generating dependencies, please wait...

Compiling Motion object files...
--------------------------------------------------------------------------------
	Compiling motion.c into motion.o...
	Compiling logger.c into logger.o...
	Compiling conf.c into conf.o...
conf.c: In function 'conf_load':
conf.c:2232:41: warning: '/motion.conf' directive output may be truncated writing 12 bytes into a region of size between 1 and 4096 [-Wformat-truncation=]
         snprintf(filename, PATH_MAX, "%s/motion.conf", path);
                                         ^~~~~~~~~~~~
In file included from /usr/include/stdio.h:862,
                 from /usr/include/pgsql/libpq-fe.h:23,
                 from motion.h:33,
                 from conf.c:30:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 13 and 4108 bytes into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Compiling draw.c into draw.o...
	Compiling jpegutils.c into jpegutils.o...
	Compiling video_loopback.c into video_loopback.o...
	Compiling video_v4l2.c into video_v4l2.o...
	Compiling video_common.c into video_common.o...
video_common.c: In function 'vid_greytoyuv420p':
video_common.c:484:45: warning: integer overflow in expression '-4784 * (int)*r - 9437 * (int)*r + 14221 * (int)*r' of type 'int' results in '0' [-Woverflow]
             *u += ((-4784 ** r - 9437 **  r + 14221 ** r) >> 17) + 32;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
video_common.c:489:45: warning: integer overflow in expression '-4784 * (int)*r - 9437 * (int)*r + 14221 * (int)*r' of type 'int' results in '0' [-Woverflow]
             *u += ((-4784 ** r - 9437 **  r + 14221 ** r) >> 17) + 32;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
	Compiling video_bktr.c into video_bktr.o...
	Compiling netcam.c into netcam.o...
	Compiling netcam_http.c into netcam_http.o...
	Compiling netcam_ftp.c into netcam_ftp.o...
	Compiling netcam_jpeg.c into netcam_jpeg.o...
	Compiling netcam_wget.c into netcam_wget.o...
	Compiling track.c into track.o...
	Compiling alg.c into alg.o...
	Compiling event.c into event.o...
event.c: In function 'event_ffmpeg_newfile':
event.c:738:60: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4083 and 4090 [-Wformat-truncation=]
         snprintf(cnt->motionfilename, PATH_MAX - 4, "%s/%s_%sm", cnt->conf.filepath, codec, stamp);
                                                            ^~                               ~~~~~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 4106) into a destination of size 4092
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:739:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 4083 and 4090 [-Wformat-truncation=]
         snprintf(cnt->newfilename, PATH_MAX - 4, "%s/%s_%s", cnt->conf.filepath, codec, stamp);
                                                         ^~                              ~~~~~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 3 or more bytes (assuming 4105) into a destination of size 4092
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:741:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=]
         snprintf(cnt->motionfilename, PATH_MAX - 4, "%s/%sm", cnt->conf.filepath, stamp);
                                                         ^~                        ~~~~~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 3 or more bytes (assuming 4098) into a destination of size 4092
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:742:54: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=]
         snprintf(cnt->newfilename, PATH_MAX - 4, "%s/%s", cnt->conf.filepath, stamp);
                                                      ^~                       ~~~~~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4092
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c: In function 'event_ffmpeg_timelapse':
event.c:844:60: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=]
         snprintf(cnt->timelapsefilename, PATH_MAX - 4, "%s/%s", cnt->conf.filepath, tmp);
                                                            ^~                       ~~~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4092
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c: In function 'event_image_snapshot':
event.c:491:42: warning: '%s' directive output may be truncated writing between 3 and 4 bytes into a region of size between 0 and 4095 [-Wformat-truncation=]
         snprintf(filename, PATH_MAX, "%s.%s", filepath, imageext(cnt));
                                          ^~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 5 and 4101 bytes into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:492:48: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=]
         snprintf(fullfilename, PATH_MAX, "%s/%s", cnt->conf.filepath, filename);
                                                ^
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:473:42: warning: '%s' directive output may be truncated writing between 3 and 4 bytes into a region of size between 0 and 4095 [-Wformat-truncation=]
         snprintf(filename, PATH_MAX, "%s.%s", filepath, imageext(cnt));
                                          ^~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 5 and 4101 bytes into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:474:48: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=]
         snprintf(fullfilename, PATH_MAX, "%s/%s", cnt->conf.filepath, filename);
                                                ^
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c: In function 'event_imagem_detect.part.7':
event.c:439:43: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=]
         snprintf(filenamem, PATH_MAX, "%sm", filename);
                                           ^
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 2 and 4097 bytes into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:440:49: warning: '.' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=]
         snprintf(fullfilenamem, PATH_MAX, "%s/%s.%s", cnt->conf.filepath, filenamem, imageext(cnt));
                                                 ^
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4102) into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c: In function 'event_image_detect.part.8':
event.c:402:48: warning: '.' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=]
         snprintf(fullfilename, PATH_MAX, "%s/%s.%s", cnt->conf.filepath, filename, imageext(cnt));
                                                ^
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4102) into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c: In function 'event_create_extpipe.part.10':
event.c:567:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=]
         snprintf(cnt->extpipefilename, PATH_MAX - 4, "%s/%s", cnt->conf.filepath, stamp);
                                                          ^~                       ~~~~~
In file included from /usr/include/stdio.h:862,
                 from ffmpeg.h:4,
                 from event.c:11:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4092
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Compiling picture.c into picture.o...
picture.c: In function 'put_jpeg_exif':
picture.c:243:42: warning: '%02d' directive output may be truncated writing between 2 and 11 bytes into a region of size between 9 and 16 [-Wformat-truncation=]
         snprintf(datetime_buf, 21, "%04d:%02d:%02d %02d:%02d:%02d",
                                          ^~~~
picture.c:243:36: note: directive argument in the range [-2147483647, 2147483647]
         snprintf(datetime_buf, 21, "%04d:%02d:%02d %02d:%02d:%02d",
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862,
                 from /usr/include/pgsql/libpq-fe.h:23,
                 from motion.h:33,
                 from picture.h:13,
                 from picture.c:12:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 20 and 72 bytes into a destination of size 21
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
picture.c: In function 'preview_save':
picture.c:1245:51: warning: '.' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=]
             snprintf(previewname, PATH_MAX, "%s/%s.%s", cnt->conf.filepath, filename, imageext(cnt));
                                                   ^
In file included from /usr/include/stdio.h:862,
                 from /usr/include/pgsql/libpq-fe.h:23,
                 from motion.h:33,
                 from picture.h:13,
                 from picture.c:12:
/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 3 or more bytes (assuming 4098) into a destination of size 4096
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Compiling rotate.c into rotate.o...
	Compiling webhttpd.c into webhttpd.o...
	Compiling stream.c into stream.o...
	Compiling md5.c into md5.o...
	Compiling netcam_rtsp.c into netcam_rtsp.o...
	Compiling ffmpeg.c into ffmpeg.o...
ffmpeg.c: In function 'ffmpeg_timelapse_append':
ffmpeg.c:187:5: warning: 'filename' is deprecated [-Wdeprecated-declarations]
     file = fopen(ffmpeg->oc->filename, "a");
     ^~~~
In file included from netcam_rtsp.h:21,
                 from motion.h:71,
                 from ffmpeg.c:25:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
     char filename[1024];
          ^~~~~~~~
ffmpeg.c: In function 'ffmpeg_set_outputfile':
ffmpeg.c:754:5: warning: 'filename' is deprecated [-Wdeprecated-declarations]
     snprintf(ffmpeg->oc->filename, sizeof(ffmpeg->oc->filename), "%s", ffmpeg->filename);
     ^~~~~~~~
In file included from netcam_rtsp.h:21,
                 from motion.h:71,
                 from ffmpeg.c:25:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
     char filename[1024];
          ^~~~~~~~
ffmpeg.c:754:5: warning: 'filename' is deprecated [-Wdeprecated-declarations]
     snprintf(ffmpeg->oc->filename, sizeof(ffmpeg->oc->filename), "%s", ffmpeg->filename);
     ^~~~~~~~
In file included from netcam_rtsp.h:21,
                 from motion.h:71,
                 from ffmpeg.c:25:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
     char filename[1024];
          ^~~~~~~~
ffmpeg.c: In function 'ffmpeg_global_init':
ffmpeg.c:969:5: warning: 'av_register_all' is deprecated [-Wdeprecated-declarations]
     av_register_all();
     ^~~~~~~~~~~~~~~
In file included from netcam_rtsp.h:21,
                 from motion.h:71,
                 from ffmpeg.c:25:
/usr/include/libavformat/avformat.h:2043:6: note: declared here
 void av_register_all(void);
      ^~~~~~~~~~~~~~~
ffmpeg.c:970:5: warning: 'avcodec_register_all' is deprecated [-Wdeprecated-declarations]
     avcodec_register_all();
     ^~~~~~~~~~~~~~~~~~~~
In file included from netcam_rtsp.h:20,
                 from motion.h:71,
                 from ffmpeg.c:25:
/usr/include/libavcodec/avcodec.h:4102:6: note: declared here
 void avcodec_register_all(void);
      ^~~~~~~~~~~~~~~~~~~~
ffmpeg.c:975:5: warning: 'av_lockmgr_register' is deprecated [-Wdeprecated-declarations]
     ret = av_lockmgr_register(ffmpeg_lockmgr_cb);
     ^~~
In file included from netcam_rtsp.h:20,
                 from motion.h:71,
                 from ffmpeg.c:25:
/usr/include/libavcodec/avcodec.h:6103:5: note: declared here
 int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op));
     ^~~~~~~~~~~~~~~~~~~
ffmpeg.c: In function 'ffmpeg_global_deinit':
ffmpeg.c:993:5: warning: 'av_lockmgr_register' is deprecated [-Wdeprecated-declarations]
     if (av_lockmgr_register(NULL) < 0)
     ^~
In file included from netcam_rtsp.h:20,
                 from motion.h:71,
                 from ffmpeg.c:25:
/usr/include/libavcodec/avcodec.h:6103:5: note: declared here
 int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op));
     ^~~~~~~~~~~~~~~~~~~
--------------------------------------------------------------------------------
Motion object files compiled.

Linking Motion...
--------------------------------------------------------------------------------
x86_64-alt-linux-gcc  -o motion motion.o logger.o conf.o draw.o jpegutils.o video_loopback.o video_v4l2.o video_common.o video_bktr.o netcam.o netcam_http.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o event.o picture.o rotate.o webhttpd.o stream.o md5.o netcam_rtsp.o ffmpeg.o  -lm  -pthread -ljpeg -lwebp -lwebpmux -lsqlite3 -lmysqlclient -lpq   -lavutil -lavformat -lavcodec -lswscale -lavdevice
--------------------------------------------------------------------------------
Motion has been linked.

Build complete, run "make install" to install Motion!

make: Leaving directory '/usr/src/RPM/BUILD/motion-4.1.1'
+ make -j8
make: Entering directory '/usr/src/RPM/BUILD/motion-4.1.1'
Compiling Motion object files...
--------------------------------------------------------------------------------
make: Leaving directory '/usr/src/RPM/BUILD/motion-4.1.1'
make: Entering directory '/usr/src/RPM/BUILD/motion-4.1.1'
--------------------------------------------------------------------------------
Motion object files compiled.

make: Leaving directory '/usr/src/RPM/BUILD/motion-4.1.1'
make: Entering directory '/usr/src/RPM/BUILD/motion-4.1.1'
Welcome to the setup procedure for Motion, the motion detection daemon! If you get
error messages during this procedure, please report them to the mailing list. The
Motion Guide contains all information you should need to get Motion up and running.

Version: 
Platform: Linux (if this is incorrect, please read README.FreeBSD)

make: Leaving directory '/usr/src/RPM/BUILD/motion-4.1.1'
make: Entering directory '/usr/src/RPM/BUILD/motion-4.1.1'
Linking Motion...
--------------------------------------------------------------------------------
x86_64-alt-linux-gcc  -o motion motion.o logger.o conf.o draw.o jpegutils.o video_loopback.o video_v4l2.o video_common.o video_bktr.o netcam.o netcam_http.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o event.o picture.o rotate.o webhttpd.o stream.o md5.o netcam_rtsp.o ffmpeg.o  -lm  -pthread -ljpeg -lwebp -lwebpmux -lsqlite3 -lmysqlclient -lpq   -lavutil -lavformat -lavcodec -lswscale -lavdevice
--------------------------------------------------------------------------------
Motion has been linked.

make: Leaving directory '/usr/src/RPM/BUILD/motion-4.1.1'
make: Entering directory '/usr/src/RPM/BUILD/motion-4.1.1'
Build complete, run "make install" to install Motion!

make: Leaving directory '/usr/src/RPM/BUILD/motion-4.1.1'
+ exit 0
Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.44739
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ /bin/chmod -Rf u+rwX -- /usr/src/tmp/motion-buildroot
+ :
+ /bin/rm -rf -- /usr/src/tmp/motion-buildroot
+ cd motion-4.1.1
+ /usr/bin/make 'INSTALL=/bin/install -p' prefix=/usr/src/tmp/motion-buildroot/usr exec_prefix=/usr/src/tmp/motion-buildroot/usr bindir=/usr/src/tmp/motion-buildroot/usr/bin sbindir=/usr/src/tmp/motion-buildroot/usr/sbin sysconfdir=/usr/src/tmp/motion-buildroot/etc datadir=/usr/src/tmp/motion-buildroot/usr/share includedir=/usr/src/tmp/motion-buildroot/usr/include libdir=/usr/src/tmp/motion-buildroot/usr/lib64 libexecdir=/usr/src/tmp/motion-buildroot/usr/lib localstatedir=/usr/src/tmp/motion-buildroot/var/lib sharedstatedir=/usr/src/tmp/motion-buildroot/var/lib mandir=/usr/src/tmp/motion-buildroot/usr/share/man infodir=/usr/src/tmp/motion-buildroot/usr/share/info install
make: Entering directory '/usr/src/RPM/BUILD/motion-4.1.1'
Installing files...
--------------------------------------------------------------------------------
mkdir -p /usr/src/tmp/motion-buildroot/usr/bin
mkdir -p /usr/src/tmp/motion-buildroot/usr/share/man/man1
mkdir -p /usr/src/tmp/motion-buildroot/etc/motion
mkdir -p /usr/src/tmp/motion-buildroot/usr/share/doc/motion-4.1.1
mkdir -p /usr/src/tmp/motion-buildroot/usr/share/doc/motion-4.1.1/examples
/bin/install -p -m 644 ./motion.1 /usr/src/tmp/motion-buildroot/usr/share/man/man1
/bin/install -p -m 644 ./CHANGELOG ./COPYING ./CREDITS ./README.md ./motion_guide.html ./mask1.png ./normal.jpg ./outputmotion1.jpg ./outputnormal1.jpg /usr/src/tmp/motion-buildroot/usr/share/doc/motion-4.1.1
/bin/install -p -m 644 *.conf motion.service /usr/src/tmp/motion-buildroot/usr/share/doc/motion-4.1.1/examples
/bin/install -p motion.init-Debian motion.init-FreeBSD.sh /usr/src/tmp/motion-buildroot/usr/share/doc/motion-4.1.1/examples
/bin/install -p -m 644 motion-dist.conf /usr/src/tmp/motion-buildroot/etc/motion
/bin/install -p -m 644 camera1-dist.conf /usr/src/tmp/motion-buildroot/etc/motion
/bin/install -p -m 644 camera2-dist.conf /usr/src/tmp/motion-buildroot/etc/motion
/bin/install -p -m 644 camera3-dist.conf /usr/src/tmp/motion-buildroot/etc/motion
/bin/install -p -m 644 camera4-dist.conf /usr/src/tmp/motion-buildroot/etc/motion
for prog in motion; \
do \
(/bin/install -p $prog /usr/src/tmp/motion-buildroot/usr/bin ); \
done
--------------------------------------------------------------------------------
Install complete! The default configuration file, motion-dist.conf, has been
installed to /usr/src/tmp/motion-buildroot/etc/motion. You need to rename/copy it to motion.conf
for Motion to find it. More configuration examples as well as init scripts
can be found in /usr/src/tmp/motion-buildroot/usr/share/doc/motion-4.1.1/examples.

make: Leaving directory '/usr/src/RPM/BUILD/motion-4.1.1'
+ install -d -m 755 /usr/src/tmp/motion-buildroot/etc/motion
+ rename -- -dist.conf .conf /usr/src/tmp/motion-buildroot/etc/motion/camera1-dist.conf /usr/src/tmp/motion-buildroot/etc/motion/camera2-dist.conf /usr/src/tmp/motion-buildroot/etc/motion/camera3-dist.conf /usr/src/tmp/motion-buildroot/etc/motion/camera4-dist.conf /usr/src/tmp/motion-buildroot/etc/motion/motion-dist.conf
+ install -pDm0644 motion.service /usr/src/tmp/motion-buildroot//lib/systemd/system/motion.service
+ /usr/lib/rpm/brp-alt
Cleaning files in /usr/src/tmp/motion-buildroot (auto)
Verifying and fixing files in /usr/src/tmp/motion-buildroot (binconfig,pkgconfig,libtool,desktop)
Checking contents of files in /usr/src/tmp/motion-buildroot/ (default)
Compressing files in /usr/src/tmp/motion-buildroot (auto)
Adjusting library links in /usr/src/tmp/motion-buildroot
./lib:
Verifying ELF objects in /usr/src/tmp/motion-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal)
Hardlinking identical .pyc and .pyo files
Processing files: motion-4.1.1-alt2
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.kk7uNz
find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.zz3deO
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks)
Requires: /lib64/ld-linux-x86-64.so.2, libavcodec.so.58()(64bit) >= set:lgD78CQv41AmUfBOXaQzIvSk8T10IPwEZ5kf2ihPf4SssG, libavcodec.so.58(LIBAVCODEC_58)(64bit), libavdevice.so.58()(64bit) >= set:ihqi3, libavdevice.so.58(LIBAVDEVICE_58)(64bit), libavformat.so.58()(64bit) >= set:lg0T82c24vJPci5l7n3xiK3n8wP69AZAo9Z8CIU0mDZLQD8x3, libavformat.so.58(LIBAVFORMAT_58)(64bit), libavutil.so.56()(64bit) >= set:njfHiL1uTTLJhniKHO3UhfFLwZ7AKbFOHaiZdl, libavutil.so.56(LIBAVUTIL_56)(64bit), libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.15)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libjpeg.so.62()(64bit) >= set:jevZlZyd1MrHuky7qUPaEoiYuW5OOBgukJ2mZ5DHALAcP6sv1, libmysqlclient.so.21()(64bit) >= set:kgMz2DJigvlMd0v53T5XgB2RAF0, libmysqlclient.so.21(libmysqlclient_21.0)(64bit), libpq.so.5()(64bit) >= set:lhB7VcZbTHNPxYugZw1I3FvR3, libpthread.so.0(GLIBC_2.12)(64bit), libpthread.so.0(GLIBC_2.2.5)(64bit), libpthread.so.0(GLIBC_2.3.2)(64bit), libsqlite3.so.0()(64bit) >= set:okf8Tu64GElY6txYNaj6sPVwSkT1, libswscale.so.5()(64bit) >= set:jhBLwIhS2i, libswscale.so.5(LIBSWSCALE_5)(64bit), libwebp.so.7()(64bit) >= set:kgqniXZlQyiZebB7LhOVQse, rtld(GNU_HASH)
Requires(rpmlib): rpmlib(SetVersions)
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Gi5CL5
Creating motion-debuginfo package
Processing files: motion-debuginfo-4.1.1-alt2
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.NPCUxq
find-provides: running scripts (debuginfo)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.0H5BsO
find-requires: running scripts (debuginfo)
Requires: motion = 4.1.1-alt2, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libavcodec.so.58), debug64(libavdevice.so.58), debug64(libavformat.so.58), debug64(libavutil.so.56), debug64(libc.so.6), debug64(libjpeg.so.62), debug64(libmysqlclient.so.21), debug64(libpq.so.5), debug64(libpthread.so.0), debug64(libsqlite3.so.0), debug64(libswscale.so.5), debug64(libwebp.so.7)
Adding to motion-debuginfo a strict dependency on motion
Wrote: /usr/src/RPM/RPMS/x86_64/motion-4.1.1-alt2.x86_64.rpm
Wrote: /usr/src/RPM/RPMS/x86_64/motion-debuginfo-4.1.1-alt2.x86_64.rpm
13.01user 2.14system 0:22.90elapsed 66%CPU (0avgtext+0avgdata 59988maxresident)k
0inputs+0outputs (0major+953704minor)pagefaults 0swaps
25.27user 5.51system 0:46.46elapsed 66%CPU (0avgtext+0avgdata 113552maxresident)k
232inputs+0outputs (0major+1365373minor)pagefaults 0swaps