D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
Installing /home/pterjan/rpmbuild/SRPMS/libptytty-2.0-2.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.AuUeMw
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ test -d /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.IaUsSm
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/lib/rpm/redhat/gpgverify --keyring=/home/pterjan/rpmbuild/SOURCES/gpgkey-84874CAB6D1A397A.gpg --signature=/home/pterjan/rpmbuild/SOURCES/signing-key.pub.gpg.sig --data=/home/pterjan/rpmbuild/SOURCES/signing-key.pub
gpgv: Signature made Wed Nov 16 16:34:45 2016 UTC
gpgv:                using RSA key 84874CAB6D1A397A
gpgv: Good signature from "Marc Alexander Lehmann <schmorp@schmorp.de>"
gpgv:                 aka "Marc Lehmann (nethype GmbH) <marc@nethype.de>"
gpgv:                 aka "Marc Alexander Lehmann <marc@plan9.de>"
gpgv:                 aka "Marc Alexander Lehmann <pcg@goof.com>"
gpgv:                 aka "Marc Lehmann <pcg@goof.com>"
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ rm -rf libptytty-2.0
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/libptytty-2.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libptytty-2.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/git init -q
+ /usr/bin/git config user.name rpm-build
+ /usr/bin/git config user.email '<rpm-build>'
+ /usr/bin/git config gc.auto 0
+ /usr/bin/git add --force .
+ GIT_COMMITTER_DATE=@1734760909
+ GIT_AUTHOR_DATE=@1734760909
+ /usr/bin/git commit -q --allow-empty -a --author 'rpm-build <rpm-build>' -m 'libptytty-2.0 base'
+ /usr/bin/git checkout --track -b rpm-build
Switched to a new branch 'rpm-build'
branch 'rpm-build' set up to track 'master'.
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.i3a1yb
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ cd libptytty-2.0
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ /usr/bin/cmake -Wno-dev -S . -B build -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed  -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -G Ninja
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking for working libsupc++ - yes
-- Looking for include file pty.h
-- Looking for include file pty.h - found
-- Looking for include file util.h
-- Looking for include file util.h - not found
-- Looking for include file libutil.h
-- Looking for include file libutil.h - not found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - found
-- Looking for include file stropts.h
-- Looking for include file stropts.h - not found
-- Looking for revoke
-- Looking for revoke - found
-- Looking for _getpty
-- Looking for _getpty - not found
-- Looking for getpt
-- Looking for getpt - found
-- Looking for posix_openpt
-- Looking for posix_openpt - found
-- Looking for isastream
-- Looking for isastream - not found
-- Looking for setuid
-- Looking for setuid - found
-- Looking for setreuid
-- Looking for setreuid - found
-- Looking for setresuid
-- Looking for setresuid - found
-- Performing Test UNIX98_PTY
-- Performing Test UNIX98_PTY - Failed
-- Looking for openpty
-- Looking for openpty - found
-- Looking for include files sys/types.h, utmp.h
-- Looking for include files sys/types.h, utmp.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of struct utmp
-- Check size of struct utmp - done
-- Performing Test HAVE_UTMP_HOST
-- Performing Test HAVE_UTMP_HOST - Success
-- Performing Test HAVE_UTMP_PID
-- Performing Test HAVE_UTMP_PID - Success
-- Looking for updwtmp
-- Looking for updwtmp - found
-- Looking for include files sys/types.h, lastlog.h
-- Looking for include files sys/types.h, lastlog.h - found
-- Check size of struct lastlog
-- Check size of struct lastlog - done
-- Checking for a fallback location of utmp - not found
-- Checking for a fallback location of wtmp - not found
-- Checking for a fallback location of lastlog - not found
-- Looking for include file utmpx.h
-- Looking for include file utmpx.h - found
-- Check size of struct utmpx
-- Check size of struct utmpx - done
-- Performing Test HAVE_UTMPX_HOST
-- Performing Test HAVE_UTMPX_HOST - Success
-- Looking for updwtmpx
-- Looking for updwtmpx - found
-- Looking for updlastlogx
-- Looking for updlastlogx - not found
-- Check size of struct lastlogx
-- Check size of struct lastlogx - failed
-- Checking for a fallback location of wtmpx - not found
-- Checking for a fallback location of lastlogx - not found
-- Performing Test HAVE_UNIX_FDPASS
-- Performing Test HAVE_UNIX_FDPASS - Success
-- Performing Test TTY_GID_SUPPORT
-- Performing Test TTY_GID_SUPPORT - Failed
-- Configuring done (12.8s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_STATIC_LIBS
    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_C_FLAGS_RELEASE
    CMAKE_INSTALL_DO_STRIP
    CMAKE_VERBOSE_MAKEFILE
    INCLUDE_INSTALL_DIR
    LIB_INSTALL_DIR
    LIB_SUFFIX
    SHARE_INSTALL_PREFIX
    SYSCONF_INSTALL_DIR


-- Build files have been written to: /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build
+ /usr/bin/cmake --build build -j16 --verbose
Change Dir: '/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build'

Run Build Command(s): /usr/bin/ninja -v -j 16
[1/9] /usr/bin/g++ -Dptytty_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/c-api.C.o -MF CMakeFiles/ptytty.dir/src/c-api.C.o.d -o CMakeFiles/ptytty.dir/src/c-api.C.o -c /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/c-api.C
[2/9] /usr/bin/g++ -Dptytty_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/fdpass.C.o -MF CMakeFiles/ptytty.dir/src/fdpass.C.o.d -o CMakeFiles/ptytty.dir/src/fdpass.C.o -c /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/fdpass.C
[3/9] /usr/bin/gcc  -I/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG -MD -MT CMakeFiles/c-sample.dir/eg/c-sample.c.o -MF CMakeFiles/c-sample.dir/eg/c-sample.c.o.d -o CMakeFiles/c-sample.dir/eg/c-sample.c.o -c /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/eg/c-sample.c
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/eg/c-sample.c: In function 'main':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/eg/c-sample.c:40:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
   40 |       write (pty_fd, s, sizeof (s) - 1);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/eg/c-sample.c:51:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
   51 |           write (STDOUT_FILENO, buf, len);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/9] /usr/bin/g++ -Dptytty_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/logging.C.o -MF CMakeFiles/ptytty.dir/src/logging.C.o.d -o CMakeFiles/ptytty.dir/src/logging.C.o -c /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/logging.C
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/logging.C: In function 'void write_record(const char*, off_t, const void*, size_t)':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/logging.C:203:14: warning: ignoring return value of 'ssize_t pwrite(int, const void*, size_t, __off_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  203 |       pwrite (fd, record, size, pos * size);
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5/9] /usr/bin/g++ -Dptytty_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/ptytty.C.o -MF CMakeFiles/ptytty.dir/src/ptytty.C.o.d -o CMakeFiles/ptytty.dir/src/ptytty.C.o -c /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/ptytty.C
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/ptytty.C: In member function 'void ptytty_unix::put()':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/ptytty.C:312:13: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  312 |       chown (name, 0, ttyconf.gid);
      |       ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
