summaryrefslogtreecommitdiff
path: root/build/rpmbuild.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-12-22 02:11:05 +0000
committerjbj <devnull@localhost>2002-12-22 02:11:05 +0000
commitb63b4a5d122e8dfb631c8fa75a9a7a92708080ec (patch)
tree83f213dc374fadf65b4c520e03bda0bc0ebf685b /build/rpmbuild.h
parent1f6cdca2d549e02f3e65afa27b80cb852e283cd2 (diff)
downloadrpm-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.tar.gz
rpm-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.tar.bz2
rpm-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.zip
- simplify specfile query linkage loop.
- drill rpmts into parseSpec(), carrying Spec along. CVS patchset: 5958 CVS date: 2002/12/22 02:11:05
Diffstat (limited to 'build/rpmbuild.h')
-rw-r--r--build/rpmbuild.h36
1 files changed, 5 insertions, 31 deletions
diff --git a/build/rpmbuild.h b/build/rpmbuild.h
index 2eafbb26c..d1dd71cce 100644
--- a/build/rpmbuild.h
+++ b/build/rpmbuild.h
@@ -453,7 +453,7 @@ int processSourceFiles(Spec spec)
/** \ingroup rpmbuild
* Parse spec file into spec control structure.
- * @retval specp spec file control structure
+ * @param ts transaction set (spec file control in ts->spec)
* @param specFile
* @param rootURL
* @param buildRootURL
@@ -464,7 +464,7 @@ int processSourceFiles(Spec spec)
* @param force
* @return
*/
-int parseSpec(/*@out@*/ Spec * specp, const char * specFile,
+int parseSpec(rpmts ts, const char * specFile,
/*@null@*/ const char * rootURL,
/*@null@*/ const char * buildRootURL,
int recursing,
@@ -477,32 +477,6 @@ int parseSpec(/*@out@*/ Spec * specp, const char * specFile,
rpmGlobalMacroContext, fileSystem, internalState @*/;
/** \ingroup rpmbuild
- * @retval specp spec file control structure
- * @param specFile
- * @param rootdir
- * @param buildRoot
- * @param recursing parse is recursive?
- * @param passPhrase
- * @param cookie
- * @param anyarch
- * @param force
- * @return
- */
-/*@-declundef@*/
-extern int (*parseSpecVec) (Spec * specp, const char * specFile,
- const char * rootdir,
- /*@null@*/ const char * buildRoot,
- int recursing,
- /*@null@*/ const char * passPhrase,
- /*@null@*/ char * cookie,
- int anyarch, int force)
- /*@globals rpmGlobalMacroContext,
- fileSystem, internalState @*/
- /*@modifies *specp,
- rpmGlobalMacroContext, fileSystem, internalState @*/;
-/*@=declundef@*/
-
-/** \ingroup rpmbuild
* Build stages state machine driver.
* @param spec spec file control structure
* @param what bit(s) to enable stages of build
@@ -513,8 +487,8 @@ int buildSpec(Spec spec, int what, int test)
/*@globals rpmGlobalMacroContext,
fileSystem, internalState @*/
/*@modifies spec->sourceHeader, spec->sourceCpioList, spec->cookie,
- spec->sourceRpmName, spec->macros,
- spec->BASpecs,
+ spec->sourceRpmName, spec->sourcePkgId,
+ spec->macros, spec->BASpecs,
spec->buildRestrictions, spec->BANames,
spec->packages->cpioList, spec->packages->fileList,
spec->packages->specialDoc, spec->packages->header,
@@ -541,7 +515,7 @@ int packageSources(Spec spec)
/*@globals rpmGlobalMacroContext,
fileSystem, internalState @*/
/*@modifies spec->sourceHeader, spec->cookie,
- spec->sourceRpmName,
+ spec->sourceRpmName, spec->sourcePkgId,
rpmGlobalMacroContext, fileSystem, internalState @*/;
/*@=redecl@*/