I've been using centos dockers for a while to build images.
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.
I get an error similar to this
rpmbuild -ba /home/dev/rpmbuild/SPECS/re2c.spec sh: which: command not found sh: which: command not found Executing(%prep): -e /var/tmp/rpm-tmp.9WC5EP error: Exec of /var/tmp/rpm-tmp.9WC5EP failed (%prep): No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.9WC5EP (%prep)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.9WC5EP (%prep)
No matter how simple my spec is...
I can run "sh /var/tmp/rpm-tmp.9WC5EP" without issue. So I'm still not 100% sure where the problem REALLY lies.
The only packages I've installed is
yum groupinstall "Development Tools"
My question is where is the error, and where can I file/view a bug report? Should rpm-build from https://git.centos.org/summary/?r=rpms/rpm have "Requires: which" for the build package? Or is which supposed to be in "Development tools", or am I just doing this all wrong?
Thanks
Hello, I don't know if that have an impact but I found that between 7.1 and 7.2, which moved from /usr/bin to /bin
Thierry
On 04/01/16 20:12, Andrew Neff wrote:
I've been using centos dockers for a while to build images.
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.
I get an error similar to this
rpmbuild -ba /home/dev/rpmbuild/SPECS/re2c.spec sh: which: command not found sh: which: command not found Executing(%prep): -e /var/tmp/rpm-tmp.9WC5EP error: Exec of /var/tmp/rpm-tmp.9WC5EP failed (%prep): No such file
or directory error: Bad exit status from /var/tmp/rpm-tmp.9WC5EP (%prep)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.9WC5EP (%prep)
No matter how simple my spec is...
I can run "sh /var/tmp/rpm-tmp.9WC5EP" without issue. So I'm still not 100% sure where the problem REALLY lies.
The only packages I've installed is
yum groupinstall "Development Tools"
My question is where is the error, and where can I file/view a bug report? Should rpm-build from https://git.centos.org/summary/?r=rpms/rpm have "Requires: which" for the build package? Or is which supposed to be in "Development tools", or am I just doing this all wrong?
Thanks
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
On 01/04/2016 01:12 PM, Andrew Neff wrote:
My question is where is the error, and where can I file/view a bug report? Should rpm-build from https://git.centos.org/summary/?r=rpms/rpm have "Requires: which" for the build package? Or is which supposed to be in "Development tools", or am I just doing this all wrong?
The which command is expected for rpm build environments, but it is not included in 7.2.1511 (or :latest) docker containers. This was due to a request from upstream to sync the base containers -> https://bugzilla.redhat.com/show_bug.cgi?id=1273938
I would suspect that which could (and possibly should) be added as a Requires upstream. In the meantime you should consider making sure you install the packages listed either in Fedora's packaging guidelines or spelled out in centos mock configs (like this one for example https://git.centos.org/blob/sig-core!bld-seven.git/29517e030ebfb5c376dd74271... )