#include "system.h"#include <signal.h>#include <rpmbuild.h>#include <argv.h>#include <rpmfc.h>#include <rpmds.h>#include <rpmfi.h>#include "debug.h"Go to the source code of this file.
Data Structures | |
| struct | rpmfcApplyTbl_s |
| struct | DepMsg_s |
Defines | |
| #define | _RPMDS_INTERNAL |
Typedefs | |
| typedef rpmfcApplyTbl_s * | rpmfcApplyTbl |
| typedef DepMsg_s * | DepMsg_t |
Functions | |
| static int | rpmfcExpandAppend (ARGV_t *argvp, const ARGV_t av) |
| static StringBuf | getOutputFrom (const char *dir, ARGV_t argv, const char *writePtr, int writeBytesLeft, int failNonZero) |
| Return output from helper script. | |
| int | rpmfcExec (ARGV_t av, StringBuf sb_stdin, StringBuf *sb_stdoutp, int failnonzero) |
| Return helper output. | |
| static int | rpmfcSaveArg (ARGV_t *argvp, const char *key) |
| static char * | rpmfcFileDep (char *buf, int ix, rpmds ds) |
| static int | rpmfcHelper (rpmfc fc, unsigned char deptype, const char *nsdep) |
| Run per-interpreter dependency helper. | |
| int | rpmfcColoring (const char *fmstr) |
| Return file color given file(1) string. | |
| void | rpmfcPrint (const char *msg, rpmfc fc, FILE *fp) |
| Print results of file classification. | |
| rpmfc | rpmfcFree (rpmfc fc) |
| Destroy a file classifier. | |
| rpmfc | rpmfcNew (void) |
| Create a file classifier. | |
| static int | rpmfcSCRIPT (rpmfc fc) |
| Extract script dependencies. | |
| static int | rpmfcELF (rpmfc fc) |
| Extract Elf dependencies. | |
| int | rpmfcApply (rpmfc fc) |
| Build file/package dependency dictionary and mappings. | |
| int | rpmfcClassify (rpmfc fc, ARGV_t argv) |
| Build file class dictionary and mappings. | |
| static void | printDeps (Header h) |
| static int | rpmfcGenerateDependsHelper (const Spec spec, Package pkg, rpmfi fi) |
| int | rpmfcGenerateDepends (const Spec spec, Package pkg) |
| Generate package dependencies. | |
Variables | |
| static struct rpmfcTokens_s | rpmfcTokens [] |
| static struct rpmfcApplyTbl_s | rpmfcApplyTable [] |
| static struct DepMsg_s | depMsgs [] |
| static DepMsg_t | DepMsgs = depMsgs |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1302 of file rpmfc.c. References DepMsg_s::ftag, DepMsg_s::mask, DepMsg_s::msg, DepMsg_s::ntag, rpmdsDNEVR(), rpmdsFlags(), rpmdsFree(), rpmdsInit(), rpmdsNew(), rpmdsNext(), RPMMESS_NORMAL, rpmMessage, and DepMsg_s::xor. Referenced by rpmfcGenerateDepends(). |
|
|
Build file/package dependency dictionary and mappings.
Definition at line 1057 of file rpmfc.c. References argiAdd(), argiCount(), argvCount(), rpmfcApplyTbl_s::colormask, rpmfcApplyTbl_s::func, rpmdsFind(), rpmdsFree(), rpmdsSingle(), rpmfcApplyTable, RPMTAG_PROVIDENAME, and RPMTAG_REQUIRENAME. Referenced by main(), and rpmfcGenerateDepends(). |
|
||||||||||||
|
Build file class dictionary and mappings.
Definition at line 1146 of file rpmfc.c. References argiAdd(), argvAdd(), argvCount(), argvFree(), argvSearch(), default_magicfile, fmagicProcess(), fmagicSetup(), global_fmagic, fmagic_s::magicfile, fmagic_s::nob, fmagic_s::obp, fmagic_s::obuf, RPMFC_INCLUDE, RPMFC_WHITE, rpmfcColoring(), rpmfcSaveArg(), RPMMESS_DEBUG, and rpmMessage. Referenced by main(), and rpmfcGenerateDepends(). |
|
|
Return file color given file(1) string.
Definition at line 513 of file rpmfc.c. References RPMFC_INCLUDE. Referenced by rpmfcClassify(). |
|
|
Extract Elf dependencies.
Definition at line 736 of file rpmfc.c. References _free(), EI_CLASS, ELFCLASS64, ET_EXEC, rpmdsFree(), rpmdsMerge(), rpmdsSingle(), rpmExpandNumeric(), rpmfcFileDep(), rpmfcSaveArg(), RPMSENSE_FIND_PROVIDES, RPMSENSE_FIND_REQUIRES, RPMTAG_PROVIDENAME, RPMTAG_PROVIDES, RPMTAG_REQUIRENAME, stpcpy(), and xstrdup(). |
|
||||||||||||||||||||
|
Return helper output.
Definition at line 202 of file rpmfc.c. References _free(), argvAppend(), argvFree(), freeStringBuf(), getOutputFrom(), getStringBuf(), poptParseArgvString(), rpmExpand(), and rpmfcExpandAppend(). Referenced by checkFiles(), rpmfcGenerateDependsHelper(), and rpmfcHelper(). |
|
||||||||||||
|
Definition at line 24 of file rpmfc.c. References argv, argvCount(), rpmExpand(), and xrealloc(). Referenced by rpmfcExec(). |
|
||||||||||||||||
|
Definition at line 279 of file rpmfc.c. References rpmdsEVR(), rpmdsFlags(), rpmdsN(), rpmdsTagN(), RPMTAG_PROVIDENAME, and RPMTAG_REQUIRENAME. Referenced by rpmfcELF(), rpmfcHelper(), and rpmfcSCRIPT(). |
|
|
Destroy a file classifier.
Definition at line 605 of file rpmfc.c. References _free(), argiFree(), argvFree(), freeStringBuf(), and rpmdsFree(). Referenced by main(), and rpmfcGenerateDepends(). |
|
||||||||||||
|
||||||||||||||||
|
Definition at line 1348 of file rpmfc.c. References _, _free(), appendLineStringBuf, DepMsg_s::argv, Package_s::autoProv, Package_s::autoReq, freeStringBuf(), DepMsg_s::ftag, getStringBuf(), DepMsg_s::msg, newStringBuf(), DepMsg_s::ntag, parseRCPOT(), RPMERR_EXEC, rpmError, rpmExpand(), rpmfcExec(), rpmfiFN(), rpmfiInit(), rpmfiNext(), RPMMESS_NORMAL, rpmMessage, RPMSENSE_FIND_PROVIDES, RPMSENSE_FIND_REQUIRES, RPMTAG_PROVIDEFLAGS, and RPMTAG_REQUIREFLAGS. Referenced by rpmfcGenerateDepends(). |
|
||||||||||||||||
|
Run per-interpreter dependency helper.
Definition at line 312 of file rpmfc.c. References appendLineStringBuf, argvCount(), argvFree(), argvSplit(), freeStringBuf(), getStringBuf(), newStringBuf(), rpmdsFree(), rpmdsMerge(), rpmdsSingle(), rpmfcExec(), rpmfcFileDep(), rpmfcSaveArg(), RPMSENSE_EQUAL, RPMSENSE_FIND_PROVIDES, RPMSENSE_FIND_REQUIRES, RPMSENSE_GREATER, RPMSENSE_LESS, RPMSENSE_RPMLIB, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, and snprintf(). Referenced by rpmfcSCRIPT(). |
|
|
Create a file classifier.
Definition at line 629 of file rpmfc.c. References xcalloc(). Referenced by main(), and rpmfcGenerateDepends(). |
|
||||||||||||||||
|
Print results of file classification.
Definition at line 528 of file rpmfc.c. References rpmdsCount(), rpmdsDNEVR(), rpmdsNext(), and rpmdsSetIx(). Referenced by main(), and rpmfcGenerateDepends(). |
|
||||||||||||
|
Definition at line 266 of file rpmfc.c. References argvAdd(), argvSearch(), and argvSort(). Referenced by rpmfcClassify(), rpmfcELF(), rpmfcHelper(), and rpmfcSCRIPT(). |
|
|
Extract script dependencies.
Definition at line 640 of file rpmfc.c. References rpmdsFree(), rpmdsMerge(), rpmdsSingle(), RPMFC_MODULE, RPMFC_PERL, RPMFC_PYTHON, rpmfcFileDep(), rpmfcHelper(), rpmfcSaveArg(), RPMSENSE_FIND_REQUIRES, and RPMTAG_REQUIRENAME. |
|
|
|
|
|
|
|
|
Initial value: {
{ rpmfcELF, RPMFC_ELF },
{ rpmfcSCRIPT, (RPMFC_SCRIPT|RPMFC_PERL) },
{ NULL, 0 }
}
Definition at line 1051 of file rpmfc.c. Referenced by rpmfcApply(). |
|
|
|
1.4.5