[6/9] /usr/bin/g++ -Dptytty_EXPORTS -I/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/proxy.C.o -MF CMakeFiles/ptytty.dir/src/proxy.C.o.d -o CMakeFiles/ptytty.dir/src/proxy.C.o -c /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C: In member function 'virtual bool ptytty_proxy::get()':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   77 | # define NEED_TOKEN do { char ch; read  (lock_fd, &ch     , 1); } while (0)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:87:3: note: in expansion of macro 'NEED_TOKEN'
   87 |   NEED_TOKEN;
      |   ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:93:9: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   93 |   write (sock_fd, &cmd, sizeof (cmd));
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   78 | # define GIVE_TOKEN               write (lock_fd, &lock_fd, 1)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:100:7: note: in expansion of macro 'GIVE_TOKEN'
  100 |       GIVE_TOKEN;
      |       ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   78 | # define GIVE_TOKEN               write (lock_fd, &lock_fd, 1)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:108:3: note: in expansion of macro 'GIVE_TOKEN'
  108 |   GIVE_TOKEN;
      |   ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C: In member function 'virtual void ptytty_proxy::login(int, bool, const char*)':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   77 | # define NEED_TOKEN do { char ch; read  (lock_fd, &ch     , 1); } while (0)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:115:3: note: in expansion of macro 'NEED_TOKEN'
  115 |   NEED_TOKEN;
      |   ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:125:9: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  125 |   write (sock_fd, &cmd, sizeof (cmd));
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   78 | # define GIVE_TOKEN               write (lock_fd, &lock_fd, 1)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:127:3: note: in expansion of macro 'GIVE_TOKEN'
  127 |   GIVE_TOKEN;
      |   ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C: In destructor 'ptytty_proxy::~ptytty_proxy()':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   77 | # define NEED_TOKEN do { char ch; read  (lock_fd, &ch     , 1); } while (0)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:139:7: note: in expansion of macro 'NEED_TOKEN'
  139 |       NEED_TOKEN;
      |       ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:146:13: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  146 |       write (sock_fd, &cmd, sizeof (cmd));
      |       ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   78 | # define GIVE_TOKEN               write (lock_fd, &lock_fd, 1)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:148:7: note: in expansion of macro 'GIVE_TOKEN'
  148 |       GIVE_TOKEN;
      |       ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C: In static member function 'static void ptytty::use_helper()':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:261:13: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  261 |       chdir ("/");
      |       ~~~~~~^~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C: In function 'void serve()':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   78 | # define GIVE_TOKEN               write (lock_fd, &lock_fd, 1)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:160:7: note: in expansion of macro 'GIVE_TOKEN'
  160 |       GIVE_TOKEN;
      |       ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:172:21: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  172 |               write (sock_fd, &cmd.id, sizeof (cmd.id));
      |               ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:184:21: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  184 |               write (sock_fd, &cmd.id, sizeof (cmd.id));
      |               ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
   77 | # define NEED_TOKEN do { char ch; read  (lock_fd, &ch     , 1); } while (0)
      |                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:210:7: note: in expansion of macro 'NEED_TOKEN'
  210 |       NEED_TOKEN;
      |       ^~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C: In static member function 'static void ptytty::drop_privileges()':
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:337:13: warning: ignoring return value of 'int setresgid(__gid_t, __gid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  337 |   setresgid (gid, gid, gid);
      |   ~~~~~~~~~~^~~~~~~~~~~~~~~
