rpm  5.4.15
Macros | Functions
reqprov.c File Reference

Add dependency tags to package header(s). More...

#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include "rpmbuild.h"
#include "debug.h"
Include dependency graph for reqprov.c:

Go to the source code of this file.

Macros

#define _RPMEVR_INTERNAL
 

Functions

int addReqProv (Spec spec, Header h, rpmTag tagN, const char *N, const char *EVR, rpmsenseFlags Flags, rpmuint32_t index)
 Add dependency to header, filtering duplicates. More...
 
int rpmlibNeedsFeature (Header h, const char *feature, const char *featureEVR)
 Add rpmlib feature dependency. More...
 

Detailed Description

Add dependency tags to package header(s).

Definition in file reqprov.c.

Macro Definition Documentation

#define _RPMEVR_INTERNAL

Definition at line 10 of file reqprov.c.

Function Documentation

int addReqProv ( Spec  spec,
Header  h,
rpmTag  tagN,
const char *  N,
const char *  EVR,
rpmsenseFlags  Flags,
rpmuint32_t  index 
)

Add dependency to header, filtering duplicates.

Parameters
specspec file control structure
hheader
tagNtag, identifies type of dependency
N(e.g. Requires: foo < 0:1.2-3, "foo")
EVR(e.g. Requires: foo < 0:1.2-3, "0:1.2-3")
Flags(e.g. Requires: foo < 0:1.2-3, both "Requires:" and "<")
index(0 always)
Returns
0 always

Definition at line 14 of file reqprov.c.

References _free(), alloca(), _HE_s::append, rpmDataType_u::argv, _HE_s::c, flags, headerGet(), headerMod(), headerPut(), headerSprintf(), len, _HE_s::p, RPM_STRING_ARRAY_TYPE, RPM_UINT32_TYPE, rpmEVRfree(), rpmEVRnew(), rpmEVRoverlap(), rpmEVRparse(), RPMSENSE_EQUAL, RPMSENSE_SENSEMASK, RPMTAG_CONFLICTFLAGS, RPMTAG_CONFLICTNAME, RPMTAG_CONFLICTVERSION, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEVERSION, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEVERSION, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIRENAME, RPMTAG_REQUIREVERSION, RPMTAG_TRIGGERFLAGS, RPMTAG_TRIGGERINDEX, RPMTAG_TRIGGERNAME, RPMTAG_TRIGGERVERSION, _HE_s::t, _HE_s::tag, and rpmDataType_u::ui32p.

Referenced by parseRCPOT(), parseScript(), and rpmlibNeedsFeature().

int rpmlibNeedsFeature ( Header  h,
const char *  feature,
const char *  featureEVR 
)

Add rpmlib feature dependency.

Parameters
hheader
featurerpm feature name (i.e. "rpmlib(Foo)" for feature Foo)
featureEVRrpm feature epoch/version/release
Returns
0 always

Definition at line 212 of file reqprov.c.

References addReqProv(), alloca(), RPMSENSE_EQUAL, RPMSENSE_LESS, RPMTAG_REQUIRENAME, and stpcpy().

Referenced by genCpioListAndHeader(), getDigestAlgo(), parseScript(), processPackageFiles(), and writeRPM().