rpmlib.h mass eviction

- explicitly include what's really needed instead
- document remaining uses
This commit is contained in:
Panu Matilainen 2008-01-30 13:53:51 +02:00
parent 7751f84bf0
commit 99faa2735b
78 changed files with 100 additions and 59 deletions

View File

@ -5,6 +5,8 @@
#include "system.h"
#include <rpm/rpmcli.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmrc, MACHTABLE .. */
#include <rpm/rpmbuild.h>
#include <rpm/rpmps.h>

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmlib.h> /* RPMSIGTAG*, rpmReadPackageFile */
#include "rpmio/rpmio_internal.h" /* fdInitDigest, fdFiniDigest */
#include <rpm/rpmbuild.h>

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>
#include "debug.h"

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>
#include "debug.h"

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmfileutil.h>

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmfileutil.h>

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>
#include "debug.h"

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>
#include "debug.h"

View File

@ -5,6 +5,8 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* RPM_MACHTABLE & related */
#include <rpm/rpmbuild.h>
#include <rpm/rpmds.h>
#include <rpm/rpmts.h>

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include "debug.h"

View File

@ -2,6 +2,7 @@
#include <signal.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmbuild.h>
#include <rpm/argv.h>
#include <rpm/rpmfc.h>

View File

@ -6,6 +6,7 @@
#include "system.h"
#include "build/buildio.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmds.h>
#include <rpm/rpmfi.h>
#include <rpm/rpmts.h>

View File

@ -6,6 +6,8 @@
#include <rpm/rpmcli.h> /* XXX rpmcliPackagesTotal */
#include <rpm/rpmlib.h> /* rpmVersionCompare, rpmlib provides */
#include <rpm/rpmtag.h>
#include <rpm/rpmmacro.h> /* XXX rpmExpand("%{_dependency_whiteout}" */
#include <rpm/rpmlog.h>

View File

@ -4,7 +4,8 @@
#include "system.h"
#include "rpmio/digest.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmGetFilesystem*() */
#include <rpm/rpmds.h>
#include <rpm/rpmmacro.h> /* XXX for %_i18ndomains */

View File

@ -3,7 +3,7 @@
*/
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmGetFilesystem*() prototypes */
#include <rpm/rpmfileutil.h> /* for rpmGetPath */
#include <rpm/rpmlog.h>
#include "debug.h"

View File

@ -6,7 +6,6 @@
#include "system.h"
#include "rpmio/rpmio_internal.h" /* fdGet/SetCpioPos, fdInit/FiniDigest */
#include <rpm/rpmlib.h>
#include "lib/cpio.h"

View File

@ -1,7 +1,8 @@
#include "system.h"
#include <rpm/idtx.h>
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmReadPackageFile */
#include <rpm/rpmtag.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmts.h>
#include <rpm/rpmfileutil.h>

View File

@ -4,7 +4,7 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmstring.h>
#include <rpm/rpmfi.h>

View File

@ -4,7 +4,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmfileutil.h>

View File

@ -9,7 +9,6 @@ const char * RPMVERSION = VERSION;
#include <rpm/rpmurl.h>
#include <rpm/rpmmacro.h> /* XXX for rpmGetPath */
#include <rpm/rpmlib.h>
#include <rpm/rpmlog.h>
#include "lib/misc.h"
#include "debug.h"

View File

