Mock Version: 2.3
Mock Version: 2.3
Mock Version: 2.3
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec'], chrootPath='/var/lib/mock/v8.2-base-2255-1771/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f06d47d25c0>timeout=86400uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
warning: bogus date in %changelog: Tue May 15 2020 Lin Liu <lin.liu@citrix.com> - 1.244.0-2
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/xapi-1.249.3-1.1.xcpng8.2.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec'], chrootPath='/var/lib/mock/v8.2-base-2255-1771/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f06d47d25c0>timeout=86400uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
warning: bogus date in %changelog: Tue May 15 2020 Lin Liu <lin.liu@citrix.com> - 1.244.0-2
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BLRuK1
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf xapi-1.249.3
+ /usr/bin/gzip -dc /builddir/build/SOURCES/xen-api-1.249.3.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd xapi-1.249.3
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /builddir/build/SOURCES/0001-CA-338596-Upload-files-limit-should-deal-with-the-do.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/0002-CA-338608-Limit-xe-client-to-download-files-specifie.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/0003-Branding-for-the-Stockholm-release.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/xapi-1.249.3-allow-migrate_send-during-RPU.XCP-ng.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/xapi-1.249.3-open-vxlan-port-for-sdn-controller.XCP-ng.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/xapi-1.249.3-create-plugged-vif-and-vbd-and-suspended-vm.XCP-ng.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /builddir/build/SOURCES/xapi-1.249.3-open-openflow-port.XCP-ng.patch
+ /usr/bin/patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lruHtk
+ umask 022
+ cd /builddir/build/BUILD
+ cd xapi-1.249.3
+ ./configure
Configuring with the following parameters
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
       bisect_enable = NO
  disable_warn_error = false
         varpatchdir = /var/patch
              etcdir = /etc/xensource
              optdir = /opt/xensource
           plugindir = /etc/xapi.d/plugins
        extensiondir = /etc/xapi.d/extensions
            hooksdir = /etc/xapi.d
           inventory = /etc/xensource-inventory
            xapiconf = /etc/xapi.conf
          libexecdir = /opt/xensource/libexec
          scriptsdir = /etc/xensource/scripts
            sharedir = /opt/xensource
              webdir = /opt/xensource/www
  cluster_stack_root = /usr/libexec/xapi/cluster-stack
              bindir = /opt/xensource/bin
             sbindir = /opt/xensource/bin
             udevdir = /etc/udev
              docdir = /usr/share/xapi/doc
+ ulimit -s 16384
+ COMPILE_JAVA=no
+ XAPI_VERSION=1.249.3
+ /usr/bin/make
dune build @install -j 6 --profile=release
File "ocaml/xapi-cli-server/cli_operations.ml", line 5092, characters 18-38:
5092 |                   Tar_unix.write_block hdr
                         ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi-cli-server/cli_operations.ml", line 5134, characters 28-48:
5134 |                             Tar_unix.write_block hdr
                                   ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi-cli-server/cli_operations.ml", line 5162, characters 18-36:
5162 |                   Tar_unix.write_end sock ;
                         ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/db_actions.ml", line 986, characters 18-33:
986 |     fun x -> (try Date.assert_utc x with Invalid_argument s -> raise (DateTimeError s)); Date.to_string x
                        ^^^^^^^^^^^^^^^
Alert deprecated: API.Date.assert_utc
assertions performed inside constructors, so this fn does nothing
File "ocaml/xapi-cli-server/cli_operations.ml", line 5092, characters 18-38:
5092 |                   Tar_unix.write_block hdr
                         ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi-cli-server/cli_operations.ml", line 5134, characters 28-48:
5134 |                             Tar_unix.write_block hdr
                                   ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi-cli-server/cli_operations.ml", line 5162, characters 18-36:
5162 |                   Tar_unix.write_end sock ;
                         ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/xapi_db_upgrade.ml", line 845, characters 60-108:
845 |           Db.Tunnel.set_protocol ~__context ~self ~protocol:(Record_util.tunnel_protocol_of_string protocol)
                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: The function applied to this argument has type
         value:[< `gre | `vxlan ] -> unit
This argument cannot be applied with label ~protocol
File "ocaml/xapi/stream_vdi.ml", line 116, characters 4-24:
116 |     Tar_unix.write_block hdr
          ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/stream_vdi.ml", line 125, characters 4-24:
125 |     Tar_unix.write_block hdr'
          ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/stream_vdi.ml", line 395, characters 4-25:
395 |     Tar_unix.Archive.skip ifd (Tar_unix.Header.compute_zero_padding_length hdr) ;
          ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/stream_vdi.ml", line 504, characters 12-33:
