<div dir="ltr">I&#39;ve been using centos dockers for a while to build images.<div><br></div><div>With the latest Centos update 7.2.1511 to the docker images, I am no longer able to build rpm packages without manually installing which.</div><div><br></div><div>I get an error similar to this</div><div><br></div><div><div>    rpmbuild -ba /home/dev/rpmbuild/SPECS/re2c.spec </div><div>    sh: which: command not found</div><div>    sh: which: command not found</div><div>    Executing(%prep):  -e /var/tmp/rpm-tmp.9WC5EP</div><div>    error: Exec of /var/tmp/rpm-tmp.9WC5EP failed (%prep): No such file or directory</div><div>    error: Bad exit status from /var/tmp/rpm-tmp.9WC5EP (%prep)</div><div><br></div><div><br></div><div>    RPM build errors:</div><div>        Bad exit status from /var/tmp/rpm-tmp.9WC5EP (%prep)</div></div><div><br></div><div>No matter how simple my spec is... </div><div><br></div><div>I can run &quot;sh /var/tmp/rpm-tmp.9WC5EP&quot; without issue. So I&#39;m still not 100% sure where the problem REALLY lies.</div><div><br></div><div>The only packages I&#39;ve installed is </div><div><br></div><div>    yum groupinstall &quot;Development Tools&quot;</div><div><br></div><div>My question is where is the error, and where can I file/view a bug report? Should rpm-build from <a href="https://git.centos.org/summary/?r=rpms/rpm">https://git.centos.org/summary/?r=rpms/rpm</a> have &quot;Requires: which&quot; for the build package? Or is which supposed to be in &quot;Development tools&quot;, or am I just doing this all wrong?</div><div><br></div><div>Thanks</div></div>