Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpmbuild: Create full build tree after parsing a spec file
%_sourcedir and such can use %{name} and that is correct from RPM POV because that expansion happens only during the actual build. However, rpmbuild tries to create those directories before parsing spec that leads to some warnings from RPM even though those macro are re-evaluated later during the build. It is enough to create %_topdir and %_specdir in the beginning to support building from tarball and create the rest after parsing spec. Having any macro that would be populated from spec in %_topdir and %_specdir is just not going to work anyway. Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com> (cherry picked from commit af74684)
- Loading branch information