Hi, rpm-4.9 will crash if the %prep section is empty, i.e. if the specfile looks like:
%prep %build ... Patch (untested): --- build/parsePrep.c.orig 2011-05-13 16:22:59.000000000 +0000 +++ build/parsePrep.c 2011-05-13 16:23:41.000000000 +0000 @@ -518,7 +518,7 @@ int parsePrep(rpmSpec spec) } } - for (ARGV_const_t lines = saveLines; *lines; lines++) { + for (ARGV_const_t lines = saveLines; lines && *lines; lines++) { res = 0; if (rstreqn(*lines, "%setup", sizeof("%setup")-1)) { res = doSetupMacro(spec, *lines); Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} _______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint