Red Hat Bugzilla – Bug 1243128
pam FTBFS during stage2 bootstrap - please, move autoreconf from %build to %prep
Last modified: 2016-01-31 21:01:43 EST
Description of problem:
During the stage2 bootstrap we experience FTBFS caused by the pam-1.1.8-pwhistory-helper.patch that modifies Makefile.am. This breaks the bootstrap procedure since we have no autotools in the stage2 when building Fedora from scratch. Fortunately this can be solved with minimal effort. You call the autoreconf -i in the %build phase. Would it be possible to move the autoreconf call from %build to %prep ? The %prep phase is executed during the stage1 source unpacking and patching using the host's rpmbuild and that should prevent the build from requiring autotools when building stage2 natively. In general, calling autoreconf -i in %prep is probably more correct as it does a very similar task to patching. It prepares the sources for building and allows applying patches on top of auto-reconfigured sources.
Version-Release number of selected component (if applicable):
Do you need this change to be done in F21? Isn't rawhide sufficient?
As discussed online. We're ok with SRPM override in this case. Thanks for the push. I'm closing this bug.