char * platform;
int rc;
- /* parse up the build operators */
-
- printf("building these platforms: %s\n", buildplatforms);
-
if (buildplatforms == NULL) {
rc = buildplatform(arg, buildAmount, passPhrase, buildRoot,
fromTarball, test, cookie);
return rc;
}
+ /* parse up the build operators */
+
+ printf("building these platforms: %s\n", buildplatforms);
+
while((platform = strsep(&buildplatforms,",")) != NULL) {
printf("building %s\n", platform);
RMIL_RPMRC);
*/
-/*
-Okay, I'm _not_ going to set these for now, since I think that buildarch
-and buildos should be set dynamically. Gone are the days of having a
-build arch and os... they're all now just a platform. I'm keeping it
-here until there's a discussion on the rpm mailing list.
-
- - AdV
-*/
-
-
-#if 0
-addMacro(&globalMacroContext, "_buildarch_lc", NULL, "mipseb", RMIL_RPMRC);
- rpmGetOsInfo(&canonos, NULL);
-addMacro(&globalMacroContext, "_buildos", NULL, canonos, RMIL_RPMRC);
-addMacro(&globalMacroContext, "_buildos_lc", NULL, buf, RMIL_RPMRC);
-
-#endif
-
if (rpmReadRC(file)) return -1;
rpmRebuildPlatformVars(&buildplatform, &canonarch, &canonos);
rpmSetMachine(buildarch,buildos);
-
-
return 0;
}
%__strip %(which strip)
%__tar %(which tar)
-
#==============================================================================
# ---- rpmrc macros.
# Macros that are initialized as a side effect of rpmrc parsing.
# explicit values found in /usr/lib/rpm/rpmrc or /etc/rpmrc.
#
%_buildarch Unknown
-%_buildarch_lc unknown
%_builddir %{_topdir}/BUILD
%_buildos Linux
-%_buildos_lc linux
%_bzip2bin @BZIP2BIN@
%_dbpath %{_var}/lib/rpm
%_defaultdocdir %{_prefix}/doc
}
/* reading this early makes it easy to override */
- if (rpmReadConfigFiles(rcfile, arch, os, building,NULL))
+ if (rpmReadConfigFiles(rcfile, arch, os, building, NULL))
exit(1);
if (showrc) {
rpmShowRC(stdout);