Mock Version: 1.2.12 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/cabal-sort.spec'], chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-9211/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/cabal-sort.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False error: Macro %py2_install has unterminated body error: Macro %py2_install has unterminated body warning: Could not canonicalize hostname: copr-builder-650335778 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/cabal-sort-0.0.5.2-1.el7.centos.src.rpm error: Macro %py2_install has unterminated body error: Macro %py2_install has unterminated body Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/cabal-sort.spec '], chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-9211/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/cabal-sort.spec '] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False error: Macro %py2_install has unterminated body error: Macro %py2_install has unterminated body Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KdnPzf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cabal-sort-0.0.5.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/cabal-sort-0.0.5.2.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd cabal-sort-0.0.5.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Bzrycb + umask 022 + cd /builddir/build/BUILD + cd cabal-sort-0.0.5.2 + '[' -d /builddir/.cabal ']' + cabal update Config file path source is default config file. Config file /builddir/.cabal/config not found. Writing default configuration to /builddir/.cabal/config Downloading the latest package list from hackage.haskell.org + cabal install Resolving dependencies... Downloading explicit-exception-0.1.7.3... Configuring explicit-exception-0.1.7.3... Building explicit-exception-0.1.7.3... Preprocessing library explicit-exception-0.1.7.3... [ 1 of 11] Compiling Control.Monad.Label ( src/Control/Monad/Label.hs, dist/build/Control/Monad/Label.o ) [ 2 of 11] Compiling Control.Monad.Exception.Synchronous ( src/Control/Monad/Exception/Synchronous.hs, dist/build/Control/Monad/Exception/Synchronous.o ) [ 3 of 11] Compiling Control.Monad.Exception.Asynchronous.Strict ( src/Control/Monad/Exception/Asynchronous/Strict.hs, dist/build/Control/Monad/Exception/Asynchronous/Strict.o ) [ 4 of 11] Compiling Control.Monad.Exception.Warning ( src/Control/Monad/Exception/Warning.hs, dist/build/Control/Monad/Exception/Warning.o ) [ 5 of 11] Compiling Control.Monad.Exception.Label ( src/Control/Monad/Exception/Label.hs, dist/build/Control/Monad/Exception/Label.o ) [ 6 of 11] Compiling System.IO.Straight ( src/System/IO/Straight.hs, dist/build/System/IO/Straight.o ) src/System/IO/Straight.hs:68:10: Warning: Orphan instance: instance (MonadSIO m, ContainsIOException e) => MonadIO (ExceptionalT e m) [ 7 of 11] Compiling System.IO.Exception.File ( src/System/IO/Exception/File.hs, dist/build/System/IO/Exception/File.o ) [ 8 of 11] Compiling System.IO.Exception.BinaryFile ( src/System/IO/Exception/BinaryFile.hs, dist/build/System/IO/Exception/BinaryFile.o ) [ 9 of 11] Compiling Control.Monad.Exception.Asynchronous.Lazy ( src/Control/Monad/Exception/Asynchronous/Lazy.hs, dist/build/Control/Monad/Exception/Asynchronous/Lazy.o ) [10 of 11] Compiling Control.Monad.Exception.Asynchronous ( src/Control/Monad/Exception/Asynchronous.hs, dist/build/Control/Monad/Exception/Asynchronous.o ) [11 of 11] Compiling System.IO.Exception.TextFile ( src/System/IO/Exception/TextFile.hs, dist/build/System/IO/Exception/TextFile.o ) src/System/IO/Exception/TextFile.hs:47:4: Warning: In the use of `Async.manySynchronousT' (imported from Control.Monad.Exception.Asynchronous, but defined in Control.Monad.Exception.Asynchronous.Lazy): Deprecated: "use manyMonoidT with appropriate Monad like LazyIO and result Monoid like Endo instead" In-place registering explicit-exception-0.1.7.3... Installing library in /builddir/.cabal/lib/explicit-exception-0.1.7.3/ghc-7.6.3 Registering explicit-exception-0.1.7.3... Installed explicit-exception-0.1.7.3 Downloading utility-ht-0.0.11... Configuring utility-ht-0.0.11... Building utility-ht-0.0.11... Preprocessing library utility-ht-0.0.11... [ 1 of 27] Compiling Text.Show.HT ( src/Text/Show/HT.hs, dist/build/Text/Show/HT.o ) [ 2 of 27] Compiling Text.Read.HT ( src/Text/Read/HT.hs, dist/build/Text/Read/HT.o ) [ 3 of 27] Compiling Data.Strictness.HT ( src/Data/Strictness/HT.hs, dist/build/Data/Strictness/HT.o ) [ 4 of 27] Compiling Control.Monad.HT ( src/Control/Monad/HT.hs, dist/build/Control/Monad/HT.o ) [ 5 of 27] Compiling Data.Tuple.Strict ( src/Data/Tuple/Strict.hs, dist/build/Data/Tuple/Strict.o ) [ 6 of 27] Compiling Data.Tuple.Lazy ( src/Data/Tuple/Lazy.hs, dist/build/Data/Tuple/Lazy.o ) [ 7 of 27] Compiling Data.Tuple.HT ( src/Data/Tuple/HT.hs, dist/build/Data/Tuple/HT.o ) [ 8 of 27] Compiling Control.Functor.HT ( src/Control/Functor/HT.hs, dist/build/Control/Functor/HT.o ) [ 9 of 27] Compiling Data.Monoid.HT ( src/Data/Monoid/HT.hs, dist/build/Data/Monoid/HT.o ) [10 of 27] Compiling Data.Maybe.HT ( src/Data/Maybe/HT.hs, dist/build/Data/Maybe/HT.o ) [11 of 27] Compiling Data.Ix.Enum ( src/Data/Ix/Enum.hs, dist/build/Data/Ix/Enum.o ) [12 of 27] Compiling Data.Function.HT.Private ( src/Data/Function/HT/Private.hs, dist/build/Data/Function/HT/Private.o ) [13 of 27] Compiling Data.Function.HT ( src/Data/Function/HT.hs, dist/build/Data/Function/HT.o ) [14 of 27] Compiling Data.List.Key.Private ( src/Data/List/Key/Private.hs, dist/build/Data/List/Key/Private.o ) [15 of 27] Compiling Data.List.Key ( src/Data/List/Key.hs, dist/build/Data/List/Key.o ) [16 of 27] Compiling Data.Ord.HT ( src/Data/Ord/HT.hs, dist/build/Data/Ord/HT.o ) [17 of 27] Compiling Data.Eq.HT ( src/Data/Eq/HT.hs, dist/build/Data/Eq/HT.o ) [18 of 27] Compiling Data.Bool.HT.Private ( src/Data/Bool/HT/Private.hs, dist/build/Data/Bool/HT/Private.o ) [19 of 27] Compiling Data.Bool.HT ( src/Data/Bool/HT.hs, dist/build/Data/Bool/HT.o ) [20 of 27] Compiling Data.List.Match.Private ( src/Data/List/Match/Private.hs, dist/build/Data/List/Match/Private.o ) [21 of 27] Compiling Data.List.HT.Private ( src/Data/List/HT/Private.hs, dist/build/Data/List/HT/Private.o ) [22 of 27] Compiling Data.List.HT ( src/Data/List/HT.hs, dist/build/Data/List/HT.o ) [23 of 27] Compiling Data.Record.HT.Private ( src/Data/Record/HT/Private.hs, dist/build/Data/Record/HT/Private.o ) [24 of 27] Compiling Data.Record.HT ( src/Data/Record/HT.hs, dist/build/Data/Record/HT.o ) [25 of 27] Compiling Data.String.HT ( src/Data/String/HT.hs, dist/build/Data/String/HT.o ) [26 of 27] Compiling Data.Tuple.Example ( src/Data/Tuple/Example.hs, dist/build/Data/Tuple/Example.o ) [27 of 27] Compiling Data.List.Match ( src/Data/List/Match.hs, dist/build/Data/List/Match.o ) In-place registering utility-ht-0.0.11... Installing library in /builddir/.cabal/lib/utility-ht-0.0.11/ghc-7.6.3 Registering utility-ht-0.0.11... Installed utility-ht-0.0.11 Configuring cabal-sort-0.0.5.2... Building cabal-sort-0.0.5.2... Preprocessing executable 'ghc-pkg-dep' for cabal-sort-0.0.5.2... [1 of 1] Compiling Main ( src/GhcPkgDep.hs, dist/build/ghc-pkg-dep/ghc-pkg-dep-tmp/Main.o ) Linking dist/build/ghc-pkg-dep/ghc-pkg-dep ... Preprocessing executable 'cabal-sort' for cabal-sort-0.0.5.2... [1 of 1] Compiling Main ( src/CabalSort.hs, dist/build/cabal-sort/cabal-sort-tmp/Main.o ) Linking dist/build/cabal-sort/cabal-sort ... Installing executable(s) in /builddir/.cabal/bin Installed cabal-sort-0.0.5.2 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vbLFLN + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64 + cd cabal-sort-0.0.5.2 + mkdir -p /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64/usr/bin + install -p /builddir/.cabal/bin/cabal-sort /builddir/.cabal/bin/ghc-pkg-dep /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64/usr/bin + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/cabal-sort-0.0.5.2 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: cabal-sort-0.0.5.2-1.el7.centos.x86_64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.bHxVpq + umask 022 + cd /builddir/build/BUILD + cd cabal-sort-0.0.5.2 + LICENSEDIR=/builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64/usr/share/licenses/cabal-sort-0.0.5.2 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64/usr/share/licenses/cabal-sort-0.0.5.2 + cp -pr LICENSE /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64/usr/share/licenses/cabal-sort-0.0.5.2 + exit 0 Provides: cabal-sort = 0.0.5.2-1.el7.centos cabal-sort(x86-64) = 0.0.5.2-1.el7.centos Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libffi.so.6()(64bit) libgmp.so.10()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) librt.so.1(GLIBC_2.3.3)(64bit) libutil.so.1()(64bit) rtld(GNU_HASH) Processing files: cabal-sort-debuginfo-0.0.5.2-1.el7.centos.x86_64 Provides: cabal-sort-debuginfo = 0.0.5.2-1.el7.centos cabal-sort-debuginfo(x86-64) = 0.0.5.2-1.el7.centos Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64 warning: Could not canonicalize hostname: copr-builder-650335778 Wrote: /builddir/build/RPMS/cabal-sort-0.0.5.2-1.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/cabal-sort-debuginfo-0.0.5.2-1.el7.centos.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.6CQ5Pk + umask 022 + cd /builddir/build/BUILD + cd cabal-sort-0.0.5.2 + /usr/bin/rm -rf /builddir/build/BUILDROOT/cabal-sort-0.0.5.2-1.el7.centos.x86_64 + exit 0 error: Macro %py2_install has unterminated body error: Macro %py2_install has unterminated body Child return code was: 0 LEAVE do -->