Top-level build dispatcher. More...
#include "system.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <time.h>
#include <strings.h>
#include <errno.h>
#include <sys/file.h>
#include <ctype.h>
#include <rpmio.h>
#include <rpmcli.h>
#include <rpmbuild.h>
#include "rpmps.h"
#include "rpmte.h"
#include "rpmts.h"
#include <assert.h>
#include "system.h"
#include <rpmio_internal.h>
#include "signature.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) |
#define | _RPMTAG_INTERNAL |
Functions | |
static int | checkSpec (rpmts ts, Header h) |
Parse spec file and build package. | |
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) |
const char * | getSourceDir (rpmfileAttrs attr) |
Return the macro directory location from source file flags. | |
static void | doRmSource (Spec spec) |
rpmRC | doScript (Spec spec, int what, const char *name, StringBuf sb, int test) |
Run a build script, assembled from spec file scriptlet section. | |
rpmRC | buildSpec (rpmts ts, Spec spec, int what, int test) |
Build stages state machine driver. | |
Variables | |
static int | _build_debug = 0 |
Top-level build dispatcher.
Definition in file build.c.
#define _anyarch | ( | _f | ) | (((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0) |
#define buildCleanMask (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC) |
static void doRmSource | ( | Spec | spec | ) | [static] |
Definition at line 59 of file build.c.
References _free(), Source::flags, getSourceDir(), Source::next, RPMFILE_GHOST, rpmGenPath(), Source::source, Spec_s::sources, Spec_s::specFile, and Unlink().
Referenced by buildSpec().
int _build_debug = 0 [static] |