diff --git a/build/build.c b/build/build.c index 4a4aec61e5..1f1afc3ef1 100644 --- a/build/build.c +++ b/build/build.c @@ -430,7 +430,7 @@ static int buildSpec(rpmts ts, BTA_t buildArgs, rpmSpec spec, int what) "buildsubdir", NULL, "%{NAME}-%{VERSION}", RMIL_SPEC); if (didBuild) what |= RPMBUILD_MKBUILDDIR; - what &= ~(RPMBUILD_RMBUILD); + what &= ~(RPMBUILD_PREP|RPMBUILD_RMBUILD); } if ((what & RPMBUILD_CHECKBUILDREQUIRES) && diff --git a/build/parsePrep.c b/build/parsePrep.c index 4754827f56..e639ad569b 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -190,10 +190,6 @@ void doSetupMacro(rpmMacroBuf mb, rpmMacroEntry me, ARGV_t margs, size_t *parsed goto exit; } - if (rpmExpandNumeric("%{_build_in_place}")) { - goto exit; - } - optCon = poptGetContext(NULL, argc, argv, optionsTable, 0); while ((arg = poptGetNextOpt(optCon)) > 0) { char *optArg = poptGetOptArg(optCon); diff --git a/docs/man/rpmbuild.8.md b/docs/man/rpmbuild.8.md index bfd2027511..c31b8ef789 100644 --- a/docs/man/rpmbuild.8.md +++ b/docs/man/rpmbuild.8.md @@ -265,9 +265,10 @@ The following options may also be used: **\--build-in-place** -: Build from locally checked out sources. Sets \_builddir to current - working directory. Skips handling of -n and untar in the %setup and - the deletion of the buildSubdir. +: Build from locally checked out sources in the current working + directory. The build tree is set up as if %setup was used, + but %builddir/%buildsubdir points back to the current working + directory. %prep is skipped entirely. **\--target ***PLATFORM*