/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/src/proxy.C:338:13: warning: ignoring return value of 'int setresuid(__uid_t, __uid_t, __uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  338 |   setresuid (uid, uid, uid);
      |   ~~~~~~~~~~^~~~~~~~~~~~~~~
[7/9] : && /usr/bin/gcc -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld   -Wl,--dependency-file=CMakeFiles/ptytty.dir/link.d -shared -Wl,-soname,libptytty.so.0 -o libptytty.so.0 CMakeFiles/ptytty.dir/src/c-api.C.o CMakeFiles/ptytty.dir/src/fdpass.C.o CMakeFiles/ptytty.dir/src/logging.C.o CMakeFiles/ptytty.dir/src/proxy.C.o CMakeFiles/ptytty.dir/src/ptytty.C.o  -lsupc++ && :
[8/9] /usr/bin/cmake -E cmake_symlink_library libptytty.so.0 libptytty.so.0 libptytty.so && :
[9/9] : && /usr/bin/gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DNDEBUG -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld     -Wl,--dependency-file=CMakeFiles/c-sample.dir/link.d CMakeFiles/c-sample.dir/eg/c-sample.c.o -o c-sample  -Wl,-rpath,/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/build  libptytty.so.0 && :

+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.XpJIo3
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ '[' 1 -eq 1 ']'
+ '[' /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT '!=' / ']'
+ rm -rf /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT
++ dirname /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT
+ mkdir -p /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ mkdir /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT
+ cd libptytty-2.0
+ '[' 1 -eq 1 ']'
+ DESTDIR=/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT
+ /usr/bin/cmake --install build
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/lib64/libptytty.so.0
-- Installing: /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/lib64/libptytty.so
-- Installing: /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/include/libptytty.h
-- Installing: /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/man/man3/libptytty.3
-- Installing: /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/lib64/pkgconfig/libptytty.pc
+ /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 2.0-2.mga10 --unique-debug-suffix -2.0-2.mga10.x86_64 --unique-debug-src-base libptytty-2.0-2.mga10.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0
find-debuginfo: starting

