- fix: with --target=i686, pass macro %_arch=i386.
- fix: rpm --target=arch ... resurrected.
- fix: rpm -q --specfile --specedit now works even with BuildArch:.
+ - fix: recursive strtok's is a no-no.
2.90 -> 2.91
- fix: memory leaks in rpmRunTransactions plugged.
AUTOMAKE_OPTIONS = 1.4 foreign
-EXTRA_DIST = CHANGES CREDITS README.amiga INSTALL RPM-PGP-KEY \
+EXTRA_DIST = CHANGES CREDITS GROUPS README.amiga INSTALL RPM-PGP-KEY \
autodeps/none autodeps/*.prov autodeps/*.req autogen.sh \
docs/[a-z]* gendiff $(man_MANS) po/*.in po/*.po po/rpm.pot \
rpm.magic rpmpopt rpm.spec rpm.8ru rpm2cpio.8ru
You need to install:
libtool-1.2d
autoconf-2.13
- automake-2.4
+ automake-1.4
"
[ "`libtoolize --version`" != "$LTV" ] && echo "$USAGE" && exit 1
const char *buildRoot, int fromTarball, int test, char *cookie,
const char * rcfile, char *targets, int force)
{
- char *target, *t;
+ char *t, *te;
int rc;
if (targets == NULL) {
printf("Building target platforms: %s\n", targets);
- t = targets;
- while((target = strtok(t, ",")) != NULL) {
- t = NULL;
+ for (t = targets; (te = strchr(t, ',')) != NULL; t = te) {
+ char *target = alloca(te-t+1);
+ strncpy(target, t, (te-t));
+ target[te-t] = '\0';
printf("Building for target %s\n", target);
rpmReadConfigFiles(rcfile, target);
headerFree(spec->buildRestrictions);
spec->buildRestrictions = NULL;
- FREE(spec->buildArchitectures);
if (!spec->inBuildArchitectures) {
while (spec->buildArchitectureCount--) {
FREE(spec->passPhrase);
FREE(spec->cookie);
-#ifdef DEAD
- freeMacros(spec->macros);
-#endif
-
freeSources(spec->sources); spec->sources = NULL;
freePackages(spec);
closeSpec(spec);