+ dnf clean all
0 files removed
+ dnf makecache --verbose
Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repograph, repomanage, reposync, versionlock
DNF version: 2.7.5
cachedir: /var/cache/dnf
Making cache files for all metadata files.
local: has expired and will be refreshed.
Local RPMS                                      1.9 MB/s |  48 MB     00:25    
not found deltainfo for: Local RPMS
not found updateinfo for: Local RPMS
local: using metadata from Sat Mar 24 14:18:17 2018.
Last metadata expiration check: 0:08:26 ago on Sat Mar 24 15:40:13 2018.
Missing file *modules.yaml in metadata cache dir: /var/cache/dnf/local-5521bc1e6d885b81
Completion plugin: Generating completion cache...
Excludes from versionlock plugin were not applied
Metadata cache created.
+ useradd -d /builddir mockbuild
+ su -c 'mkdir /builddir/build' mockbuild
+ echo '%_topdir /builddir/build'
+ su -c 'rpm -i /var/tmp/php-facedetect-1.1.0-6.fc27.src.rpm' mockbuild
+ dnf -y builddep /builddir/build/SPECS/php-facedetect.spec --define '_topdir /builddir/build'
Waiting for process with pid 213 to finish.
Last metadata expiration check: 0:08:30 ago on Sat Mar 24 15:48:48 2018.
sh: php-config: command not found
Failed to open: '/builddir/build/SPECS/php-facedetect.spec', not a valid spec file: can't parse specfile

Error: Some packages could not be found.
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff