Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/cups-pdf.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-75561-52276/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/cups-pdf.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 (7 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/cups-pdf-3.0.1-1.oc9.src.rpm RPM build warnings: %patchN is deprecated (7 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 aarch64 --nodeps --nocheck /builddir/build/SPECS/cups-pdf.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-75561-52276/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps --nocheck /builddir/build/SPECS/cups-pdf.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 (7 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SM0Px3 + umask 022 + cd /builddir/build/BUILD + echo CIBLE = cups-pdf-3.0.1-1.oc9 + cd /builddir/build/BUILD CIBLE = cups-pdf-3.0.1-1.oc9 + rm -rf cups-pdf-3.0.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cups-pdf_3.0.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd cups-pdf-3.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -p /builddir/build/SOURCES/INSTALL.ocs.cups-pdf INSTALL.RPM Patch #1 (cups-pdf-conf.patch): + echo 'Patch #1 (cups-pdf-conf.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .oldconf --fuzz=0 patching file extra/cups-pdf.conf Patch #2 (cups-pdf-desktop.patch): + echo 'Patch #2 (cups-pdf-desktop.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .desktop --fuzz=0 patching file src/cups-pdf.c Patch #3 (cups-pdf-title.patch): + echo 'Patch #3 (cups-pdf-title.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .title --fuzz=0 patching file src/cups-pdf.c Patch #4 (cups-pdf-build.patch): + echo 'Patch #4 (cups-pdf-build.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .build --fuzz=0 patching file src/cups-pdf.c Patch #5 (cups-pdf-result.patch): + echo 'Patch #5 (cups-pdf-result.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .result --fuzz=0 patching file src/cups-pdf.c Hunk #1 succeeded at 880 (offset 59 lines). Hunk #2 succeeded at 1110 (offset 59 lines). Hunk #3 succeeded at 1147 (offset 59 lines). Hunk #4 succeeded at 1160 (offset 59 lines). Patch #6 (cups-pdf-setpdfwrite.patch): + echo 'Patch #6 (cups-pdf-setpdfwrite.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .setpdfwrite --fuzz=0 patching file extra/cups-pdf.conf Hunk #1 succeeded at 252 (offset 2 lines). patching file src/cups-pdf.h + echo 'Patch #7 (cups-pdf-fix-null-chars.patch):' Patch #7 (cups-pdf-fix-null-chars.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .nullchars --fuzz=0 patching file src/cups-pdf.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JUAwlD + 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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 cups-pdf-3.0.1 ~/build/BUILD/cups-pdf-3.0.1/src ~/build/BUILD/cups-pdf-3.0.1 + pushd src + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -D_GNU_SOURCE -o cups-pdf cups-pdf.c -lcups cups-pdf.c: In function 'read_config_ppd': cups-pdf.c:281:3: warning: 'ppdOpenFile' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 281 | ppd_file = ppdOpenFile(ppd_name); | ^~~~~~~~ In file included from cups-pdf.c:60: /usr/include/cups/ppd.h:389:26: note: declared here 389 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^~~~~~~~~~~ cups-pdf.c:286:3: warning: 'ppdMarkDefaults' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 286 | ppdMarkDefaults(ppd_file); | ^~~~~~~~~~~~~~~ /usr/include/cups/ppd.h:384:25: note: declared here 384 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^~~~~~~~~~~~~~~ cups-pdf.c:288:3: warning: 'ppdFirstOption' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 288 | option = ppdFirstOption(ppd_file); | ^~~~~~ /usr/include/cups/ppd.h:431:26: note: declared here 431 | extern ppd_option_t *ppdFirstOption(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^~~~~~~~~~~~~~ cups-pdf.c:291:5: warning: 'ppdNextOption' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 291 | option = ppdNextOption(ppd_file); | ^~~~~~ /usr/include/cups/ppd.h:433:26: note: declared here 433 | extern ppd_option_t *ppdNextOption(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^~~~~~~~~~~~~ cups-pdf.c:293:3: warning: 'ppdClose' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 293 | ppdClose(ppd_file); | ^~~~~~~~ /usr/include/cups/ppd.h:364:25: note: declared here 364 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^~~~~~~~ cups-pdf.c: In function 'create_dir': cups-pdf.c:110:5: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 110 | strncpy(buffer,dirname,BUFSIZE); | ^ cups-pdf.c: In function 'preparespoolfile': cups-pdf.c:855:5: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 855 | strncpy(buffer, cmdtitle, BUFSIZE); | ^ cups-pdf.c: In function 'main': cups-pdf.c:387:37: warning: '%s' directive output may be truncated writing 9 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 387 | snprintf(filename, BUFSIZE, "%s/%s%s%s", Conf_Log, "cups-pdf-", getenv("PRINTER"), "_log"); | ^~ ~~~~~~~~~~~ In file included from /usr/include/stdio.h:964, from cups-pdf.c:44: In function 'snprintf', inlined from 'init' at cups-pdf.c:387:5, inlined from 'main' at cups-pdf.c:925:7: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 15 or more bytes (assuming 4110) into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cups-pdf.c: In function 'main': cups-pdf.c:465:11: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 465 | strncpy(bufret, need, BUFSIZE); | ^ cups-pdf.c:502:34: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 502 | snprintf(bufout, BUFSIZE, "%s%s%s", bufin, getdesktopdir(passwd), cptr); | ^~ In function 'snprintf', inlined from 'preparedirname' at cups-pdf.c:502:5, inlined from 'main' at cups-pdf.c:983:18: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 1 or more bytes (assuming 8191) into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cups-pdf.c: In function 'main': cups-pdf.c:1155:36: warning: '%s' directive output between 0 and 2147483646 bytes may cause result to exceed 'INT_MAX' [-Wformat-truncation=] 1155 | snprintf(ppcall, size, "%s %s %s %s", Conf_PostProcessing, outfile, passwd->pw_name, argv[2]); | ^~ + popd + RPM_EC=0 ~/build/BUILD/cups-pdf-3.0.1 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ziOibR + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64 ++ dirname /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64 + cd cups-pdf-3.0.1 + mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/lib/cups/backend + mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/var/spool/cups-pdf/SPOOL + mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/var/spool/cups-pdf + mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/var/log/cups + mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/lib/cups/backend + mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/etc/cups + mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/cups/model/ + install -p -m644 extra/CUPS-PDF_noopt.ppd extra/CUPS-PDF_opt.ppd /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/cups/model/ + install -p -m644 extra/cups-pdf.conf /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/etc/cups/ + install -p -m700 src/cups-pdf /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/lib/cups/backend/ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 3.0.1-1.oc9 --unique-debug-suffix -3.0.1-1.oc9.aarch64 --unique-debug-src-base cups-pdf-3.0.1-1.oc9.aarch64 -S debugsourcefiles.list /builddir/build/BUILD/cups-pdf-3.0.1 extracting debug info from /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/lib/cups/backend/cups-pdf 81 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: cups-pdf-3.0.1-1.oc9.aarch64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.wwsr68 + umask 022 + cd /builddir/build/BUILD + cd cups-pdf-3.0.1 + DOCDIR=/builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/doc/cups-pdf + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/doc/cups-pdf + cp -pr ChangeLog /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/doc/cups-pdf + cp -pr README /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/doc/cups-pdf + cp -pr INSTALL.RPM /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/doc/cups-pdf + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.cJDFPZ + umask 022 + cd /builddir/build/BUILD + cd cups-pdf-3.0.1 + LICENSEDIR=/builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/licenses/cups-pdf + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/licenses/cups-pdf + cp -pr COPYING /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64/usr/share/licenses/cups-pdf + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(cups-pdf) = 3.0.1-1.oc9 cups-pdf = 3.0.1-1.oc9 cups-pdf(aarch-64) = 3.0.1-1.oc9 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh /usr/bin/pgrep Requires(postun): /bin/sh Requires: ld-linux-aarch64.so.1()(64bit) ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libcups.so.2()(64bit) rtld(GNU_HASH) Processing files: cups-pdf-debugsource-3.0.1-1.oc9.aarch64 Provides: cups-pdf-debugsource = 3.0.1-1.oc9 cups-pdf-debugsource(aarch-64) = 3.0.1-1.oc9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: cups-pdf-debuginfo-3.0.1-1.oc9.aarch64 Provides: cups-pdf-debuginfo = 3.0.1-1.oc9 cups-pdf-debuginfo(aarch-64) = 3.0.1-1.oc9 debuginfo(build-id) = 844dbb383e5f6375c5bc5b28f381bb3d73e8b4df Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: cups-pdf-debugsource(aarch-64) = 3.0.1-1.oc9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/cups-pdf-3.0.1-1.oc9.aarch64 Wrote: /builddir/build/RPMS/cups-pdf-debugsource-3.0.1-1.oc9.aarch64.rpm Wrote: /builddir/build/RPMS/cups-pdf-debuginfo-3.0.1-1.oc9.aarch64.rpm Wrote: /builddir/build/RPMS/cups-pdf-3.0.1-1.oc9.aarch64.rpm RPM build warnings: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Child return code was: 0