Description of problem: The rh-dotnet22-curl RPM can't be rebuilt by CentOS folks. The error message is: error: /builddir/build/BUILDROOT/curl-7.61.1-1.el7.x86_64/usr/include/curl/curlbuild.h': No such file or directory Turns out curlbuild.h was removed in curl 7.55. Our RPM is still incorrectly looking for it. Worse, instead of failing, the RPM build in our offical build system continues as if nothing bad happened. The built RPM is incomplete and missing files. (In our case, this is not *too* bad, because we just skip packaging one pkg-config file.) This was originally reported on #centos-devel by hughesjr Version-Release number of selected component (if applicable): rh-dotnet22-curl-7.61.1-1.el7
The fix is two fold: 1. Use a `set -ex` at the start of the %install section to make sure we fail the build if any build step fails 2. Do not try and patch, modify or install a non-existant curlbuild.h file. This file was removed in curl 7.55.0: https://curl.haxx.se/changes.html
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:1236