Files | |
file | rpmlib.h |
file | macro.c |
RPMRC | |
enum | rpm_machtable_e { RPM_MACHTABLE_INSTARCH = 0, RPM_MACHTABLE_INSTOS = 1, RPM_MACHTABLE_BUILDARCH = 2, RPM_MACHTABLE_BUILDOS = 3 } |
Build and install arch/os table identifiers. More... | |
const char * | rpmGetVar (int var) |
Return value of an rpmrc variable. | |
void | rpmSetVar (int var, const char *val) |
Set value of an rpmrc variable. | |
int | rpmReadConfigFiles (const char *file, const char *target) |
Read macro configuration file(s) for a target. | |
void | rpmGetArchInfo (const char **name, int *num) |
Return current arch name and/or number. | |
void | rpmGetOsInfo (const char **name, int *num) |
Return current os name and/or number. | |
int | rpmMachineScore (int type, const char *name) |
Return arch/os score of a name. | |
int | rpmShowRC (FILE *fp) |
Display current rpmrc (and macro) configuration. | |
void | rpmSetTables (int archTable, int osTable) |
void | rpmSetMachine (const char *arch, const char *os) |
Set current arch/os names. | |
void | rpmGetMachine (const char **arch, const char **os) |
Return current arch/os names. | |
void | rpmFreeRpmrc (void) |
Destroy rpmrc arch/os compatibility tables. | |
const char * | macrofiles |
List of macro files to read when configuring rpm. | |
Functions | |
static int | rpmReadRC (const char *rcfiles) |
Read rpmrc (and macro) configuration file(s). | |
Variables | |
const char * | macrofiles |
List of macro files to read when configuring rpm. |
|
Build and install arch/os table identifiers.
|
|
Destroy rpmrc arch/os compatibility tables.
Definition at line 1501 of file rpmrc.c. References _free(), tableType_s::equiv, machEquivTable_s::list, machEquivInfo_s::name, RPM_MACHTABLE_COUNT, and tables. Referenced by main(). |
|
Return current arch name and/or number.
Definition at line 1393 of file rpmrc.c. References ARCH, and getMachineInfo(). Referenced by archOkay(), checkForValidArchitectures(), psmStage(), readLine(), rpmRebuildTargetVars(), and writeRPM(). |
|
Return current arch/os names.
Definition at line 1299 of file rpmrc.c. Referenced by parseSpec(). |
|
Return current os name and/or number.
Definition at line 1398 of file rpmrc.c. References getMachineInfo(), and OS. Referenced by checkForValidArchitectures(), psmStage(), readLine(), rpmRebuildTargetVars(), and writeRPM(). |
|
Return value of an rpmrc variable.
Definition at line 1209 of file rpmrc.c. References rpmGetVarArch(). Referenced by doReadRC(), rpmShowRC(), setPathDefault(), setVarDefault(), and unsatisfiedDepend(). |
|
Return arch/os score of a name. An arch/os score measures the "nearness" of a name to the currently running (or defined) platform arch/os. For example, the score of arch "i586" on an i686 platform is (usually) 2. The arch/os score is used to select one of several otherwise identical packages using the arch/os tags from the header as hints of the intended platform for the package.
Definition at line 1293 of file rpmrc.c. References machEquivSearch(), machEquivInfo_s::score, and tables. Referenced by archOkay(), archScore(), osOkay(), parseSpec(), and psGetArchScore(). |
|
Read macro configuration file(s) for a target.
Definition at line 1663 of file rpmrc.c. References _free(), rpmExpand(), rpmReadRC(), rpmRebuildTargetVars(), and rpmSetMachine(). |
|
Read rpmrc (and macro) configuration file(s).
Definition at line 1572 of file rpmrc.c. References defrcfiles, setDefaults(), and xstrdup(). Referenced by rpmReadConfigFiles(). |
|
Set current arch/os names. NULL as argument is set to the default value (munged uname()) pushed through a translation table (if appropriate).
Definition at line 1308 of file rpmrc.c. References _free(), ARCH, defaultMachine(), lookupInDefaultTable(), OS, rebuildCompatTables(), tables, and xstrdup(). Referenced by parseSpec(), rpmReadConfigFiles(), rpmRebuildTargetVars(), and rpmShowRC(). |
|
Definition at line 1276 of file rpmrc.c. References rpmvarValue::arch, ARCH, defaultMachine(), OS, and rebuildCompatTables(). Referenced by buildForTarget(), rpmRebuildTargetVars(), and rpmShowRC(). |
|
Set value of an rpmrc variable.
Definition at line 1232 of file rpmrc.c. References freeRpmVar(), rpmvarValue::value, values, and xstrdup(). Referenced by setPathDefault(), and setVarDefault(). |
|
Display current rpmrc (and macro) configuration.
Definition at line 1688 of file rpmrc.c. References ARCH, machEquivTable_s::count, tableType_s::equiv, machEquivTable_s::list, machEquivInfo_s::name, rpmOption::name, optionTableSize, OS, RPM_MACHTABLE_BUILDARCH, RPM_MACHTABLE_BUILDOS, RPM_MACHTABLE_INSTOS, rpmGetVar(), rpmIsVerbose, rpmSetMachine(), rpmSetTables(), tables, and rpmOption::var. Referenced by main(). |
|
List of macro files to read when configuring rpm. This is a colon separated list of files. URI's are permitted as well, identified by the token '://', so file paths must not begin with '//'. |
|
List of macro files to read when configuring rpm. This is a colon separated list of files. URI's are permitted as well, identified by the token '://', so file paths must not begin with '//'. |