504 |             Tar_unix.Archive.skip ifd
                  ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/stream_vdi.ml", line 573, characters 20-43:
573 |                     Tar_unix.Archive.copy_n ifd zcat_in length) ;
                          ^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.copy_n
Deprecated: use your own helper function
File "ocaml/xapi/stream_vdi.ml", line 574, characters 16-37:
574 |                 Tar_unix.Archive.skip ifd
                      ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/export_raw_vdi.ml", line 106, characters 16-34:
106 |                 Tar_unix.write_end s
                      ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 593, characters 2-22:
593 |   Tar_unix.write_block hdr (fun s -> Unixext.really_write_string s ova_xml) s ;
        ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 594, characters 2-20:
594 |   Tar_unix.write_end s
        ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 609, characters 2-22:
609 |   Tar_unix.write_block hdr (fun s -> Unixext.really_write_string s ova_xml) s ;
        ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 645, characters 2-20:
645 |   Tar_unix.write_end s ;
        ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/import.ml", line 1863, characters 4-25:
1863 |     Tar_unix.Archive.skip fd (Tar_unix.Header.compute_zero_padding_length hdr) ;
           ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/import.ml", line 1907, characters 10-31:
1907 |           Tar_unix.Archive.skip pipe_out
                 ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/import.ml", line 2049, characters 14-35:
2049 |               Tar_unix.Archive.skip s (Tar_unix.Header.length * 2) ;
                     ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/xapi_vbd.ml", line 301, characters 41-48:
301 |             ~vM ~vDI ~userdevice ~device:_device ~bootable ~mode ~_type ~unpluggable
                                               ^^^^^^^
Error: Unbound value _device
Hint: Did you mean device?
File "ocaml/xapi/db_actions.ml", line 986, characters 18-33:
986 |     fun x -> (try Date.assert_utc x with Invalid_argument s -> raise (DateTimeError s)); Date.to_string x
                        ^^^^^^^^^^^^^^^
Alert deprecated: API.Date.assert_utc
assertions performed inside constructors, so this fn does nothing
File "ocaml/xapi/stream_vdi.ml", line 116, characters 4-24:
116 |     Tar_unix.write_block hdr
          ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/stream_vdi.ml", line 125, characters 4-24:
125 |     Tar_unix.write_block hdr'
          ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/stream_vdi.ml", line 395, characters 4-25:
395 |     Tar_unix.Archive.skip ifd (Tar_unix.Header.compute_zero_padding_length hdr) ;
          ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/stream_vdi.ml", line 504, characters 12-33:
504 |             Tar_unix.Archive.skip ifd
                  ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/stream_vdi.ml", line 573, characters 20-43:
573 |                     Tar_unix.Archive.copy_n ifd zcat_in length) ;
                          ^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.copy_n
Deprecated: use your own helper function
File "ocaml/xapi/stream_vdi.ml", line 574, characters 16-37:
574 |                 Tar_unix.Archive.skip ifd
                      ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/export_raw_vdi.ml", line 106, characters 16-34:
106 |                 Tar_unix.write_end s
                      ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 593, characters 2-22:
593 |   Tar_unix.write_block hdr (fun s -> Unixext.really_write_string s ova_xml) s ;
        ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 594, characters 2-20:
594 |   Tar_unix.write_end s
        ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 609, characters 2-22:
609 |   Tar_unix.write_block hdr (fun s -> Unixext.really_write_string s ova_xml) s ;
        ^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_block
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/export.ml", line 645, characters 2-20:
645 |   Tar_unix.write_end s ;
        ^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.write_end
Deprecated in favor of Tar.HeaderWriter
File "ocaml/xapi/import.ml", line 1863, characters 4-25:
1863 |     Tar_unix.Archive.skip fd (Tar_unix.Header.compute_zero_padding_length hdr) ;
           ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/import.ml", line 1907, characters 10-31:
1907 |           Tar_unix.Archive.skip pipe_out
                 ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
File "ocaml/xapi/import.ml", line 2049, characters 14-35:
2049 |               Tar_unix.Archive.skip s (Tar_unix.Header.length * 2) ;
                     ^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Tar_unix.Archive.skip
Deprecated: use your own helper function
make: *** [build] Error 1
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.lruHtk (%build)
    bogus date in %changelog: Tue May 15 2020 Lin Liu <lin.liu@citrix.com> - 1.244.0-2
    Bad exit status from /var/tmp/rpm-tmp.lruHtk (%build)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 776, in do_with_status
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
mockbuild.exception.Error: Command failed: 
 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/xapi.spec