@ -7,6 +7,7 @@
*/
#include <string.h>
#include <rpm/rpmtypes.h>
#ifdef __cplusplus
extern "C" {

View File

@ -8,8 +8,8 @@
#include "rpmio/digest.h"
#include "rpmio/rpmio_internal.h" /* fd*Digest(), fd stats */
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* XXX RPMSIGTAG, other sig stuff */
#include <rpm/rpmts.h>
#include "lib/legacy.h" /* XXX legacyRetrofit() */

View File

@ -7,6 +7,7 @@
const char *__progname;
#include <rpm/rpmcli.h>
#include <rpm/rpmlib.h> /* rpmEVR, rpmReadConfigFiles etc */
#include <rpm/rpmgi.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmstring.h>

View File

@ -5,7 +5,7 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmvercmp and others */
#include <rpm/rpmmacro.h>
#include <rpm/rpmurl.h>
#include "rpmio/rpmlua.h"

View File

@ -11,6 +11,7 @@
#include <rpm/rpmcli.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmfi.h>

View File

@ -4,7 +4,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmal.h>
#include <rpm/rpmds.h>

View File

@ -5,6 +5,7 @@
#include "system.h"
#include <rpm/rpmlib.h> /* RPMSIGTAG & related */
#include <rpm/rpmpgp.h>
#include "rpmio/rpmio_internal.h" /* for fd*Digest() */
#include <rpm/rpmcli.h>

View File

@ -5,7 +5,8 @@
* \file lib/rpmcli.h
*/
#include <rpm/rpmlib.h>
#include <popt.h>
#include <rpm/rpmurl.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmcallback.h>

View File

@ -3,7 +3,8 @@
*/
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmvercmp */
#include <rpm/rpmstring.h>
#include <rpm/rpmlog.h>

View File

@ -5,7 +5,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlog.h>
#include "lib/cpio.h" /* XXX CPIO_FOO */

View File

@ -1,6 +1,7 @@
#ifndef _RPMFI_INTERNAL_H
#define _RPMFI_INTERNAL_H
#include <rpm/rpmtag.h>
#include <rpm/rpmfi.h>
#include "lib/fsm.h" /* for FSM_t */

View File

@ -3,7 +3,8 @@
*/
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmReadPackageFile */
#include <rpm/rpmte.h> /* XXX rpmElementType */
#include <rpm/rpmts.h>

View File

@ -6,6 +6,8 @@
#include <rpm/rpmcli.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmReadPackageFile, vercmp etc */
#include <rpm/rpmdb.h>
#include <rpm/rpmds.h>
#include <rpm/rpmts.h>

View File

@ -6,8 +6,7 @@
#include <netinet/in.h>
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmGetOs/ArchInfo() */
#include "lib/signature.h"
#include "lib/rpmlead.h"
#include "lib/legacy.h"

View File

@ -21,7 +21,6 @@ extern "C" {
typedef struct rpmlead_s * rpmlead;
#include <rpm/rpmlib.h>
/** \ingroup lead
* Initialize a lead structure

View File

@ -4,8 +4,8 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmGetRpmlibProvides() & co protos */
#include <rpm/rpmds.h>
#include "debug.h"

View File

@ -1,7 +1,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmfileutil.h>

View File

@ -13,8 +13,8 @@
#define __power_pc() 0
#endif
#include <rpm/rpmlib.h> /* RPM_MACTABLE*, Rc-prototypes */
#include "rpmio/rpmio_internal.h" /* XXX for rpmioSlurp */
#include <rpm/rpmlib.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmfileutil.h>
#include <rpm/rpmstring.h>

View File

@ -3,8 +3,9 @@
* Routine(s) to handle an "rpmte" transaction element.
*/
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* RPM_MACHTABLE_* */
#include <rpm/rpmds.h>
#include <rpm/rpmfi.h>

View File

@ -4,9 +4,10 @@
*/
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmReadPackage etc */
#include <rpm/rpmurl.h>
#include "rpmio/digest.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmfileutil.h> /* rpmtsOpenDB() needs rpmGetPath */
#include <rpm/rpmstring.h>

View File

@ -4,7 +4,7 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmvercmp proto */
#include <rpm/rpmstring.h>
#include "debug.h"

View File

@ -4,8 +4,11 @@
#include "system.h"
#include <popt.h>
#include "rpmio/digest.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* XXX RPMSIGTAG* & related */
#include <rpm/rpmmacro.h> /* XXX for rpmGetPath() */
#include <rpm/rpmdb.h>
#include <rpm/rpmstring.h>

View File

@ -1,5 +1,8 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <popt.h>
#include <rpm/rpmio.h>
#include <rpm/rpmmacro.h>
#include "debug.h"

View File

@ -1,7 +1,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmds.h>
#include "debug.h"

View File

@ -1,5 +1,6 @@
#include "system.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmgi.h>
#include <rpm/rpmcli.h>

View File

@ -1,7 +1,6 @@
#include "system.h"
#include "rpmio/rpmio_internal.h" /* XXX rpmioSlurp */
#include <rpm/rpmlib.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmio.h>

View File

@ -3,8 +3,8 @@
*/
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmMachineScore, rpmReadPackageFile */
#include <rpm/rpmmacro.h> /* XXX for rpmExpand */
#include <rpm/rpmlog.h>

View File

@ -1,5 +1,6 @@
#include "system.h"
#include <rpm/rpmcli.h>
#include <rpm/rpmlib.h> /* rpmReadConfigFiles */
#include <rpm/rpmts.h>
#include <rpm/rpmlog.h>

View File

@ -2,7 +2,7 @@
#include <pthread.h>
#include <assert.h>
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmReadConfigFiles, rpmReadPackageFile */
#include <rpm/rpmts.h>
#include <rpm/rpmsq.h> /* XXX for _rpmsq_debug */
#include <rpm/rpmio.h>

View File

@ -6,6 +6,7 @@
#include "system.h"
#include <rpm/rpmcli.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlog.h>
#include "lib/psm.h"

View File

@ -4,7 +4,8 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmvercmp */
#include <rpm/rpmtag.h>
#include <rpm/rpmstring.h>
#include "lib/legacy.h" /* XXX expand/compressFilelist(), providePackageNVR() */

View File

@ -1,7 +1,7 @@
#ifndef RPMPYTHON_HEADER
#define RPMPYTHON_HEADER
#include <rpm/rpmlib.h>
#include <rpm/rpmtypes.h>
/** \ingroup py_c
* \file python/header-py.h

View File

@ -4,7 +4,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include "rpmal-py.h"
#include "rpmds-py.h"

View File

@ -4,8 +4,7 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include "rpmdb-py.h"
#include "rpmmi-py.h"
#include "header-py.h"

View File

@ -4,8 +4,9 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmstring.h>
#include <rpm/rpmlib.h> /* rpmvercmp */
#include "header-py.h"
#include "rpmds-py.h"

View File

@ -4,8 +4,7 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include "header-py.h"
#include "rpmfi-py.h"

View File

@ -4,7 +4,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmdb.h>
#include "rpmmi-py.h"

View File

@ -4,6 +4,8 @@
#include "system.h"
#include <rpm/rpmlib.h> /* rpmMachineScore, rpmReadConfigFiles */
#include <rpm/rpmtag.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmsq.h>
#include <rpm/rpmlog.h>

View File

@ -4,7 +4,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include "rpmps-py.h"

View File

@ -4,7 +4,6 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include "header-py.h" /* XXX tagNumFromPyObject */
#include "rpmds-py.h"

View File

@ -4,7 +4,8 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmReadPackageFile, headerCheck */
#include <rpm/rpmtag.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmbuild.h>

View File

@ -3,7 +3,9 @@
#include "system.h"
const char *__progname;
#include <rpm/rpmlib.h>
#include <rpm/rpmlib.h> /* rpmReadPackageFile .. */
#include <rpm/rpmtag.h>
#include <rpm/rpmio.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmts.h>

View File

@ -10,7 +10,7 @@ static int _debug = 1; /* XXX if < 0 debugging, > 0 unusual error returns */
#include <sys/ipc.h>
#endif
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmurl.h> /* XXX urlPath proto */
#include <rpm/rpmfileutil.h> /* rpmioMkPath */

View File

@ -4,7 +4,9 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <popt.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmstring.h>
#include <rpm/rpmlog.h>

View File

@ -3,7 +3,10 @@
*/
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtypes.h>
#include <rpm/rpmtag.h>
#include "debug.h"
int headerNVR(Header h, const char **np, const char **vp, const char **rp)

View File

@ -14,6 +14,7 @@
#include <regex.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmurl.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmpgp.h>

View File

@ -6,7 +6,7 @@
* Access RPM indices using Berkeley DB interface(s).
*/
#include <rpm/rpmlib.h>
#include <rpm/rpmtypes.h>
#include <rpm/rpmsw.h>
#ifdef __cplusplus

View File

@ -4,7 +4,6 @@
*/
#include "system.h"
#include <rpm/rpmlib.h>
#include "rpmdb/rpmhash.h"
#include "debug.h"

View File

@ -26,7 +26,7 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmurl.h> /* XXX urlPath proto */

View File

@ -4,7 +4,7 @@
#include "system.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmstring.h>
#include "debug.h"

View File

@ -12,6 +12,7 @@ const char *__progname;
#endif
#include <rpm/rpmcli.h>
#include <rpm/rpmlib.h> /* RPMSIGTAG, rpmReadPackageFile .. */
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>

View File

@ -7,7 +7,7 @@ const char *__progname;
#include <string.h>
#endif
#include <rpm/rpmlib.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmio.h>
#include <rpm/rpmmacro.h>

View File

@ -1,7 +1,6 @@
#include "system.h"
const char *__progname;
#include <rpm/rpmlib.h>
#include "rpmdb/header_internal.h"
#include "debug.h"

View File

@ -1,9 +1,10 @@
#include "system.h"
const char *__progname;
#include <rpm/rpmlib.h>
#include "rpmdb/header_internal.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* rpmReadConfigFiles */
#include <rpm/rpmdb.h>
#include "debug.h"

View File

@ -8,6 +8,8 @@ const char *__progname;
#include <fnmatch.h>
#include "rpmio/fts.h"
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h> /* RPM_MACHTABLE, rpmReadPackageFile */
#include <rpm/rpmcli.h>
#include <rpm/rpmlog.h>

View File

@ -2,7 +2,7 @@
const char *__progname;
#include <rpm/rpmcli.h>
#include <rpm/rpmlib.h> /* rpmReadPackageFile */
#include <rpm/rpmdb.h>
#include <rpm/rpmps.h>
#include <rpm/rpmte.h>

View File

@ -4,7 +4,7 @@ const char *__progname;
#include <rpm/rpmbuild.h>
#include "build/buildio.h"
#include <rpm/header.h>
#include <rpm/rpmtag.h>
#include "lib/rpmlead.h"
#include <err.h> /* XXX !HAVE_ERR_H: get from misc */

View File

@ -1,10 +1,13 @@
#include "system.h"
const char *__progname;
#include <rpm/rpmlib.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmurl.h>
#include <popt.h>
#include <rpm/rpmlib.h> /* rpmReadConfigFiles */
#include <rpm/rpmfileutil.h>
#include <rpm/rpmurl.h>
#include <rpm/rpmio.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmps.h>
#include <rpm/rpmte.h>