Extracting debug info from 1 files
DWARF-compressing 1 files
sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match.
Creating .debug symlinks for symlinks to ELF files
Copying sources found by 'debugedit -l' to /usr/src/debug/libptytty-2.0-2.mga10.x86_64
find-debuginfo: done
+ /usr/lib/rpm/check-buildroot
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/compress_files .xz
+ '[' -n '' ']'
+ /usr/share/spec-helper/relink_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_perl
+ '[' -n '' ']'
+ /usr/share/spec-helper/lib_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/gprintify
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_mo
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_pamd
+ '[' -n '' ']'
+ /usr/share/spec-helper/remove_info_dir
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_eol
+ '[' -n '' ']'
+ /usr/share/spec-helper/check_desktop_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/check_elf_files
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/brp-remove-la-files
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16
+ /usr/lib/rpm/redhat/brp-python-hardlink
Reading /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/SPECPARTS/rpm-debuginfo.specpart
Processing files: lib64ptytty0-2.0-2.mga10.x86_64
Executing(%license): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.x3e2mp
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ cd libptytty-2.0
+ LICENSEDIR=/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/licenses/lib64ptytty0
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/licenses/lib64ptytty0
+ cp -pr /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/COPYING /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/licenses/lib64ptytty0
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: lib64ptytty0 = 2.0-2.mga10 lib64ptytty0(x86-64) = 2.0-2.mga10 libptytty = 2.0-2.mga10 libptytty.so.0()(64bit)
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3)(64bit) libgcc_s.so.1(GCC_4.2.0)(64bit)
Obsoletes: libptytty < 2.0-2
Processing files: lib64ptytty-devel-2.0-2.mga10.x86_64
Executing(%doc): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Aag0qs
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ cd libptytty-2.0
+ DOCDIR=/home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/doc/lib64ptytty-devel
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/doc/lib64ptytty-devel
+ cp -pr /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/Changes /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/doc/lib64ptytty-devel
+ cp -pr /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/libptytty-2.0/README /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT/usr/share/doc/lib64ptytty-devel
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: devel(libptytty(64bit)) lib64ptytty-devel = 2.0-2.mga10 lib64ptytty-devel(x86-64) = 2.0-2.mga10 libptytty-devel = 2.0-2.mga10 pkgconfig(libptytty) = 2.0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: devel(libgcc_s(64bit)) pkgconfig
Obsoletes: libptytty-devel < 2.0-2
Processing files: libptytty-debugsource-2.0-2.mga10.x86_64
Provides: libptytty-debugsource = 2.0-2.mga10 libptytty-debugsource(x86-64) = 2.0-2.mga10
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: lib64ptytty0-debuginfo-2.0-2.mga10.x86_64
Provides: debuginfo(build-id) = e21ced5607ef80313194643d18ee6a94697b7d86 lib64ptytty0-debuginfo = 2.0-2.mga10 lib64ptytty0-debuginfo(x86-64) = 2.0-2.mga10
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Recommends: libptytty-debugsource(x86-64) = 2.0-2.mga10
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build/BUILDROOT
Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64ptytty-devel-2.0-2.mga10.x86_64.rpm
Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/libptytty-debugsource-2.0-2.mga10.x86_64.rpm
Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64ptytty0-2.0-2.mga10.x86_64.rpm
Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64ptytty0-debuginfo-2.0-2.mga10.x86_64.rpm
Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.qtVL5U
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ test -d /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ rm -rf /home/pterjan/rpmbuild/BUILD/libptytty-2.0-build
+ RPM_EC=0
++ jobs -p
+ exit 0
D: [iurt_root_command] Success!