build.c File Reference

#include "system.h"
#include <rpmcli.h>
#include <rpmbuild.h>
#include "rpmps.h"
#include "rpmte.h"
#include "rpmts.h"
#include "build.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define _anyarch(_f)   (((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0)
#define buildCleanMask   (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC)

Functions

static int checkSpec (rpmts ts, Header h)
static int isSpecFile (const char *specfile)
static int buildForTarget (rpmts ts, const char *arg, BTA_t ba)
int build (rpmts ts, const char *arg, BTA_t ba, const char *rcfile)


Define Documentation

#define _anyarch ( _f   )     (((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0)

Referenced by buildForTarget().

#define buildCleanMask   (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC)

Referenced by build().


Function Documentation

int build ( rpmts  ts,
const char *  arg,
BTA_t  ba,
const char *  rcfile 
)

Definition at line 304 of file build.c.

References _, _RPMVSF_NODIGESTS, _RPMVSF_NOSIGNATURES, alloca(), rpmBuildArguments_s::buildAmount, buildCleanMask, buildForTarget(), rpmBuildArguments_s::qva_flags, rpmExpandNumeric(), rpmFreeMacros(), rpmFreeRpmrc(), rpmReadConfigFiles(), rpmtsSetVSFlags(), RPMVSF_NOHDRCHK, rpmBuildArguments_s::targets, VERIFY_DIGEST, VERIFY_HDRCHK, VERIFY_SIGNATURE, and vsflags.

Referenced by main().

static int buildForTarget ( rpmts  ts,
const char *  arg,
BTA_t  ba 
) [static]

Definition at line 101 of file build.c.

References _, _anyarch, _free(), addMacro(), alloca(), rpmBuildArguments_s::buildAmount, rpmBuildArguments_s::buildMode, rpmBuildArguments_s::buildRootOverride, buildSpec(), checkSpec(), COMPRESSED_OTHER, rpmBuildArguments_s::cookie, rpmBuildArguments_s::force, freeSpec(), initSourceHeader(), isCompressed(), isSpecFile(), rpmBuildArguments_s::noBuild, rpmBuildArguments_s::noDeps, parseSpec(), rpmBuildArguments_s::passPhrase, RMIL_TARBALL, rpmBuildArguments_s::rootdir, RPM_MACHTABLE_BUILDARCH, RPM_MACHTABLE_BUILDOS, RPMERR_BADSPEC, RPMERR_NOTREG, RPMERR_POPEN, RPMERR_READ, RPMERR_RENAME, RPMERR_STAT, rpmError, rpmGenPath(), rpmGetPath(), rpmSetTables(), rpmtsSetSpec(), Spec_s::sourceHeader, Stat(), Unlink(), URL_IS_DASH, and urlPath().

Referenced by build().

static int isSpecFile ( const char *  specfile  )  [static]

Definition at line 54 of file build.c.

References _, Fclose(), Ferror(), Fopen(), Fread(), Fstrerror(), RPMERR_OPEN, and rpmError.

Referenced by buildForTarget().


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2