Files | |
file | build.c |
Top-level build dispatcher. | |
file | buildio.h |
Routines to read and write packages. | |
file | expression.c |
Simple logical expression parser. | |
file | files.c |
The post-build, pre-packaging file tree walk to assemble the package manifest. | |
file | misc.c |
file | myftw.c |
Modified ftw() -- uses Lstat() instead of stat(). | |
file | myftw.h |
Portable ftw(3) using lstat() instead of stat(). | |
file | names.c |
Simple user/group name/id cache (plus hostname and buildtime). | |
file | pack.c |
Assemble components of an RPM package. | |
file | parseBuildInstallClean.c |
Parse build/%install/%clean section from spec file. | |
file | parseChangelog.c |
Parse changelog section from spec file. | |
file | parseDescription.c |
Parse description section from spec file. | |
file | parseFiles.c |
Parse files section from spec file. | |
file | parsePreamble.c |
Parse tags in global section from spec file. | |
file | parsePrep.c |
Parse prep section from spec file. | |
file | parseReqs.c |
Parse dependency tag from spec file or from auto-dependency generator. | |
file | parseScript.c |
Parse install-time script section from spec file. | |
file | parseSpec.c |
Top level dispatcher for spec file parsing. | |
file | reqprov.c |
Add dependency tags to package header(s). | |
file | rpmbuild.h |
This is the *only* module users of librpmbuild should need to include. | |
file | rpmspec.h |
The Spec and Package data structures used during build. | |
file | spec.c |
Handle spec data structure. | |
file | rpmcli.h |
Data Structures | |
struct | TriggerFileEntry |
struct | Source |
struct | ReadLevelEntry |
struct | OpenFileInfo |
struct | spectag_s |
struct | spectags_s |
struct | speclines_s |
struct | SpecStruct |
struct | PackageStruct |
Typedefs | |
typedef enum rpmBuildFlags_e | rpmBuildFlags |
typedef enum rpmParseState_e | rpmParseState |
typedef SpecStruct * | Spec |
typedef ReadLevelEntry | RLE_t |
typedef OpenFileInfo | OFI_t |
typedef spectag_s * | spectag |
typedef spectags_s * | spectags |
typedef speclines_s * | speclines |
typedef PackageStruct * | Package |
Enumerations | |
enum | rpmBuildFlags_e { RPMBUILD_NONE = 0, RPMBUILD_PREP = (1 << 0), RPMBUILD_BUILD = (1 << 1), RPMBUILD_INSTALL = (1 << 2), RPMBUILD_CLEAN = (1 << 3), RPMBUILD_FILECHECK = (1 << 4), RPMBUILD_PACKAGESOURCE = (1 << 5), RPMBUILD_PACKAGEBINARY = (1 << 6), RPMBUILD_RMSOURCE = (1 << 7), RPMBUILD_RMBUILD = (1 << 8), RPMBUILD_STRINGBUF = (1 << 9), RPMBUILD_RMSPEC = (1 << 10) } |
enum | rpmParseState_e { PART_NONE = 0, PART_PREAMBLE = 1, PART_PREP = 2, PART_BUILD = 3, PART_INSTALL = 4, PART_CLEAN = 5, PART_FILES = 6, PART_PRE = 7, PART_POST = 8, PART_PREUN = 9, PART_POSTUN = 10, PART_DESCRIPTION = 11, PART_CHANGELOG = 12, PART_TRIGGERIN = 13, PART_TRIGGERUN = 14, PART_VERIFYSCRIPT = 15, PART_BUILDARCHITECTURES = 16, PART_TRIGGERPOSTUN = 17, PART_LAST = 18 } |
Functions | |
void | freeNames (void) |
const char * | getUname (uid_t uid) |
const char * | getUnameS (const char *uname) |
uid_t | getUidS (const char *uname) |
const char * | getGname (gid_t gid) |
const char * | getGnameS (const char *gname) |
gid_t | getGidS (const char *gname) |
const char *const | buildHost (void) |
int_32 *const | getBuildTime (void) |
int | readLine (Spec spec, int strip) |
void | closeSpec (Spec spec) |
void | handleComments (char *s) |
rpmParseState | isPart (const char *line) |
int | parseNum (const char *line, int *res) |
void | addChangelogEntry (Header h, time_t time, const char *name, const char *text) |
int | parseBuildInstallClean (Spec spec, rpmParseState parsePart) |
int | parseChangelog (Spec spec) |
int | parseDescription (Spec spec) |
int | parseFiles (Spec spec) |
int | parsePreamble (Spec spec, int initialPackage) |
int | parsePrep (Spec spec) |
int | parseRCPOT (Spec spec, Package pkg, const char *field, int tag, int index, rpmsenseFlags tagflags) |
int | parseScript (Spec spec, int parsePart) |
int | parseExpressionBoolean (Spec spec, const char *expr) |
char * | parseExpressionString (Spec spec, const char *expr) |
int | doScript (Spec spec, int what, const char *name, StringBuf sb, int test) |
int | lookupPackage (Spec spec, const char *name, int flag, Package *pkg) |
Package | newPackage (Spec spec) |
Package | freePackages (Package packages) |
Package | freePackage (Package pkg) |
int | addReqProv (Spec spec, Header h, rpmsenseFlags depFlags, const char *depName, const char *depEVR, int index) |
int | rpmlibNeedsFeature (Header h, const char *feature, const char *featureEVR) |
int | processBinaryFiles (Spec spec, int installSpecialDoc, int test) |
void | initSourceHeader (Spec spec) |
int | processSourceFiles (Spec spec) |
int | parseSpec (Spec *specp, const char *specFile, const char *rootURL, const char *buildRootURL, int recursing, const char *passPhrase, char *cookie, int anyarch, int force) |
int | buildSpec (Spec spec, int what, int test) |
int | packageBinaries (Spec spec) |
int | packageSources (Spec spec) |
Spec | newSpec (void) |
Spec | freeSpec (Spec spec) |
OpenFileInfo * | newOpenFileInfo (void) |
spectag | stashSt (Spec spec, Header h, int tag, const char *lang) |
int | addSource (Spec spec, Package pkg, const char *field, int tag) |
int | parseNoSource (Spec spec, const char *field, int tag) |
Variables | |
int(* | parseSpecVec )(Spec *specp, const char *specFile, const char *rootdir, const char *buildRoot, int recursing, const char *passPhrase, char *cookie, int anyarch, int force) |
Spec(* | freeSpecVec )(Spec spec) |
|
Referenced by closeSpec(), copyNextLine(), forceIncludeFile(), and readLine(). |
|
|
|
|
Bit(s) to control buildSpec() operation. |
|
Spec file parser states. Referenced by isPart(), parseBuildInstallClean(), and parseSpec(). |
|
|
Referenced by freeSl(), newSl(), printNewSpecfile(), and readLine(). |
|
Referenced by freeSt(), parseDescription(), printNewSpecfile(), and stashSt(). |
|
Referenced by freeSt(), newSt(), printNewSpecfile(), and stashSt(). |
|
Bit(s) to control buildSpec() operation.
Definition at line 22 of file rpmbuild.h. |
|
Spec file parser states.
Definition at line 51 of file rpmbuild.h. |
|
Add changelog entry to header.
Definition at line 11 of file parseChangelog.c. References Header, headerAddEntry(), headerAppendEntry(), headerIsEntry(), int_32, RPM_INT32_TYPE, RPM_STRING_ARRAY_TYPE, RPMTAG_CHANGELOGNAME, RPMTAG_CHANGELOGTEXT, and RPMTAG_CHANGELOGTIME. Referenced by addChangelog(), and headerInject(). |
|
|
Definition at line 245 of file spec.c. References _, _free(), addMacro(), PackageStruct::icon, SpecStruct::line, SpecStruct::lineNum, SpecStruct::macros, Source::next, SpecStruct::numSources, Package, parseNum(), RMIL_SPEC, RPMBUILD_ISICON, RPMBUILD_ISPATCH, RPMBUILD_ISSOURCE, RPMERR_BADSPEC, rpmError, rpmGetPath(), RPMTAG_ICON, RPMTAG_PATCH, RPMTAG_SOURCE, SKIPSPACE, SpecStruct::sources, Spec, xmalloc(), and xstrdup(). Referenced by handlePreambleTag(). |
|
Return build hostname.
Definition at line 179 of file names.c. References _, RPMMESS_WARNING, and rpmMessage. Referenced by headerInject(), packageBinaries(), packageSources(), and writeRPM(). |
|
Build stages state machine driver.
Definition at line 264 of file build.c. References _, SpecStruct::BACount, SpecStruct::BASpecs, doRmSource(), doScript(), packageBinaries(), packageSources(), processBinaryFiles(), processSourceFiles(), SpecStruct::recursing, RPMBUILD_BUILD, RPMBUILD_CLEAN, RPMBUILD_FILECHECK, RPMBUILD_INSTALL, RPMBUILD_PACKAGEBINARY, RPMBUILD_PACKAGESOURCE, RPMBUILD_PREP, RPMBUILD_RMBUILD, RPMBUILD_RMSOURCE, RPMBUILD_RMSPEC, rpmlogGetNrecs(), rpmlogPrint(), RPMMESS_NORMAL, rpmMessage, Spec, SpecStruct::specFile, and Unlink(). Referenced by buildForTarget(). |
|
Stop reading from spec file, freeing resources.
Definition at line 358 of file parseSpec.c. References _free(), Fclose(), OpenFileInfo::fd, OpenFileInfo::fileName, SpecStruct::fileStack, OpenFileInfo::next, OFI_t, and Spec. Referenced by freeSpec(), and parseSpec(). |
|
Run a build script, assembled from spec file scriptlet section.
Definition at line 57 of file build.c. References _, _build_debug, _free(), addMacro(), SpecStruct::build, SpecStruct::buildSubdir, SpecStruct::clean, delMacro(), errno, Fclose(), FD_t, fdGetFp(), Fdopen(), Ferror(), Fileno(), getStringBuf(), urlinfo_s::host, SpecStruct::install, SpecStruct::macros, makeTempFile(), poptParseArgvString(), SpecStruct::prep, RMIL_SPEC, SpecStruct::rootURL, RPMBUILD_BUILD, RPMBUILD_CLEAN, RPMBUILD_INSTALL, RPMBUILD_PREP, RPMBUILD_RMBUILD, RPMBUILD_STRINGBUF, RPMERR_SCRIPT, rpmError, rpmExpand(), rpmGenPath(), RPMMESS_NORMAL, rpmMessage, Spec, strerror(), StringBuf, Unlink(), URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, urlinfo, urlPath(), urlSplit(), and urlinfo_s::urltype. Referenced by buildSpec(), and processPackageFiles(). |
|
Destroy uid/gid caches. Definition at line 29 of file names.c. References _free(), gid_used, gnames, uid_used, and unames. Referenced by main(). |
|
Destroy package control structure.
Definition at line 148 of file spec.c. References _free(), PackageStruct::cpioList, PackageStruct::fileFile, PackageStruct::fileList, freeFi(), freeSources(), freeStringBuf(), freeTriggerFiles(), PackageStruct::header, headerFree(), PackageStruct::icon, Package, PackageStruct::postInFile, PackageStruct::postUnFile, PackageStruct::preInFile, PackageStruct::preUnFile, PackageStruct::specialDoc, TFI_t, PackageStruct::triggerFiles, and PackageStruct::verifyFile. Referenced by freePackages(). |
|
Destroy all packages associated with spec file.
Definition at line 176 of file spec.c. References freePackage(), PackageStruct::next, and Package. Referenced by freeSpec(). |
|
Destroy Spec structure.
Definition at line 462 of file spec.c. References _free(), SpecStruct::BACount, SpecStruct::BANames, SpecStruct::BASpecs, SpecStruct::build, SpecStruct::buildRestrictions, SpecStruct::buildRootURL, SpecStruct::buildSubdir, SpecStruct::clean, closeSpec(), SpecStruct::cookie, OpenFileInfo::fileName, SpecStruct::fileStack, freeFi(), freePackages(), freeSl(), freeSources(), freeSt(), freeStringBuf(), headerFree(), SpecStruct::install, OpenFileInfo::next, ReadLevelEntry::next, SpecStruct::packages, SpecStruct::passPhrase, SpecStruct::prep, SpecStruct::readStack, SpecStruct::recursing, SpecStruct::rootURL, SpecStruct::sl, SpecStruct::sourceCpioList, SpecStruct::sourceHeader, SpecStruct::sourceRpmName, SpecStruct::sources, Spec, SpecStruct::specFile, SpecStruct::st, and TFI_t. Referenced by buildForTarget(), main(), parseSpec(), and readRPM(). |
|
Return build time stamp.
Definition at line 170 of file names.c. References int_32. Referenced by headerInject(), packageBinaries(), packageSources(), and writeRPM(). |
|
Return cached group id.
Definition at line 148 of file names.c. References _, gid_used, gids, gnames, rpmlog(), and xstrdup(). Referenced by genCpioListAndHeader(). |
|
Return cached group name from group id.
Definition at line 104 of file names.c. References _, gid_used, gids, gnames, rpmlog(), and xstrdup(). Referenced by addFile(), checkOwners(), and processSourceFiles(). |
|
Return cached group name.
Definition at line 126 of file names.c. References _, gid_used, gids, gnames, rpmlog(), and xstrdup(). Referenced by addFile(). |
|
Return cached user id.
Definition at line 82 of file names.c. References _, rpmlog(), uid_used, uids, unames, and xstrdup(). Referenced by genCpioListAndHeader(). |
|
Return cached user name from user id.
Definition at line 38 of file names.c. References _, rpmlog(), uid_used, uids, unames, and xstrdup(). Referenced by addFile(), checkOwners(), headerInject(), and processSourceFiles(). |
|
Return cached user name.
Definition at line 60 of file names.c. References _, rpmlog(), uid_used, uids, unames, and xstrdup(). Referenced by addFile(). |
|
Truncate comment lines.
Definition at line 97 of file parseSpec.c. References SKIPSPACE. Referenced by copyNextLine(), and processPackageFiles(). |
|
Create and initialize header for source package.
Definition at line 2008 of file files.c. References SpecStruct::BACount, SpecStruct::BANames, SpecStruct::buildRestrictions, PackageStruct::header, HEADER_I18NTABLE, headerAddEntry(), headerFreeData(), headerFreeIterator(), headerInitIterator(), HeaderIterator, headerNew(), headerNextIterator(), int_32, SpecStruct::packages, RPM_STRING_ARRAY_TYPE, RPMTAG_ARCH, RPMTAG_BUILDARCHS, RPMTAG_CHANGELOGNAME, RPMTAG_CHANGELOGTEXT, RPMTAG_CHANGELOGTIME, RPMTAG_DESCRIPTION, RPMTAG_DISTRIBUTION, RPMTAG_DISTURL, RPMTAG_EPOCH, RPMTAG_GROUP, RPMTAG_LICENSE, RPMTAG_NAME, RPMTAG_OS, RPMTAG_PACKAGER, RPMTAG_RELEASE, RPMTAG_SUMMARY, RPMTAG_URL, RPMTAG_VENDOR, RPMTAG_VERSION, SpecStruct::sourceHeader, and Spec. Referenced by buildForTarget(), and processSourceFiles(). |
|
Check line for section separator, return next parser state.
Definition at line 54 of file parseSpec.c. References initParts(), PartRec::len, PART_NONE, partList, rpmParseState, PartRec::token, xisspace(), and xstrncasecmp(). Referenced by parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parsePreamble(), parsePrep(), and parseScript(). |
|
Find sub-package control structure by name.
Definition at line 60 of file spec.c. References alloca(), PackageStruct::header, headerNVR(), PackageStruct::next, Package, SpecStruct::packages, PART_SUBNAME, and Spec. Referenced by parseDescription(), parseFiles(), parsePreamble(), and parseScript(). |
|
Definition at line 541 of file spec.c. References xmalloc(). Referenced by forceIncludeFile(), and parseSpec(). |
|
Create and initialize package control structure.
Definition at line 101 of file spec.c. References headerNew(), PackageStruct::next, Package, SpecStruct::packages, Spec, and xcalloc(). Referenced by parsePreamble(), and readRPM(). |
|
Create and initialize Spec structure.
Definition at line 405 of file spec.c. References headerNew(), newSl(), newSt(), rpmGlobalMacroContext, Spec, and xcalloc(). Referenced by parseSpec(), and readRPM(). |
|
Generate binary package(s).
Definition at line 689 of file pack.c. References _, _free(), buildHost(), SpecStruct::cookie, copyTags, PackageStruct::cpioList, CSA_t, errno, fdFree, fdNew, PackageStruct::fileList, genSourceRpmName(), getBuildTime(), PackageStruct::header, headerAddEntry(), headerCopyTags(), headerNVR(), headerSprintf(), Mkdir(), PackageStruct::next, Package, SpecStruct::packages, SpecStruct::passPhrase, processScriptFiles(), providePackageNVR(), RPM_INT32_TYPE, RPM_STRING_TYPE, RPMERR_BADFILENAME, rpmError, rpmExpand(), rpmGetPath(), rpmHeaderFormats, RPMLEAD_BINARY, RPMTAG_BUILDHOST, RPMTAG_BUILDTIME, RPMTAG_COOKIE, RPMTAG_OPTFLAGS, RPMTAG_RPMVERSION, RPMTAG_SOURCERPM, rpmTagTable, SpecStruct::sourceRpmName, Spec, Stat(), strerror(), VERSION, and writeRPM(). Referenced by buildSpec(). |
|
Generate source package.
Definition at line 788 of file pack.c. References _free(), buildHost(), SpecStruct::cookie, CSA_t, fdFree, fdNew, genSourceRpmName(), getBuildTime(), headerAddEntry(), SpecStruct::passPhrase, RPM_INT32_TYPE, RPM_STRING_TYPE, rpmGetPath(), RPMLEAD_SOURCE, RPMTAG_BUILDHOST, RPMTAG_BUILDTIME, RPMTAG_RPMVERSION, SpecStruct::sourceCpioList, SpecStruct::sourceHeader, SpecStruct::sourceRpmName, Spec, VERSION, and writeRPM(). Referenced by buildSpec(). |
|
Parse %build/%%install/%%clean section(s) of a spec file.
Definition at line 12 of file parseBuildInstallClean.c. References _, appendStringBuf, SpecStruct::build, SpecStruct::clean, SpecStruct::install, isPart(), SpecStruct::line, SpecStruct::lineNum, newStringBuf(), PART_BUILD, PART_CLEAN, PART_INSTALL, PART_NONE, readLine(), RPMERR_BADSPEC, rpmError, rpmParseState, Spec, StringBuf, and STRIP_NOTHING. Referenced by parseSpec(). |
|
Parse %changelog section of a spec file.
Definition at line 205 of file parseChangelog.c. References addChangelog(), appendStringBuf, freeStringBuf(), PackageStruct::header, isPart(), SpecStruct::line, newStringBuf(), SpecStruct::packages, PART_NONE, readLine(), Spec, StringBuf, and STRIP_COMMENTS. Referenced by parseSpec(). |
|
Parse %description section of a spec file.
Definition at line 29 of file parseDescription.c. References _, _free(), appendLineStringBuf, freeStringBuf(), getStringBuf(), PackageStruct::header, headerAddI18NString(), headerIsEntry(), isPart(), lang, SpecStruct::line, SpecStruct::lineNum, lookupPackage(), name, newStringBuf(), noLang, optionsTable, Package, PART_NAME, PART_NONE, PART_SUBNAME, POPT_BADOPTION_NOALIAS, poptBadOption(), poptContext, poptFreeContext(), poptGetArg(), poptGetContext(), poptGetNextOpt(), poptParseArgvString(), poptPeekArg(), poptStrerror(), readLine(), RPMBUILD_DEFAULT_LANG, RPMERR_BADSPEC, rpmError, RPMTAG_DESCRIPTION, Spec, spectag, stashSt(), StringBuf, STRIP_COMMENTS, STRIP_TRAILINGSPACE, stripTrailingBlanksStringBuf(), and spectag_s::t_nlines. Referenced by parseSpec(). |
|
Evaluate boolean expression.
Definition at line 674 of file expression.c. References _, _free(), _value::data, DEBUG, doLogical(), _parseState::nextToken, _parseState::p, rdToken(), RPMERR_BADSPEC, rpmError, _parseState::spec, Spec, _parseState::str, TOK_EOF, _parseState::tokenValue, _value::type, Value, valueFree(), and xstrdup(). Referenced by readLine(). |
|
Evaluate string expression.
Definition at line 721 of file expression.c. References _, _free(), _value::data, DEBUG, doLogical(), _parseState::nextToken, _parseState::p, rdToken(), RPMERR_BADSPEC, rpmError, _parseState::spec, Spec, _parseState::str, TOK_EOF, _parseState::tokenValue, _value::type, Value, valueFree(), and xstrdup(). |
|
Parse %files section of a spec file.
Definition at line 26 of file parseFiles.c. References _, _free(), appendStringBuf, file, PackageStruct::fileFile, PackageStruct::fileList, isPart(), SpecStruct::line, SpecStruct::lineNum, lookupPackage(), name, newStringBuf(), optionsTable, Package, PART_NAME, PART_NONE, PART_SUBNAME, POPT_BADOPTION_NOALIAS, poptBadOption(), poptContext, poptFreeContext(), poptGetArg(), poptGetContext(), poptGetNextOpt(), poptParseArgvString(), poptPeekArg(), poptStrerror(), readLine(), RPMERR_BADSPEC, rpmError, rpmGetPath(), Spec, and STRIP_COMMENTS. Referenced by parseSpec(). |
|
Definition at line 201 of file spec.c. References _, findSource(), SpecStruct::lineNum, parseNum(), RPMBUILD_ISNO, RPMBUILD_ISPATCH, RPMBUILD_ISSOURCE, RPMERR_BADSPEC, rpmError, RPMTAG_NOSOURCE, SKIPNONWHITE, SKIPWHITE, and Spec. Referenced by handlePreambleTag(). |
|
Parse a number.
Definition at line 9 of file misc.c. Referenced by addSource(), doPatchMacro(), doSetupMacro(), handlePreambleTag(), and parseNoSource(). |
|
Parse tags from preamble of a spec file.
Definition at line 835 of file parsePreamble.c. References _, SpecStruct::anyarch, SpecStruct::BANames, SpecStruct::buildRootURL, checkForDuplicates(), checkForRequired(), checkForValidArchitectures(), copyTagsDuringParse, fillOutMainPackage(), findPreambleTag(), SpecStruct::gotBuildRootURL, handlePreambleTag(), PackageStruct::header, headerAddEntry(), headerCopyTags(), headerNVR(), int_32, isPart(), SpecStruct::line, SpecStruct::lineNum, lookupPackage(), newPackage(), Package, SpecStruct::packages, parseSimplePart(), PART_BUILDARCHITECTURES, PART_NONE, PART_SUBNAME, readLine(), SpecStruct::recursing, RPM_STRING_TYPE, RPMERR_BADSPEC, rpmError, RPMTAG_NAME, SKIPSPACE, Spec, STRIP_COMMENTS, and STRIP_TRAILINGSPACE. Referenced by parseSpec(). |
|
Parse %prep section of a spec file.
Definition at line 543 of file parsePrep.c. References _, appendLineStringBuf, appendStringBuf, doPatchMacro(), doSetupMacro(), SpecStruct::force, freeSplitString(), freeStringBuf(), getStringBuf(), isPart(), SpecStruct::line, SpecStruct::lineNum, newStringBuf(), PART_NONE, SpecStruct::prep, readLine(), RPMERR_BADSPEC, rpmError, Spec, splitString(), StringBuf, and STRIP_NOTHING. Referenced by parseSpec(). |
|
Parse dependency relations from spec file and/or autogenerated output buffer.
Definition at line 35 of file parseReqs.c. References _, _free(), addReqProv(), SpecStruct::buildRestrictions, PackageStruct::header, Header, SpecStruct::line, SpecStruct::lineNum, Package, ReqComparisons, RPMERR_BADSPEC, rpmError, rpmExpandNumeric(), rpmlibNeedsFeature(), RPMSENSE_ANY, RPMSENSE_CONFLICTS, RPMSENSE_OBSOLETES, RPMSENSE_PREREQ, RPMSENSE_PROVIDES, RPMSENSE_SENSEMASK, RPMSENSE_TRIGGERIN, RPMSENSE_TRIGGERPOSTUN, RPMSENSE_TRIGGERUN, rpmsenseFlags, RPMTAG_BUILDCONFLICTS, RPMTAG_BUILDPREREQ, RPMTAG_BUILDREQUIRES, RPMTAG_CONFLICTFLAGS, RPMTAG_OBSOLETEFLAGS, RPMTAG_PREREQ, RPMTAG_PROVIDEFLAGS, RPMTAG_REQUIREFLAGS, RPMTAG_TRIGGERIN, RPMTAG_TRIGGERPOSTUN, RPMTAG_TRIGGERUN, SKIPNONWHITE, SKIPWHITE, Spec, ReqComp::token, xisalnum(), and xmalloc(). Referenced by generateDepends(), handlePreambleTag(), and parseScript(). |
|
Parse %pre et al scriptlets from a spec file.
Definition at line 69 of file parseScript.c. References _, _free(), addReqProv(), addTriggerIndex(), appendStringBuf, file, freeStringBuf(), getStringBuf(), PackageStruct::header, headerAddEntry(), headerIsEntry(), isPart(), SpecStruct::line, SpecStruct::lineNum, lookupPackage(), name, newStringBuf(), optionsTable, Package, parseRCPOT(), PART_NAME, PART_NONE, PART_POST, PART_POSTUN, PART_PRE, PART_PREUN, PART_SUBNAME, PART_TRIGGERIN, PART_TRIGGERPOSTUN, PART_TRIGGERUN, PART_VERIFYSCRIPT, POPT_BADOPTION_NOALIAS, poptBadOption(), poptContext, poptFreeContext(), poptGetArg(), poptGetContext(), poptGetNextOpt(), poptParseArgvString(), poptPeekArg(), poptStrerror(), PackageStruct::postInFile, PackageStruct::postUnFile, PackageStruct::preInFile, PackageStruct::preUnFile, prog, readLine(), RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, RPMERR_BADSPEC, rpmError, rpmlibNeedsFeature(), RPMSENSE_INTERP, RPMSENSE_SCRIPT_POST, RPMSENSE_SCRIPT_POSTUN, RPMSENSE_SCRIPT_PRE, RPMSENSE_SCRIPT_PREUN, RPMSENSE_SCRIPT_VERIFY, RPMTAG_POSTIN, RPMTAG_POSTINPROG, RPMTAG_POSTUN, RPMTAG_POSTUNPROG, RPMTAG_PREIN, RPMTAG_PREINPROG, RPMTAG_PREUN, RPMTAG_PREUNPROG, RPMTAG_TRIGGERIN, RPMTAG_TRIGGERPOSTUN, RPMTAG_TRIGGERSCRIPTPROG, RPMTAG_TRIGGERSCRIPTS, RPMTAG_TRIGGERUN, RPMTAG_VERIFYSCRIPT, RPMTAG_VERIFYSCRIPTPROG, Spec, StringBuf, STRIP_NOTHING, stripTrailingBlanksStringBuf(), PackageStruct::verifyFile, and xstrdup(). Referenced by parseSpec(). |
|
Parse spec file into spec control structure.
Definition at line 377 of file parseSpec.c. References _, _debug, _free(), addMacro(), SpecStruct::anyarch, SpecStruct::BACount, SpecStruct::BANames, SpecStruct::BASpecs, SpecStruct::buildRootURL, closeSpec(), SpecStruct::cookie, delMacro(), OpenFileInfo::fileName, SpecStruct::fileStack, SpecStruct::force, freeSpec(), SpecStruct::gotBuildRootURL, PackageStruct::header, headerAddEntry(), headerIsEntry(), headerNVR(), SpecStruct::macros, newOpenFileInfo(), newSpec(), PackageStruct::next, Package, SpecStruct::packages, parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parsePreamble(), parsePrep(), parseScript(), PART_BUILD, PART_BUILDARCHITECTURES, PART_CHANGELOG, PART_CLEAN, PART_DESCRIPTION, PART_FILES, PART_INSTALL, PART_LAST, PART_NONE, PART_POST, PART_POSTUN, PART_PRE, PART_PREAMBLE, PART_PREP, PART_PREUN, PART_TRIGGERIN, PART_TRIGGERPOSTUN, PART_TRIGGERUN, PART_VERIFYSCRIPT, SpecStruct::passPhrase, SpecStruct::recursing, RMIL_RPMRC, RMIL_SPEC, SpecStruct::rootURL, RPM_MACHTABLE_BUILDARCH, RPM_STRING_TYPE, RPMERR_BADSPEC, rpmError, rpmExpand(), rpmExpandNumeric(), rpmGetArchInfo(), rpmGetMachine(), rpmGetOsInfo(), rpmGetPath(), rpmMachineScore(), rpmParseState, rpmSetMachine(), RPMTAG_ARCH, RPMTAG_DESCRIPTION, RPMTAG_OS, RPMTAG_PLATFORM, RPMTAG_RHNPLATFORM, Spec, SpecStruct::specFile, SpecStruct::timeCheck, urlPath(), xcalloc(), and xstrdup(). Referenced by buildForTarget(), and main(). |
|
Post-build processing for binary package(s).
Definition at line 2648 of file files.c. References _, PackageStruct::cpioList, PackageStruct::fileList, generateDepends(), PackageStruct::header, headerIsEntry(), headerNVR(), PackageStruct::next, Package, SpecStruct::packages, printDeps(), processPackageFiles(), RPMMESS_NORMAL, rpmMessage, RPMTAG_MULTILIBS, and Spec. Referenced by buildSpec(). |
|
Post-build processing for source package.
Definition at line 2071 of file files.c. References _, _free(), appendLineStringBuf, FileList_s::buildRootURL, FileListRec_s::diskURL, errno, FileList_s::fileList, FileListRec, FileList_s::fileListRecsUsed, FileListRec_s::fileURL, FileListRec_s::fl_st, FileListRec_s::flags, freeFileList(), freeSplitString(), freeStringBuf(), genCpioListAndHeader(), getGname(), getStringBuf(), getUname(), FileListRec_s::gname, headerAddOrAppendEntry(), PackageStruct::icon, initSourceHeader(), FileListRec_s::langs, newStringBuf(), PackageStruct::next, Source::next, SpecStruct::numSources, Package, SpecStruct::packages, FileList_s::prefix, FileList_s::processingFailed, RPM_INT32_TYPE, RPM_STRING_ARRAY_TYPE, RPMBUILD_ISNO, RPMBUILD_ISPATCH, RPMBUILD_ISSOURCE, RPMERR_BADSPEC, rpmError, RPMFILE_GHOST, RPMFILE_SPECFILE, rpmGetPath(), RPMTAG_NOPATCH, RPMTAG_NOSOURCE, RPMTAG_PATCH, RPMTAG_SOURCE, RPMVERIFY_ALL, SKIPSPACE, SpecStruct::sourceCpioList, SpecStruct::sourceHeader, SpecStruct::sources, Spec, SpecStruct::specFile, splitString(), Stat(), strerror(), StringBuf, TFI_t, FileList_s::totalFileSize, FileListRec_s::uname, urlPath(), FileListRec_s::verifyFlags, xcalloc(), and xstrdup(). Referenced by buildSpec(). |
|
Read next line from spec file.
Definition at line 179 of file parseSpec.c. References _, _free(), copyNextLine(), Fclose(), OpenFileInfo::fd, fdGetFp(), Ferror(), OpenFileInfo::fileName, SpecStruct::fileStack, Fopen(), forceIncludeFile(), Fstrerror(), SpecStruct::line, OpenFileInfo::lineNum, SpecStruct::lineNum, matchTok(), OpenFileInfo::next, ReadLevelEntry::next, OFI_t, parseExpressionBoolean(), OpenFileInfo::readBuf, ReadLevelEntry::reading, OpenFileInfo::readPtr, SpecStruct::readStack, RPMERR_BADSPEC, RPMERR_UNMATCHEDIF, rpmError, rpmExpand(), rpmGetArchInfo(), rpmGetOsInfo(), SKIPNONSPACE, SKIPSPACE, SpecStruct::sl, speclines_s::sl_lines, speclines_s::sl_nalloc, speclines_s::sl_nlines, Spec, speclines, xisspace(), xmalloc(), xrealloc(), and xstrdup(). Referenced by parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parsePreamble(), parsePrep(), and parseScript(). |
|
Add rpmlib feature dependency.
Definition at line 120 of file reqprov.c. References addReqProv(), alloca(), Header, RPMSENSE_EQUAL, RPMSENSE_LESS, RPMSENSE_RPMLIB, and stpcpy(). Referenced by genCpioListAndHeader(), parseRCPOT(), parseScript(), processPackageFiles(), and writeRPM(). |
|
Definition at line 401 of file parsePreamble.c. References Header, HGE_t, SpecStruct::lineNum, RPMBUILD_DEFAULT_LANG, RPMTAG_NAME, Spec, spectag, spectags, SpecStruct::st, spectags_s::st_nalloc, spectags_s::st_ntags, spectags_s::st_t, spectag_s::t_lang, spectag_s::t_msgid, spectag_s::t_nlines, spectag_s::t_startx, spectag_s::t_tag, tagName(), xrealloc(), and xstrdup(). Referenced by handlePreambleTag(), and parseDescription(). |
|
Definition at line 206 of file rpmspec.h. Referenced by main(), and rpmQueryVerify(). |
|
Definition at line 492 of file rpmbuild.h. Referenced by main(), and rpmQueryVerify(). |